Skip to content
Access control Write-up Beginner

I found my first bug [Google Dorking]

Premium course notes stored as PDFs were indexed by search engines and reachable without an account or purchase. Anyone could read paid batch material for free.

medium.com

Published on medium.com

Hi everyone! I am really excited to tell you that I found my first bug after just 3 days of learning recon.

Krishna Agarwal, 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 PDF files were stored in a publicly reachable location with no access check, and search engines indexed them.

Impact

Anyone could access paid course material without buying it, which could harm the company's business model.

What the attacker needed

A search engine; no account needed

The fix

The PDFs should be served only after an authentication and purchase check, and should not be indexed by search engines.

How it was found

  1. Search the site with a search engine using an inurl operator for admin paths.
  2. Review the returned results, which included PDF files.
  3. Open the PDFs and confirm they are premium batch notes.

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 keep paid content in files that search engines can find and list. If those files are not protected by a login check, anyone who finds the link can open them. Here, the paid notes were open to everyone.

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.