HTTP Parameter Pollution (HPP) is a vulnerability that occurs when an application accepts multiple parameters with the same name and processes them in an unexpected way.
The Core Issue
Different web technologies handle duplicate parameters differently:
- PHP/Apache: Takes the last occurrence
- ASP.NET/IIS: Concatenates with comma
- Node.js/Express: Creates an array
- Java/Tomcat: Takes the first occurrence
// URL with duplicate parameters http://example.com/transfer?amount=100&to=attacker&amount=1000 // Different servers interpret this differently: // PHP: amount = 1000 (last value) // ASP.NET: amount = "100,1000" (concatenated) // Node.js: amount = [100, 1000] (array)