The Feature Was Disabled — The Backend Didn’t Get the Memo
The backend did not enforce feature flags or authorization checks, so a disabled 'Advanced Reports' feature could be accessed by changing request parameters. An attacker could export sensitive data including user emails, roles, and audit logs, and poison the cache to expose this data to other users.
medium.com
Published on medium.com
Free Link🎈
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 trusted client-supplied parameters and headers for feature access and authorization, without server-side validation.
Impact
An attacker could access sensitive data from all users and poison the cache to expose it to other users, but the text does not specify if the cache poisoning was actually exploited against other users.
What the attacker needed
A user account; ability to send HTTP requests
The fix
The backend should enforce feature flags and authorization checks server-side, and not trust client-controlled headers or parameters.
How it was found
- Identify a disabled feature in the UI, such as a greyed-out button.
- Watch network traffic in DevTools to find backend endpoints called by the frontend.
- Replay the export request manually, changing the type to 'advanced' and including sensitive fields.
- Test additional parameters like scope=global to access other users' data.
- Send a request with a client-controlled header to enable the feature and poison the cache.
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 feature flag is a switch that turns features on or off. Here, the switch only hid the button in the browser, but the server still accepted requests for that feature. So anyone who sent the request directly could get data they were not supposed to see.
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.