Skip to content
CORS Write-up Intermediate

EN | Account Takeover and Sensitive Data Leakage via CORS Misconfiguration

A CORS misconfiguration was found; a PUT to the API changed the account email and returned all account data in JSON.

Lütfü Mert Ceylan Follow

Published on lutfumertceylan.com.tr

In June of this year, I found a CORS Misconfiguration vulnerability in a datacenter company. The system was very simple, a PUT command sent to the API Server both changed the account email and showed all the data of the account in JSON format as Response.

Lütfü Mert Ceylan, on lutfumertceylan.com.tr

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 a CORS misconfiguration on the API server, with a PUT that changed the email and returned account data.

Impact

A PUT to the API changed the account email and returned all account data in JSON, enabling account takeover and data exposure.

How it was found

  1. Send a PUT request to the API server that changes the account email.
  2. Observe that the response shows all the account data in JSON format.

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.

CORS is a browser rule for cross-site data requests. Here a CORS misconfiguration was found, and a PUT to the API changed the account email and returned all account data.

What is CORS?

A permissive cross-origin policy lets another site read responses with the user's credentials.

More by Lütfü Mert Ceylan

View all

6 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

CORS misconfiguration

The lesson behind this report.

A permissive cross-origin policy lets another site read responses with the user's credentials.