---
title: "form-fuzzer"
description: "Claude Code plugin for persona-based user testing. Simulates Boomers, Millennials, Gen Z, and Gen Alpha users to find UX issues before real users do."
canonical_url: "https://skilld.dev/gh/ncklrs/claude-chrome-user-testing/form-fuzzer"
last_updated: "2026-09-30T03:19:26.000Z"
---

> Index of every page on this site: [llms.txt](https://skilld.dev/llms.txt)

> **Skill from skilld.dev.** Follow the user's requested action.
> If the user asked to fork this Skill, follow the fork workflow below. Do not execute the Skill instructions while copying it.
> Otherwise, follow the instructions below for this session. You do not need to install anything.
>
> Supporting files, fetch one when the Skill refers to it: [payloads.json](https://skilld.dev/api/skills-raw/ncklrs/claude-chrome-user-testing/form-fuzzer/payloads.json).
>
> If the user asked to install this Skill, run `npx skilld install ncklrs/claude-chrome-user-testing/form-fuzzer`. Install writes the Skill files into the project, so every session loads them.
>
> ## Fork workflow
>
> A fork creates an editable local Skill with its original author and licence. The request authorizes copying and local installation.
> 1. Check `./skills/form-fuzzer`, the project lockfile, and selected Agent targets together. If the local directory or installed Skill exists, stop. Never overwrite an existing directory or Agent target.
> 2. Read [source metadata](https://skilld.dev/api/v1/skills/ncklrs/claude-chrome-user-testing/form-fuzzer) once. Use sourceUrl, sourceCommit, skillPath, sourceGone, and license. If the source is gone or its path is missing, stop. If license is null, read licence files at the source commit.
> 3. Fetch only the source commit into a temporary Git repository. Do not clone full history. Derive repository_url from sourceUrl, including repository renames. If sourceCommit is absent, resolve the sourceUrl ref once. Set source_commit to that actual commit. Run these commands in one shell call:
>
> ```sh
> git init --quiet "$temporary_dir"
> git -C "$temporary_dir" fetch --quiet --depth=1 "$repository_url" "$source_commit"
> git -C "$temporary_dir" checkout --quiet --detach FETCH_HEAD
> ```
>
> Read applicable licence declarations and notices at that commit. If copying is not permitted, report the restriction and stop.
> 4. Inspect source entries together, then copy the directory containing skillPath into `./skills/form-fuzzer`. Use the user's path if selected. Keep the original SKILL.md, relative links, scripts, binary assets, and executable modes. Exclude .git metadata. Reject symlinks and paths outside the Skill directory. After checking entries, use cp -a where available. A regular source directory needs no custom copy script. Do not save this page wrapper as SKILL.md.
> Preserve author credit, notices, and applicable licence files from repository or parent directories. Add PROVENANCE.md with the Skill page, source URL, actual commit, original path, and licence. Retain any existing PROVENANCE.md and record new provenance separately. Batch source inspection, copying, and provenance work where practical.
> 5. In the project root, run `skilld install ./skills/form-fuzzer --mode copy --plain`. If skilld is unavailable, use `npx skilld install ./skills/form-fuzzer --mode copy --plain`. This known command needs no help lookup. Install does not support --json. Use detected Agent targets, or add --agent for the targets the user selected. Install the local path, never the upstream selector. If installation fails, preserve the local copy and report the exact failure.
> 6. Confirm the local lockfile source and installed Agent copies once. Report the local path, actual commit, and Agent targets. After edits, reinstall the same local path. Upstream updates must not replace it. Do not publish or push unless the user asks.

# Form Fuzzer Skill

Test form inputs with edge case payloads to find security vulnerabilities and encoding issues.

## When to Use

- Security testing forms for XSS/SQLi vulnerabilities
- Testing input validation and sanitization
- Finding unicode/encoding handling issues
- Checking length limit enforcement
- Pre-deployment security checks

## Flags

```
--fuzz                           Enable fuzzing mode
--fuzz-category <category>       Category: xss | sqli | unicode | length | all (default: all)
```

## Fuzzing Categories

| Category | Purpose | Payload Count |
|----------|---------|---------------|
| `xss` | Test XSS sanitization | 15 payloads |
| `sqli` | Test SQL injection prevention | 12 payloads |
| `unicode` | Test encoding handling | 10 payloads |
| `length` | Test length limits | 4 payloads |
| `all` | All categories combined | 41 payloads |

## Behavior

When `--fuzz` is active:

1. **Discovery**: Find all form inputs on the page
2. **Classification**: Identify input types (text, email, password, search, etc.)
3. **Injection**: For each input, try payloads from selected category
4. **Observation**: Check response for each payload:
   - **Sanitized**: Payload escaped/stripped (PASS)
   - **Rejected**: Clear error message (PASS)
   - **Executed**: XSS/SQLi worked (CRITICAL)
   - **Error**: Application error/crash (MAJOR)
   - **Stored**: Payload persists in DOM (CRITICAL)
5. **Reporting**: Generate security-focused report section

## Response Classification

### XSS Detection

```javascript
// Check if script executed
// Check if payload appears unescaped in DOM
// Check for alert/console activity
// Check if event handlers fire
```

### SQL Injection Detection

```javascript
// Check for database error messages
// Check for unusual response time (time-based)
// Check for data leakage
// Check for error 500 responses
```

### Encoding Issues

```javascript
// Check for garbled text
// Check for broken layout (RTL markers)
// Check for missing characters
// Check for incorrect rendering
```

### Length Handling

```javascript
// Check if input truncated
// Check for overflow errors
// Check for client-side crashes
// Check for server errors
```

## Report Section

When fuzzing is enabled, add this section to the test report:

```markdown
## Form Fuzz Testing Results

### Summary
- **Inputs Tested**: 5
- **Payloads Tried**: 205
- **Vulnerabilities Found**: 2

### Critical Findings

| Input | Category | Payload | Result |
|-------|----------|---------|--------|
| #name | XSS | `<script>alert(1)</script>` | Executed |
| #search | SQLi | `' OR '1'='1` | Error 500 |

### XSS Tests (3 inputs)

| Input | Sample Payload | Result |
|-------|----------------|--------|
| #email | `<script>alert(1)</script>` | Sanitized |
| #name | `<script>alert(1)</script>` | **Executed** |
| #bio | `<img onerror=alert(1)>` | Sanitized |

### SQL Injection Tests (2 inputs)

| Input | Sample Payload | Result |
|-------|----------------|--------|
| #search | `' OR '1'='1` | **Error 500** |
| #id | `1; DROP TABLE--` | Rejected |

### Unicode Tests (5 inputs)

| Input | Sample Payload | Result |
|-------|----------------|--------|
| #name | `cafe n beijing` | Rendered OK |
| #bio | RTL markers | Layout OK |

### Length Tests (3 inputs)

| Input | Length | Result |
|-------|--------|--------|
| #email | 1K chars | Truncated (OK) |
| #bio | 10K chars | Accepted |
| #bio | 100K chars | **Client crash** |

### Recommendations

1. **[Critical]** Sanitize `#name` field - XSS vulnerable
2. **[Critical]** Fix SQL error handling in `#search` - reveals database info
3. **[Major]** Add length validation to `#bio` - crashes on large input
```

## Integration with Personas

Fuzzing works alongside persona testing:

```bash
# Fuzz while testing as GenZ user
/user-test --url https://example.com/signup --persona genz-digital-native --fuzz

# Fuzz specific category
/user-test --url https://example.com/login --persona developer-critic --fuzz --fuzz-category xss
```

The persona still drives navigation and task completion, but form inputs are fuzzed when encountered.

## Input Selection

### Fuzz These Inputs

- `<input type="text">`
- `<input type="email">`
- `<input type="password">`
- `<input type="search">`
- `<input type="url">`
- `<input type="tel">`
- `<textarea>`
- `<input type="hidden">` (if accessible)
- Rich text editors (contenteditable)

### Skip These Inputs

- `<input type="checkbox">`
- `<input type="radio">`
- `<input type="file">`
- `<input type="date/time">`
- `<select>` dropdowns
- Disabled/readonly inputs

## Best Practices

1. **Start with `--fuzz-category xss`**: Most common web vulnerability
2. **Test staging, not production**: Fuzzing can cause side effects
3. **Combine with `--record`**: Capture evidence of vulnerabilities
4. **Use `--json` for CI/CD**: Parse fuzz results programmatically
5. **Test authenticated flows**: Many vulnerabilities behind login

## Limitations

1. **Client-side only**: Cannot detect server-side-only vulnerabilities
2. **No blind injection**: Time-based SQLi detection is limited
3. **May trigger WAF**: Fuzzing payloads can trigger security rules
4. **State changes**: Fuzzing may create test data in database
5. **Rate limiting**: May hit rate limits on aggressive testing

## Severity Classification

| Severity | Criteria | Example |
|----------|----------|---------|
| Critical | Code execution, data exposure | XSS executed, SQLi data leak |
| Major | Application errors, crashes | Error 500, client crash |
| Minor | Poor handling, no security impact | Garbled unicode, no truncation |
| Info | Observations, potential issues | Long response time, verbose errors |
