Finding Real IP Behind Cloudflare And Exploiting IDOR Vulnerabilities
The GraphQL API accepted edit-user requests without a valid Authorization header, so the author could change another account's profile data. The author also located the origin server behind Cloudflare to test the API directly without dealing with the Cloudflare cookie.
Seperti biasa saya menemukan target menarik pada NFT Marketplace tapi kali ini ada di jaringan INJECTIVE.Pertama selalu saya tegaskan pekerjaan saya yang utama bukan BugBounty hunter, tapi disini saya hanya kadang suka iseng mencari bug/pentesting diwaktu luang saya. Jadi, disini saya hanya pemula dan maaf jika ada…
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 edit-user GraphQL operation did not verify the caller's identity or ownership of the account being changed.
What the attacker needed
A user account; ability to intercept requests; origin IP found via Censys
How it was found
- Open the site's network traffic while editing and saving a user profile.
- Notice the GraphQL request has an empty Authorization header.
- Copy the request as curl and resend it, first through Postman and then the terminal.
- Search Censys for the host and list related IP addresses.
- Visit each IP and compare its page with the real site to find the origin.
- Add the GraphQL path to the origin IP and resend the edit request to change another account.
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 the part of a website that apps talk to in the background. Here it did not check who was asking before saving profile changes, so anyone could edit someone else's account. The author also found the server's real address behind Cloudflare, a protective front layer, to test more freely.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.