Global CMS Chaos: How I Scored a $15,000 Bounty Across Two Programs
An API endpoint accepted a client-supplied User-Id header and returned other users' personal data and session tokens. By tampering with the login response to include a leaked token and disabling the OTP requirement, an attacker could reach the CMS dashboard without valid credentials.
Published on stevenfloresca.medium.com
Picture this: I’m sipping instant coffee at 2 a.m., staring at my screen, ready to dive into another bug bounty hunt on a private HackerOne program. My mission?
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 server trusted client-controlled values (the User-Id header and the needOTP response field) instead of enforcing authorisation and OTP checks server-side.
Impact
An attacker could access sensitive PII, hijack sessions, lock out accounts en masse, and manage content, prices, and products across global branches, affecting both private and public programs.
What the attacker needed
Access to the API endpoint; ability to intercept and modify requests; IP rotation to bypass WAF
The fix
The program is now patching those endpoints and tightening authentication.
How it was found
- Send a request to the endpoint and observe an error about a missing User-Id.
- Add a User-Id header with a null value and see a format error.
- Use Burp Intruder to cycle numeric User-Id values and collect PII and tokens.
- Bypass the WAF rate limit using IP rotation.
- Attempt login with random credentials and replace the response body with a leaked token response.
- Modify the response to set needOTP to false and reach the CMS dashboard.
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.
A web server trusted a value the user's browser sent (a User-Id header) to decide whose data to return, so changing that number showed other people's details. Later, the login check could be fooled by editing the server's reply to say no one-time password was needed, letting the attacker into an admin dashboard.
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.