input-validation-review
/input-validation-review
Ocenia kod i dokumentację pod kątem SSRF, IDOR, mass assignment, wstrzyknięć i ReDoS w punktach wejścia aplikacji.
- Autor
- eliyce ↗
- Repozytorium
- paqad-ai ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 12.11.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 8
- Skrypty
- 2
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 12.11.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
- 2 skrypty w paczce. Przejrzyj je przed instalacją, bo Claude może je uruchomić.
Skrypty: scripts/lint-findings.sh, scripts/scan-injection-smells.sh
Co robi i kiedy
Ocenia kod i dokumentację pod kątem SSRF, IDOR, mass assignment, wstrzyknięć i ReDoS w punktach wejścia aplikacji.
Oryginalny opis (EN)
Reasons about SSRF, IDOR, mass assignment, injection, file upload abuse, prototype pollution and ReDoS from code and docs evidence. Use when endpoints accept URLs, resource ids, body fields, uploads or any user input that reaches a downstream call.
Jak działa
- What It Does
- Use This When
- Inputs
- Procedure
- Output Contract
- Escalate / Stop Conditions
- Resources
Podgląd SKILL.md
---
name: input-validation-review
description: 'Reasons about SSRF, IDOR, mass assignment, injection, file upload abuse, prototype pollution and ReDoS from code and docs evidence. Use when endpoints accept URLs, resource ids, body fields, uploads or any user input that reaches a downstream call.'
metadata:
model_tier: reasoning
cacheable: 'false'
output_format: markdown
paqad-meta: skill.meta.yaml
---
## What It Does
Reviews all code paths where user-supplied input reaches security-sensitive operations (outbound HTTP calls, database lookups, ORM constructors, shell commands, template renderers, deserializers, file operations, and regex evaluations) and produces findings for each category that lacks proof of safe handling.
## Use This When
When module docs or route inventories describe endpoints that accept URLs, resource IDs, request body fields, file uploads, or any user-controlled parameter that flows into a downstream system call.
## Inputs
- Read the module docs to identify data flow surfaces.
- Read `references/input-attack-patterns.md` before scanning for each category.
- Read tests and code evidence that could confirm or refute safe handling.
## Procedure
1. **SSRF scan**: Find all code paths that accept a URL, IP, or hostname and make an outbound request. Check for an explicit allowlist or blocked private-range validation (127.x, 10.x, 169.254.x, 172.16–31.x, `::1`, fd00::/8, AWS metadata `169.254.169.254`).
2. **IDOR scan**: Find resource lookups keyed by a user-controlled ID. Verify an authorization check exists **between** ID resolution and data return, not just at the route level.
3. **Mass assignment scan**: Find ORM fill calls, model constructors, or serializers that accept the full request body. Verify an explicit allowlist (`$fillable`, `attr_accessible`, `schema.pick()`) or blocklist exists.
4. **Injection vectors**: Identify:
- Raw SQL construction or string interpolation in queries
- Shell exec with user input (`exec`, `system`, `passthru`, `child_process.exec`, `subprocess.run(shell=True)`)
- Template rendering with unsanitized data (`{!! !!}`, `|raw`, `dangerouslySetInnerHTML`, `render_template_string`)
- Deserialization of untrusted data (`unserialize()`, `pickle.loads()`, `yaml.load()` without `Loader=SafeLoader`)
- LDAP injection in directory lookups
- XPath injection in XML processing
5. **File upload abuse**: Check MIME type validation, file extension allowlist, path traversal in the filename, storage isolation from the web root, and max-file-size enforcement.
6. **Prototype pollution (JS/Node)**: Find deep merges of user input into objects without property filtering, `lodash.merge`, `Object.assign`, `_.defaults` from untrusted source with `__proto__` or `constructor.prototype` keys.
7. **ReDoS**: Find user input fed into regex patterns that could cause catastrophic backtracking. Look for patterns of the form `(a+)+`, `(a|a)+`, or `.*.*` applied to unbounded input.
## Output Contract
- Match `assets/output.template.md`: severity, WSTG id (from `assets/wstg-mapping.txt`), category, Evidence: `file:line`, Reproduction (endpoint + parameter + expected vs observed), Required action.
- Output must pass `scripts/lint-findings.sh` (exit 0).
## Escalate / Stop Conditions
- Ask when module docs describe external integrations but do not name the parameters or protocol used.
- Warn when deserialization of complex objects (PHP `unserialize`, Python `pickle`) is found without a safe alternative.
- Do not flag a finding purely because a URL parameter exists: only when there is no evidence of safe handling.
## Resources
- `references/input-attack-patterns.md`
- `scripts/scan-injection-smells.sh`: pre-investigation grep for known sinks
- `scripts/lint-findings.sh`: enforces WSTG id + Evidence:file:line per finding
- `assets/output.template.md`
- `assets/wstg-mapping.txt`
Pliki w paczce (8)
- SKILL.md 4 KB
- skill.meta.yaml 1 KB
- agents/openai.yaml 1 KB
- assets/output.template.md 1 KB
- assets/wstg-mapping.txt 1 KB
- references/input-attack-patterns.md 4 KB
- scripts/lint-findings.sh 1 KB
- scripts/scan-injection-smells.sh 2 KB
Wersje
W bazie nie ma innych skilli o nazwie input-validation-review.
Migawka bazy z 13.11.2026 · wersja paczki 480a6ef7b6c0 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100secure-code-review
Przegląda kod pod kątem klas błędów powodujących najwięcej wycieków (broken authorization, IDOR, injection, SSRF, mass assignment, deserializacja) i zwraca krótką listę ustaleń z poprawkami. - 95vibesec
Przegląda kod webowy pod kątem typowych luk i podpowiada zabezpieczenia przy projektowaniu funkcji i endpointów. - 90secure-code-review
Przegląda zmiany w aplikacjach webowych pod kątem błędów kontroli dostępu, wstrzyknięć, XSS, CSRF, SSRF i przesyłania plików, z poprawkami. - 100mass-assignment-object-injection-prevention
Chroni modele bazy danych przed podatnością mass assignment, wprowadzając jawne obiekty DTO dla danych wejściowych. - 90app-security-review
Przeprowadza tylko do odczytu przegląd bezpieczeństwa kodu aplikacji i tworzy ranking znalezisk: autoryzację, wstrzyknięcia, sekrety i zależności. - 100judge-security-auditor
Przegląda zmiany w kodzie pod kątem ryzyka bezpieczeństwa: autoryzacji, wstrzyknięć, sekretów, niebezpiecznej deserializacji, SSRF, XSS i masowego przypisania.