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.
- 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:
- Open
████ - Enter
Adminas a Username and███as a password
█████
- 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":"██████████"}
- Intercept the response for this request in Burp by >>
Do Intercept >>Response to this requestand then Forward this request - Change
statusvalue fromfalsetotrueand 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."}
- Now open
Report,Change PasswordandProcess Returnand 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
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
- Open the admin login page.
- Enter the admin username and a password and submit the login form.
- Intercept the login request in a proxy tool.
- Turn on response interception for that request and forward it.
- Change the status value in the response from false to true and forward it.
- 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.