Skip to content
Access control Disclosed report Beginner

Broken access control

A password-reset endpoint returned a success status that the client trusted, and by flipping that status value in the intercepted response the reporter could reach the reset-password page and the admin support panel. The reporter claims this gave full control over reports and requests on the site.

nayefhamouda Follow

Originally disclosed on HackerOne

High 7.5 View original
  • Triaged in 2 days
  • Fixed in 36 days
  • Disclosed after 2 months

Summary:

hello ups team ,,, I've found broken access control vulnerability in your sites It allows me to access the admin panel of the support team, and I can view all requests within the site

vulnerable domains:█████

Steps To Reproduce:

[add details for how we can reproduce the issue]

  1. go to █████████
  2. go to ████████████████ ,put any email address and intercept the request
POST /api/Account/SendTempPassword/?userName=█████████████ HTTP/2
Host: ██████████████████
Cookie: ████████
Content-Length: 0
Sec-Ch-Ua: " Not A;Brand";v="99", "Chromium";v="99", "Google Chrome";v="99"
Accept: application/json, text/plain, */*
Sec-Ch-Ua-Mobile: ?0
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/99.0.4844.82 Safari/537.36
Sec-Ch-Ua-Platform: "Linux"
Origin: ██████████████████
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Accept-Encoding: gzip, deflate
Accept-Language: en-GB,en-US;q=0.9,en;q=0.8,ar;q=0.7


3.On the burp site, intercept the response for this request and change this value to Then change the "status" value of this request from false to true

##response:

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-Headers: Accept, Content-Type, Origin
Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
Date: ██████████████████ ████████████ GMT
Content-Length: 89

{"status":true,"errorMessage":"Username does not exist. Please enter correct Username."}
  1. After that, go to this path /resetPassword You will notice that this page has been opened without problems

███████████

Go to user or report and you will notice that it opens normally and you can fully control it

I made a video of the vulnerability that you can watch

##video POC:

███████

Impact

The attacker can hack the admin control panel and view and modify all reports

The original report as published on HackerOne, by nayefhamouda. 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 application made an access decision based on a client-side response field rather than enforcing authorisation on the server.

Impact

The reporter claims an attacker could reach the admin control panel and view and modify all reports, though the text gives no proof that server-side authorisation was actually bypassed.

What the attacker needed

A proxy tool to edit responses

The fix

The server should enforce authorisation for the reset-password page and admin panel regardless of the status value returned to the client.

How it was found

  1. Open the site's account area and submit any email address in the temporary-password form.
  2. Intercept the resulting API request in a proxy tool.
  3. Intercept the response and change the status field from false to true.
  4. Navigate to the reset-password path, which now opens.
  5. Open the user or report pages and interact with them.

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.

The reply said the username did not exist, but after editing the reply to say 'true' the reset screen opened. The reporter says this let them into a support admin area.

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 nayefhamouda

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.