Skip to content
Business logic Disclosed report Beginner

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.

sicarius Follow

Originally disclosed on HackerOne

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

The original report as published on HackerOne, by sicarius. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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.

More from Snapchat

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.