Skip to content
Info disclosure Write-up Beginner

Bug Bounty 101 — Always Check The Source Code

An enrollment portal allowed unlimited attempts to guess the last four digits of a customer's Social Security number, and a later step exposed the account number and a verification answer in an HTML comment. An attacker could use these to complete verification and obtain sensitive customer information.

Spazzy Follow

Published on medium.com

Never miss out on checking out the source code! In a recent bounty program for a company I can’t disclose, I found a hilarious information disclosure that is a great example of why you should always check out the source code.

Spazzy, 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 application lacked rate limiting on the SSN verification step and inadvertently included sensitive data in an HTML comment.

Impact

An attacker could complete verification, learn the last four SSN digits, and obtain the account number and a verification answer, leading to information disclosure.

What the attacker needed

Access to the enrollment portal; knowledge of a customer's email and phone number

How it was found

  1. Enter any email and the account phone number in the enrollment portal.
  2. Proceed to the verification step that asks for the last four digits of the SSN.
  3. Submit guesses for the SSN last four without any request limit.
  4. After reporting, check the source code of the next step.
  5. Find an HTML comment containing the account number and a verification answer.

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's website had a form where you could try guessing someone's Social Security number digits as many times as you wanted. Also, the page's hidden code (HTML comments) accidentally showed private account details. This let someone learn sensitive information about customers.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.