Skip to content
Access control Write-up Beginner

How I Got Easy Admin Panel Access & Database Credentials — Bug Bounty Hunting

An admin console on a staging subdomain had no authentication, allowing anyone to access admin features. A downloadable PHP file in the console contained hardcoded database credentials, and the database was reachable externally, giving full database access.

pranavrp77 Follow

Published on medium.com

Hey cyber enthusiasts! I’m Pranav Patil, a cybersecurity enthusiast and bug bounty hunter.

Pranav Patil, 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 missing authentication on the admin console and hardcoded database credentials in a downloadable file, combined with the database accepting external connections.

Impact

Anyone with the link could use admin features and, with the exposed credentials, could access the database; the program later restricted access, but the text does not say when the fix was applied relative to the report.

What the attacker needed

Knowledge of the subdomain; no authentication required

The fix

The text says access was blocked and the database restricted after the report, but does not describe the fix method.

How it was found

  1. Find the staging admin subdomain during subdomain enumeration.
  2. Open the subdomain in a browser and observe no login is required.
  3. Download a PHP file from the admin console.
  4. Read the hardcoded database credentials from the file.
  5. Connect to the database using those credentials and run commands.

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.

An admin console is a private page for managing a website. Here it had no login check, so anyone who found the address could use it. Inside, a file meant for download contained the database username and password in plain text, and the database could be reached from the internet, so the author could log in to it.

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 pranavrp77

View all

1 more disclosed report, best first.

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.