Skip to content
Access control Write-up Intermediate

️ The Param That Played Me: How HTTP Parameter Pollution Unlock

The application parsed duplicate role parameters inconsistently, with the backend using the last value while the frontend used the first. An attacker could send role=user&role=admin to gain admin access and view sensitive data.

iski Follow

Published on infosecwriteups.com

Free Link 🎈

Iski, on infosecwriteups.com

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 framework takes the last value of a duplicated query parameter, while the frontend uses the first, causing a privilege escalation.

Impact

The attacker could view admin-only sections such as user management, internal logs, and billing info, and export over 10,000 user records including emails, phone numbers, and hashed passwords.

What the attacker needed

A normal user account; ability to intercept HTTP requests

The fix

The application should use strict parameter handling, such as taking only the first value or rejecting duplicate parameters.

How it was found

  1. Log in as a normal user.
  2. Intercept the request to the dashboard page.
  3. Modify the request to include a second role parameter with value admin.
  4. Send the modified request and observe admin-only sections.

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 address contains a parameter like role=user, adding the same parameter again with a different value can confuse the server. Here, the server used the last value (admin) while the page displayed the first (user), letting the attacker see admin-only content.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by iski

View all

186 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.