Skip to content
CORS Write-up Intermediate

How I Earned $1,000 by Exploiting a Hidden Subdomain and Chaining a CORS Misconfiguration with IDOR

A legacy API subdomain had an insecure CORS configuration that allowed any origin to read authenticated responses, and an invoice endpoint lacked authorisation checks, so an attacker could read other users' invoices. Chaining these let a malicious page fetch and display another user's invoice data if the victim visited it.

theindiannetwork Follow

Published on theindiannetwork.medium.com

This is a detailed breakdown of how I found a misconfigured subdomain, escalated it through CORS misconfig, and eventually discovered an IDOR that exposed customer data. The vulnerability wasn’t critical enough for a massive payout — but it was clean, ethical, and earned me $1,000 in under 72 hours.

TheIndianNetwork, on theindiannetwork.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 reflected a wildcard origin while allowing credentials, and the invoice endpoint trusted a user-supplied identifier without checking ownership.

Impact

An attacker could read other users' invoice data, including full name, email, amount, and billing address, if a victim visited a malicious page; the report notes this could affect thousands of users.

What the attacker needed

Victim visits attacker page; attacker knows invoice id

How it was found

  1. Enumerate subdomains and find the legacy API host.
  2. Inspect response headers and notice the CORS misconfiguration.
  3. Create a page that fetches the profile endpoint with credentials.
  4. Intercept logged-in traffic and find the invoice endpoint with a numeric id.
  5. Change the id value to retrieve another user's invoice.

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 controls which websites can read responses from another site. Here the API told browsers that any website could read its responses, even when the user was logged in. Separately, the invoice page did not check who owned each invoice, so changing a number in the request showed someone else's invoice.

What is CORS?

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

More by theindiannetwork

View all

23 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.