Skip to content
Access control Write-up Intermediate

From PDF to Five-Figure Payday: When Legacy Docs Attack

An old admin help PDF was accessible without authentication via forced browsing, and it contained a screenshot leaking a demo phone number. Using that number and a default PIN, the attacker accessed an internal admin portal and reset the password, gaining privileged access to production PII.

medium.com

Published on medium.com

It took less than thirty minutes to turn a few “meh” misconfigurations into a five figure ($XX,XXX) bug bounty.

Armand Jasharaj, 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 a combination of missing access controls on a legacy PDF, a default PIN on a test account, and a password reset flow that relied only on a phone number and PIN.

Impact

The attacker could take over an internal test account with elevated privileges and access a large amount of production PII.

What the attacker needed

Target runs IIS with tilde enumeration enabled; Legacy PDF accessible without authentication; Test account with default PIN exists; Password reset via phone and PIN enabled

How it was found

  1. Discovered an IIS server and fuzzed directories to find a /UserHelp/ directory.
  2. Used IIS tilde enumeration to find a short filename, then fuzzed filename and extension to discover a PDF file.
  3. Accessed the PDF directly via its URL, bypassing authentication.
  4. Extracted a phone number from a screenshot in the PDF.
  5. Used the phone number and a default PIN (123456) to log into an admin portal and obtain an email address.
  6. Found a password reset endpoint, used the phone number and PIN to set a new password, and logged into the admin dashboard.

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 company left an old instruction manual on its website that anyone could download without logging in. The manual had a picture showing a phone number used for testing. The attacker used that number and a very common PIN to log into an admin area and then reset the password, taking over the account.

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.