Skip to content
Access control Write-up Beginner

How I Found a Broken Access Control Flaw: Bypassing Authenticatio

A web server exposed a PHP page that required authentication, but removing the .php extension from the URL bypassed the login and revealed all user-edited videos. The attacker could also access a directory listing that exposed every video file.

DOD cyber solutions Follow

Published on doordiefordream.medium.com

Today, I want to share an interesting security finding with all of you. I discovered this vulnerability in an Intigriti private program,

DOD cyber solutions, on doordiefordream.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

Impact

An unauthenticated attacker could view all user-edited videos and download them directly, as the directory listing exposed every file.

What the attacker needed

None

The fix

The server should enforce authentication consistently for all routes that serve the same content, and directory listing should be disabled.

How it was found

  1. Open the subdomain videos.jaibalayya.de and view the image source to find the path /img/x.svg.
  2. Change the image name to y.svg and observe a 404 that reveals a navigation menu.
  3. Click the Videos tab and see an authentication prompt at /videos.php.
  4. Remove .php from the URL to access /videos and view all user-edited videos.
  5. Visit the /media/ directory to see a listing of every video file.

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.

Some websites use different rules for URLs ending in .php versus those without it. Here, the server treated the .php version as protected but the extensionless version as public, so anyone could see private videos by simply changing the address.

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 DOD cyber solutions

View all

4 more disclosed reports, 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.