Skip to content
Access control Write-up Beginner

When a “Legal API” Handed Me a Data Dump UNAUTH

An unauthenticated API endpoint exposed the company's global legal entities, including office addresses, contact details, and banking metadata such as IBANs and SWIFT codes. An attacker could enumerate all entities and download internal legal and operational documents without logging in.

medium.com

Published on medium.com

I haven’t posted in a while because I’ve started to dive into the rabbit hole of bug bounty, and if I have to be totally honest with you, I got hooked !

shehacks_, 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 any authentication or authorization check, so it returned data to any unauthenticated caller.

Impact

The exposed data could enable convincing phishing or business email compromise attacks, and the banking metadata could be used to trick partners into sending payments to fraudulent accounts; the data may also trigger GDPR compliance issues.

What the attacker needed

None

How it was found

  1. Fuzz for hidden API endpoints on the company's domain.
  2. Notice two responses with different content length, one being 'legal'.
  3. Perform recursive fuzzing on the /legal path until a 200 OK response is found.
  4. Open the endpoint in a browser and observe unauthenticated access to company entities.
  5. Enumerate lists of documents tied to each entity and view document contents.

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.

An API is a way for programs to talk to each other, often returning data in a structured format. Here, one of those API addresses was left open so that anyone on the internet could ask for sensitive company information without proving who they were. The fix is to check that the person asking is allowed to see the data before sending it back.

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.