Skip to content
Info disclosure Write-up Beginner

How I Discovered a PII Leak in a Developer Platform

A follow-user API endpoint returned the followed user's email address in plain text, along with the email of the person who had followed them. An attacker with an account could read other users' email addresses, including internal employees' company addresses, through ordinary forum interactions.

medium.com

Published on medium.com

In this article, I walk through a bug I reported through a bug bounty program. The issue was Excessive Data Exposure (OWASP API Top 10 - API3:2019), where an API endpoint exposed users’ email addresses, including internal employees’ when accessing profiles.

Medusa, 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 follow endpoint returned the full user object, including the email field, instead of filtering the response to only the fields the page needed, and unlike other endpoints it did not encrypt the email.

Impact

Email addresses of other users, including internal employees' company addresses, could be read by any account holder, exposing personal data; the text does not show any further use of the leaked addresses.

What the attacker needed

A free account on the platform; ability to follow another user

How it was found

  1. Enumerate subdomains of the target and browse the interesting ones manually.
  2. Create an account on the forum-like developer platform and click around while watching requests in a proxy.
  3. Follow another user and capture the PUT request that the follow action sends.
  4. Send the captured request to the proxy's repeater tool and inspect the JSON response.
  5. Observe the plain-text email addresses of the followed user and of that user's follower in the response.

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 use a website, your browser and the server swap data, often in a format called JSON, which is just labelled text. This site's follow feature sent back more data than the page needed, including other people's email addresses. Anyone with a normal account could see private contact details that should have been hidden.

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.