A simple diagram of the HTTP Parameter Pollution risk path
Risk path: an input or context crosses a security boundary.
A simple three-step test path for HTTP Parameter Pollution
Testing path: establish a baseline, make one controlled change, and verify the effect.

01Issue

Overview

HTTP parameter pollution (HPP) means a request contains the same parameter more than once, such as mode=read&mode=write. The proxy, security filter, framework, and application may keep the first value, keep the last, combine them, or reject the request. HPP becomes a vulnerability only when the difference changes a security-sensitive decision or lets one component validate a different value from the one another component uses.

Common causes

  • Different layers choose different occurrences of a repeated parameter.
  • The application accepts duplicates for a field that should have exactly one value.
  • A filter checks one value while business logic consumes another.
  • Query, form, and JSON parsers apply different duplicate-field rules.

References: OWASP WSTG: HTTP Parameter Pollution ↗CWE-235: Improper Handling of Extra Parameters ↗

02Examples

EXAMPLE

Illustrative search: /search?category=books&category=music. Reverse the order and compare the selected category and edge/application logs. If one layer sees books and another sees music, there is a parsing mismatch; it is a security issue only if that mismatch changes a protected check or result.

03Impact

A parameter must be repeated or parsed differently across components, and the resulting value difference must affect routing, validation, authorization, or another protected behavior. Duplicate values by themselves are not a finding.

A confirmed issue may bypass a filter, alter a search or redirect, or change the record or action selected. The impact is the demonstrated behavior after parsing; a changed response or parser error is not enough to claim a security bypass.

04Testing

Test cases

1. Check whether repeated parameters change a protected decision

Send repeated values for one parameter and compare the response and resulting state with single-value requests. Inspect how each component chooses a value.

Example: A proxy may read the first value while an application reads the last. Confirm the decision made by each layer.

POST /api/orders HTTP/1.1
Host: app.example.test
Content-Type: application/x-www-form-urlencoded
 
quantity=1&quantity=2

2. Compare parameter locations and formats

Repeat the same key in the query, form body, or JSON only where supported. Record the exact values received by the application.

Example: A query value and a body value can be interpreted differently. Compare the actual parsed request.

POST /api/orders?quantity=1 HTTP/1.1
Host: app.example.test
Content-Type: application/x-www-form-urlencoded
 
quantity=2

3. Check validation and downstream behavior

Review proxy normalization, application parsing, and downstream requests or signatures. Verify whether any difference changes access, pricing, or another intended rule.

Example: Two echoed values do not prove a security issue. Confirm the actual decision or state change.

Testing references: OWASP WSTG: HTTP Parameter Pollution ↗CWE-235: Improper Handling of Extra Parameters ↗

05Mitigation

Define one duplicate-parameter policy and apply it at the edge and application. Reject duplicates for security-sensitive fields, or parse them once into a canonical representation that all validation and business logic share. Validate after decoding and normalization. Avoid relying on a filter that parses requests differently from the application.

Retest

Repeat order, encoding, and supported-format variants. Confirm duplicates are rejected or interpreted consistently and that normal single-value requests still work.