Skip to content
Access control Write-up Intermediate

Bypassed the admin panel by reading “support team quotes”

A mail server exposed a credentials file (AUTH.txt) that was protected by a 403 response, but the protection could be bypassed by sending a POST request to a path with a double slash. An attacker could read the file and obtain credentials to log into the admin panel.

medium.com

Published on medium.com

Hello guys , this is Praveenarsh again hope this blog will give some knowledge , lets start.

praveenarsh0xx0, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

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

How it worked

Root cause

Likely the access control for the AUTH.txt file was only enforced for GET requests or for the exact path, and a POST request to a path with a double slash bypassed the check.

Impact

An attacker could read the credentials file and log into the admin panel, gaining administrative access to the mail portal.

What the attacker needed

Target uses MailEnable; AUTH.txt file present on web server; attacker can send HTTP requests

How it was found

  1. Found a subdomain mail.target.cloud that looked like an admin and user mailing portal.
  2. Noticed the mail service was provided by third party 'mailenable'.
  3. Researched MailEnable support questions and answers and found a mention of AUTH.tab files containing credentials.
  4. Tried to access /AUTH.tab (404) and /AUTH.txt (403).
  5. Used a 403 bypass tool to fuzz and found a 200 response when sending a POST request to //AUTH.txt.
  6. Read the credentials from the response and used them to log in successfully.

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 write-up has not been written yet. The Original tab links to the source.

A web server sometimes blocks access to a file by returning a '403 Forbidden' error. Here, the file contained login details for the mail admin panel. The tester found that by using a slightly different request (a POST request to a path with an extra slash), the server returned the file instead of blocking it. This let them read the credentials and log in.

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.

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.