custom-sanitizer-audit

Identify bypass vulnerabilities in custom sanitization functions across web application languages.

11|1|Updated May 4, 2026
One-click install
npx skills add https://github.com/dreadnode/capabilities --skill custom-sanitizer-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: custom-sanitizer-audit
Source: https://github.com/dreadnode/capabilities/tree/main/capabilities/web-security/skills/custom-sanitizer-audit
Command: npx skills add https://github.com/dreadnode/capabilities --skill custom-sanitizer-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Homegrown sanitization, filter, and input validation functions lack the extensive adversarial testing of framework-provided alternatives, leaving applications exposed to undetected bypass attacks like cross-site scripting (XSS), SQL injection, and path traversal that manual code reviews often miss.

Core Features & Use Cases

  • Five-Point Bypass Checklist: Systematically evaluate custom sanitizers against case sensitivity, global replacement, recursion, completeness, and consistent application across all input routes to catch common implementation flaws.
  • Ordering Bug Detection: Identify validate-then-transform vulnerabilities where sanitization is applied in the wrong order relative to decoding, normalization, or concatenation operations.
  • Language-Specific Anti-Pattern Library: Access reference guides for common bypassable patterns and rationalizations to reject across PHP, JavaScript, Python, Ruby, Java, and Go.
  • Use Case: Use this skill during security code reviews of web applications, red team engagements targeting input validation controls, or when auditing custom security wrappers for bypass vulnerabilities.

Quick Start

Use the custom-sanitizer-audit skill to audit the custom sanitize_user_input() function in the account registration flow for bypass vulnerabilities.

Frequently Asked Questions about custom-sanitizer-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit custom input validation functions for bypass vulnerabilities?

Auditing custom input validation functions requires systematically evaluating them against case sensitivity, global replacement, recursion, completeness, and consistent application to detect bypass vulnerabilities. A five-point checklist identifies flaws that allow adversarial payloads through homegrown sanitizers.

What is a validate-then-transform vulnerability in security code review?

A validate-then-transform vulnerability occurs when sanitization is applied in the wrong order relative to decoding, normalization, or concatenation operations. Detecting these ordering bugs during security code reviews prevents attackers from bypassing custom filters by manipulating input processing sequence.

Can this sanitizer audit identify bypass vulnerabilities across PHP, JavaScript, Python, Ruby, Java, and Go?

Yes, the sanitizer audit evaluates custom security controls across PHP, JavaScript, Python, Ruby, Java, and Go. It uses a language-specific anti-pattern library to identify common bypassable patterns and rationalizations to reject during security code reviews.

What common implementation flaws lead to XSS and SQL injection bypasses in homegrown sanitizers?

Common implementation flaws leading to XSS and SQL injection bypasses include failing to handle case sensitivity, incomplete global replacement, missing recursion checks, incomplete filtering, and inconsistent application across input routes. Ordering bugs where sanitization precedes decoding also create exploitable bypass vulnerabilities.

When should I use a custom sanitizer audit instead of framework-provided validation?

Use a custom sanitizer audit when your codebase contains homegrown sanitization, filtering, or input validation functions that lack the adversarial testing of framework alternatives. It is essential for red team engagements and developer audits targeting custom security wrappers for XSS, SQL injection, and path traversal prevention.