Bypass Rate Limits on app.snapchat.com API Endpoint via X-Forwarded-For Header
Rate limiting on several app.snapchat.com endpoints could be bypassed by setting an X-Forwarded-For header to a loopback address in POST requests. An attacker could then send far more requests than the intended limit allowed.
- Triaged in 10 days
- Fixed in 6 months
- Paid in 19 days
- Disclosed after 21 months
Summary by the program
An attacker can bypass the rate limiting in place at app.snapchat.com by setting the X-Forwarded-For header to 127.0.0.1 in POST requests to app.snapchat.com/stories_everywhere/download_sms and several other endpoints. This bypasses the controls in place for this endpoint, which appears to have strict rate limits.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the rate limiter keyed on the client-supplied X-Forwarded-For header instead of the real connection address, so a spoofed loopback value reset the counter.
Impact
The text claims the strict rate limits on the affected endpoints could be bypassed, but it does not show what abuse this enabled.
What the attacker needed
Ability to send custom HTTP headers
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 report has not been written yet. The Original tab links to the source.
Rate limiting caps how many requests a client can make. Here the server used a client-supplied header to identify the client, so setting it to a loopback address bypassed the limit.
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.