Skip to content
CORS Write-up Beginner

How a Simple CORS Misconfiguration Put a Finance Platform at Risk

The API server returned a wildcard Access-Control-Allow-Origin together with Access-Control-Allow-Credentials: true, which violates the CORS specification. An attacker could host a page that makes authenticated cross-origin requests and reads sensitive financial data from a logged-in victim's account.

medium.com

Published on medium.com

During a routine security assessment, I identified a critical CORS (Cross-Origin Resource Sharing) misconfiguration on a financial platform. Due to an insecure server-side configuration, authenticated API responses could potentially be accessed by malicious third‑party websites.

Abdulbar, 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

The server combined a wildcard allowed origin with credential support, which the CORS specification forbids.

Impact

An attacker could read authenticated API responses such as balances and transaction history, and could potentially perform financial actions on behalf of a logged-in user; the text notes that CORS alone does not directly cause account takeover.

What the attacker needed

Victim is logged in; victim visits attacker page; attacker controls a website

The fix

The CORS configuration was fixed by removing credential support or replacing the wildcard origin with a strict allowlist.

How it was found

  1. Send an OPTIONS request to a sensitive API endpoint with an attacker-controlled Origin header.
  2. Observe the response headers showing a wildcard origin and credentials allowed.
  3. Host a page that fetches an authenticated endpoint with credentials included.
  4. Have a logged-in victim visit the page to read their data.

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 that lets a website say which other websites may read its responses. This server said 'any website' while also allowing logged-in cookies to be sent, so a malicious page could fetch a victim's private data. The browser should normally block this, but the server's settings told it not to.

What is CORS?

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

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.