I Bypassed an Admin Panel With One Burp Suite Rule
The server returned a JSON flag indicating the user was not authorised, and the frontend relied on that flag to decide whether to show the admin panel. An attacker could intercept and modify the response to say success, gaining access to admin data without credentials.
Published on abdelaalx2000.medium.com
During a private bug bounty engagement, I came across an admin portal that blocked unauthorized users with a JSON response from the server:
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 did not enforce authorisation on sensitive endpoints and instead relied on the client to interpret a JSON flag and hide content.
Impact
An attacker could access the full admin panel without credentials, view sensitive order and user data, and potentially modify or delete records, and this could be done repeatedly and automatically.
What the attacker needed
Ability to intercept and modify HTTP responses; access to the admin portal URL
The fix
The server should independently verify authorisation for every sensitive endpoint and return a 401 or 403 without any data if the user is not permitted.
How it was found
- Observe the admin portal returning a JSON response denying access.
- Set up a Burp Suite Match and Replace rule to change the denial response to a success response.
- Reload the admin page with the rule enabled.
- The frontend reads the modified response and displays the admin panel.
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.
The website's server was sending a message to the browser saying 'no, you can't see this', but the browser was the one deciding whether to show the admin page. Because the browser runs on the attacker's computer, the attacker can change that message to 'yes' before the page reads it. This means the server never actually checked if the user was allowed; it just trusted the browser to obey.
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.