Skip to content
Info disclosure Write-up Intermediate

The Return of The Luhn Algorithm

A bank's money transfer endpoint returned the recipient's full name and national ID number when a card number was entered, without rate limiting. An attacker could generate valid card numbers using public BIN ranges and the Luhn checksum, then brute-force the endpoint to harvest PII at scale.

medium.com

Published on medium.com

When testing a bank’s assets, I noticed something in a request that no one else had noticed, which disclosed all customers’ full names and national ID numbers. The team has already fixed the issue.

Alp, 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 API returned sensitive PII (full name and national ID) in the response to a card-number lookup and lacked rate limiting, allowing enumeration of valid card numbers.

Impact

An attacker could mass-scrape customers' full names and national ID numbers; the bank has over 100 million customers, and no funds were transferred or alerts triggered.

What the attacker needed

Access to the bank's transfer feature; knowledge of public BIN ranges; ability to send many requests

The fix

The issue was fixed by the bank.

How it was found

  1. Enter a recipient's card number in the transfer feature.
  2. Observe the POST request that sends a verification SMS.
  3. Note the response includes the recipient's full name and national ID.
  4. Test rate limiting by sending 100 requests; all return 200 OK.
  5. Generate valid card numbers using BIN and Luhn.
  6. Use Burp Intruder to send generated numbers and obtain PII.

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.

When you type a card number into a bank's transfer form, the bank checks if that card belongs to it and shows the owner's name. Here, the bank also sent back the owner's national ID number, and it allowed unlimited tries. Because card numbers follow a predictable pattern, someone could guess many numbers and collect personal data.

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.