Skip to content
Info disclosure Write-up Beginner

Code Flaws and Consequences: The Bug That Exposed PII

An API endpoint for transportation orders returned all orders in the user's city when the order ID was removed from the path, exposing personal data such as addresses, phone numbers, and user IDs. An attacker could access other customers' order information without authorisation.

medium.com

Published on medium.com

Hello there, My name is Mohammed AKA CANITEY, I’m a cyber security enthusiast, and a newbie bug hunter. I’ll share the story of the first bug I reported. it’s my first write-up so it won’t be a perfect one but I’m still learning.

CANITEY, 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 endpoint lacked proper authorisation checks when the order ID was omitted, causing it to return all orders instead of only the authenticated user's orders.

Impact

The vulnerability could expose clients' personal information, such as addresses and phone numbers, to unauthorised users, affecting confidentiality.

What the attacker needed

A user account on the subdomain; ability to create an order

How it was found

  1. Create a transportation order on the subdomain.
  2. Observe the API call to GET /v2/orders/<orderId>/offers.
  3. Try changing the order ID, which returns 403 forbidden.
  4. Truncate the path to GET /v2/orders/<orderId>, which returns order details.
  5. Try changing the order ID again, which returns 403 forbidden.
  6. Request GET /v2/orders/, which redirects (308) and then shows all orders in the city.

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 website's order page asked a server for details using a web address that included an order number. By removing the order number from that address, the server returned every order in the city instead of just the user's own. This let anyone see other people's private information like phone numbers and addresses.

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.