Source: PayloadsAllTheThings/HTTP Parameter Pollution Category:
payloads-injection| Skill ID:payloads-hpp
Overview
HTTP Parameter Pollution payloads for WAF bypass and backend logic manipulation.
This skill integrates the full PayloadsAllTheThings (PATT) payload library for the HTTP Parameter Pollution Payloads domain into the REA_Skill framework. Use it during authorized penetration testing, bug bounty research, security audits, and CTF challenges.
Workflow
1. Recon & Identification
- Identify the target technology stack and injection points
- Enumerate endpoints, parameters, and input vectors
- Determine applicable payload categories from the reference below
2. Payload Selection
- Browse the PATT payload library for the attack class
- Select encoding-appropriate payloads for the target environment
- Consider WAF bypass variants and obfuscation techniques
3. Exploitation (Authorized Only)
- Test payloads in order: passive → active → escalation
- Document every payload tested and its response
- Capture PoC evidence (screenshots, HTTP logs, curl output)
4. Verification & Reporting
- Confirm the vulnerability with a clean minimal PoC
- Map findings to CVE/CWE where applicable
- Report with remediation recommendations and code fixes
Full PATT Reference
HTTP Parameter PollutionHTTP Parameter Pollution (HPP) is a Web attack evasion technique that allows an attacker to craft a HTTP request in order to manipulate web logics or retrieve hidden information. This evasion technique is based on splitting an attack vector between multiple instances of a parameter with the same name (?param1=value¶m1=value). As there is no formal way of parsing HTTP parameters, individual web technologies have their own unique way of parsing and reading URL parameters with the same name. Some taking the first occurrence, some taking the last occurrence, and some reading it as an array. This behavior is abused by the attacker in order to bypass pattern-based security mechanisms.
Summary
- Tools
- Methodology
- Parameter Pollution Table
- Parameter Pollution Payloads
- References
Tools
- Burp Suite: Manually modify requests to test duplicate parameters.
- OWASP ZAP: Intercept and manipulate HTTP parameters.
Methodology
HTTP Parameter Pollution (HPP) is a web security vulnerability where an attacker injects multiple instances of the same HTTP parameter into a request. The server's behavior when processing duplicate parameters can vary, potentially leading to unexpected or exploitable behavior.
HPP can target two levels:
- Client-Side HPP: Exploits JavaScript code running on the client (browser).
- Server-Side HPP: Exploits how the server processes multiple parameters with the same name.
Examples:
/app?debug=false&debug=true
/transfer?amount=1&amount=5000
Parameter Pollution Table
When ?par1=a&par1=b
| Technology | Parsing Result | outcome (par1=) |
|---|---|---|
| ASP.NET/IIS | All occurrences | a,b |
| ASP/IIS | All occurrences | a,b |
Golang net/http - r.URL.Query().Get("param") |
First occurrence | a |
Golang net/http - r.URL.Query()["param"] |
All occurrences in array | ['a','b'] |
| IBM HTTP Server | First occurrence | a |
| IBM Lotus Domino | First occurrence | a |
| JSP,Servlet/Tomcat | First occurrence | a |
| mod_wsgi (Python)/Apache | First occurrence | a |
| Nodejs | All occurrences | a,b |
| Perl CGI/Apache | First occurrence | a |
| Perl CGI/Apache | First occurrence | a |
| PHP/Apache | Last occurrence | b |
| PHP/Zues | Last occurrence | b |
| Python Django | Last occurrence | b |
| Python Flask | First occurrence | a |
| Python/Zope | All occurrences in array | ['a','b'] |
| Ruby on Rails | Last occurrence | b |
Parameter Pollution Payloads
-
Duplicate Parameters:
param=value1¶m=value2 -
Array Injection:
param[]=value1 param[]=value1¶m[]=value2 param[]=value1¶m=value2 param=value1¶m[]=value2 -
Encoded Injection:
param=value1%26other=value2 -
Nested Injection:
param[key1]=value1¶m[key2]=value2 -
JSON Injection:
{ "test": "user", "test": "admin" }
References
- How to Detect HTTP Parameter Pollution Attacks - Acunetix - January 9, 2024
- HTTP Parameter Pollution - Itamar Verta - December 20, 2023
- HTTP Parameter Pollution in 11 minutes - PwnFunction - January 28, 2019
REA MCP Integration
// REA MCP — Automated payload injection via REA tools
// Use analyze_function, procedure_pseudo_code, or observe_native_calls
// to identify injection sinks, then apply payloads from this skill.
Legal Notice
⚠️ Authorized Use Only. All payloads in this skill are for security research, penetration testing with written permission, CTF competitions, and defensive study. Unauthorized use against systems you do not own or have explicit permission to test is illegal.