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.
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
- Create a transportation order on the subdomain.
- Observe the API call to GET /v2/orders/<orderId>/offers.
- Try changing the order ID, which returns 403 forbidden.
- Truncate the path to GET /v2/orders/<orderId>, which returns order details.
- Try changing the order ID again, which returns 403 forbidden.
- 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.