Polluting My Way to Victory: How I Found HTTP Parameter Pollution (HPP) and Exploited It Like a Pro
The account update, login and checkout endpoints mishandled duplicate HTTP parameters, so the server acted on the last value supplied. An attacker could change their own balance, gain admin role and reduce a checkout price to zero.
osintteam.blog
Published on osintteam.blog
Have you ever stared at a web application and thought, What happens if I send two of the same parameters? Most hunters don’t give this a second thought.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the backend parsed duplicate parameters by taking the last occurrence without rejecting or validating duplicates.
Impact
The tester could change their own balance, gain admin access and reduce a checkout price to zero, which could lead to financial loss and privilege abuse.
What the attacker needed
An account on the platform; ability to intercept requests
The fix
The company patched their backend to prevent HPP, and the report recommends rejecting duplicate parameters and enforcing strict handling at the framework level.
How it was found
- Send a normal account update request with username, email and balance.
- Add a second balance parameter with a larger value and observe the server uses it.
- Add a second role parameter to the login request and observe admin access.
- Add a second price parameter to the checkout request and observe the total becomes zero.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
When a web form sends data, each field normally appears once. Here the server did not reject a field that appeared twice and simply used the second value. By adding an extra copy of a field such as role or price, the tester made the server accept a value they should not have been able to set.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.