Skip to content
Access control Disclosed report Beginner

[██████████] Unauthorized access to admin panel

The site tried to block unauthenticated users by redirecting them to a login form, but the redirect response still carried the HTML of the protected page in its body. An attacker could intercept the response, drop the redirect, and read private information from the admin panel without logging in.

jarvis0x1 Follow

Originally disclosed on HackerOne

  • Triaged in 27 hours
  • Fixed in 8 days
  • Disclosed after 10 months

In previous reports, I described vulnerabilities in a panel to which I had access.

#512269 #512693 #512695

I could log in to this site and then perform some attacks, such as SQL injection\XSS or other bugs. But before the above vulnerabilities were considered by you, the possibility to bypass authorization on the site was disabled. And after that, the vulnerabilities could not be reproduced and I was forced to close my reports.

Recently, I began to explore this site again. And I found that the developers have poorly implemented the restriction of authorization on the site.

I can still get the contents of an authorized site. How? When I visit some pages of the site, I get a redirect to the authorization form. But in addition to the redirect, the response body also contains HTML code of auth site.

Look this pages:

https://███████/mission.php https://██████████/personnel.php https://███████/index.php

Steps to reproduce

  1. Turn on Live Interception in burp (Proxy-Intercept)
  2. Intercept request. Press right mouse button-> Do intercept -> Response this request

█████████ 3) Delete this redirection

████

Here I can see a lot of private information

https://█████████/personnel.php

█████

https://███/index.php

███████

Impact

Incorrect access restriction to the authorized interface of the site leads to information leakage.

The original report as published on HackerOne, by jarvis0x1. 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 access check only issued a redirect after the protected page had already been rendered, so the page body was still sent to unauthenticated users.

Impact

Unauthenticated users could read private information from the authorised area of the site.

What the attacker needed

No account needed; a proxy that can intercept responses

How it was found

  1. Turn on response interception in the proxy.
  2. Request a protected page such as the personnel page.
  3. Intercept the response and remove the redirect.
  4. Read the private content returned in the response body.

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.

Some websites protect pages by sending your browser to a login page instead of showing the page. Here the server sent the login redirect but also included the hidden page's content in the same reply. By stopping the browser from following the redirect, a person could see the private page anyway.

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 jarvis0x1

View all

10 more disclosed reports, best first.

More from U.S. Dept Of Defense

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.