Skip to content
Access control Write-up Beginner

Authentication Bypass Vulnerability Leading to Admin Panel Access

The admin login endpoint returned a 200 response when special characters were entered in the email field, and the client-side response body contained a success flag that could be changed from false to true. Changing that flag redirected the attacker straight into the admin dashboard without valid credentials.

medium.com

Published on medium.com

“بِسْ� ِ اللَّهِ، وَالْحَ� ْدُ لِلَّهِ، وَالصَّلَاةُ وَالسَّلَا� ُ عَلَى رَسُولِ اللَّهِ، اللَّهُ� َّ عَلِّ� ْنَا � َا يَنْفَعُنَا، وَانْفَعْنَا بِ� َا عَلَّ� ْتَنَا، وَزِدْنَا عِلْ� ًا الله� انصر إخواننا ال� ستضعفين في السودان و فلسطين و في كل � كان”

geme000, on medium.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 application made its access decision on the client side using a success flag in the login response, instead of enforcing authentication on the server.

Impact

An attacker could gain full admin panel access and view or modify sensitive data, with a high risk of complete system compromise.

What the attacker needed

Access to the admin login page; ability to intercept and modify responses

The fix

The application should enforce authentication and authorisation on the server and never rely on a client-side success flag to grant access.

How it was found

  1. Review JavaScript files and discover a subdomain.
  2. Fuzz the subdomain and find the admin login path.
  3. Try brute force, SQL injection and default credentials, all of which fail.
  4. Enter special characters in the email field and observe the response change from 401 to 200 OK.
  5. Change the success flag in the response body from false to true.
  6. Get redirected into the admin 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.

When you log in, the server sends back a message saying whether the login worked. Here the application trusted a simple 'success' flag in that message, and the browser-side code used it to decide whether to show the admin dashboard. By editing the message before the page acted on it, the person could make the app believe the login had succeeded even though no valid password was used.

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.

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.