Skip to content
Access control Disclosed report Beginner

Admin Authentication Bypass Lead to Admin Account Takeover

The admin login endpoint returned a JSON response whose status field the client trusted, so editing that field from false to true in the intercepted response made the front end treat the login as successful. The attacker could then reach admin-only pages such as reports and password change, and take over the admin account.

7odamoo Follow

Originally disclosed on HackerOne

Medium 6.5 View original
  • Triaged in 31 hours
  • Fixed in 21 days
  • Disclosed after 4 months

Hello Team

I found that i can bypass the login page of the Admin account by intercepting the respone of the login request of █████ subdomain and change status from false to true

Steps To Reproduce:

  1. Open ████
  2. Enter Admin as a Username and ███ as a password

█████

  1. Press log in and Intercept the request in Burp
POST /api/Account/Login/ HTTP/2
Host: ███████
Cookie: ███
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:97.0) Gecko/20100101 Firefox/97.0
Accept: application/json, text/plain, */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Content-Type: application/json;charset=utf-8
Content-Length: 38
Origin: ████████
Sec-Fetch-Dest: empty
Sec-Fetch-Mode: cors
Sec-Fetch-Site: same-origin
Te: trailers

{"UserName":"██████","Password":"██████████"}
  1. Intercept the response for this request in Burp by >> Do Intercept >>Response to this request and then Forward this request
  2. Change status value from false to true and Forward the request
HTTP/2 200 OK
Cache-Control: no-cache,no-cache,no-store
Pragma: no-cache,no-cache
Content-Type: application/json; charset=utf-8
Expires: -1
Server: 
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block
Referrer-Policy: no-referrer
Strict-Transport-Security: max-age=31536000; includeSubDomains;preload
X-Frame-Options: DENY
X-Ua-Compatible: IE=Edge
Content-Security-Policy: script-src 'self'; object-src 'self'; frame-ancestors 'none'
Expect-Ct: enforce, max-age=7776000, report-uri='███-Allow-Origin: ██████-Allow-Headers: Accept, Content-Type, Origin
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Date: ████ ██████ GMT
Content-Length: 71

{"status":true,"errorMessage":"Username and Password does not match."}
  1. Now open Report , Change Password and Process Return and then Turn off the intercept of the Burp

██████████ █████████ ███████

Supporting Material/References:

POC Video

█████████

Impact

The attacker can

  • login as an ██████ by bypassing the authentication
  • change the ███ password to takeove the ███ account
  • View the company's reports and delete them [1066 Report]
  • View processReturn

The original report as published on HackerOne, by 7odamoo. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the front end trusted a client-side status flag in the login response instead of relying on a server-side session or token to decide whether the user was authenticated.

Impact

The attacker could log in as an admin, change the admin password to take over the account, and view or delete the company's reports, although the text does not show whether the server itself enforced admin rights on those pages.

What the attacker needed

A proxy tool such as Burp; the admin login page is reachable; no valid admin credentials needed

How it was found

  1. Open the admin login page.
  2. Enter the admin username and a password and submit the login form.
  3. Intercept the login request in a proxy tool.
  4. Turn on response interception for that request and forward it.
  5. Change the status value in the response from false to true and forward it.
  6. Open the reports, change password and process return pages with interception turned off.

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 report 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 password was right. Here the website's front end believed that message without checking with the server again, so a person using a proxy tool could flip the answer from 'no' to 'yes'. The pages then opened as if the login had worked, even though the password was wrong.

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 7odamoo

View all

1 more disclosed report, best first.

More from UPS VDP

View all

The newest disclosed reports for this program.

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.