200$ by Tricking a Global Music App with One Line of Code
The music service trusted the X-Forwarded-For header to decide a user's country, so a spoofed value bypassed the geo-block and unlocked region-specific plans. The author could then sign up for a cheaper US plan and pay with PayPal from outside that region.
medium.com
Published on medium.com
This isn’t a story about some hidden panel or an XSS. This is about one of the most underrated, under-reported, and deeply juicy bug classes:
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 backend trusted the client-supplied X-Forwarded-For header for geo decisions instead of using the real connection address or a trusted proxy chain.
Impact
The bypass broke licensing agreements and let users pay a lower regional price and resell subscriptions, though the report rates it only as a P4.
What the attacker needed
Ability to intercept and edit requests; a payment method such as PayPal
How it was found
- Try to sign up from India and see the 'Service not available in your country' message.
- Pause the signup request in Burp and inspect the headers.
- Add an X-Forwarded-For header with a US IP address and resend the request.
- Observe that the block is gone and the US plans are shown.
- Create accounts with different spoofed IPs and compare the available plans and prices.
- Complete a subscription to the cheaper US plan using PayPal and confirm it activates.
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.
A website often guesses where you are from an address your browser sends, called an IP address. This service also believed a second, optional header that claims to carry the original address, and anyone can write anything in it. By putting a US address in that header, the author looked American to the site and got past the country block.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.