BACK TO TOPICS
Advanced

HTTP Parameter Pollution

1. What is Parameter Pollution?

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)

Module Progress

1What is Parameter Pollution?
2Attack Scenarios
3Real-World Example
4Detection & Testing
5Prevention
Progress20%