2 Bypass of #1067533 rate limit via X-Forwarded-For<space>: Source IP on ( www.trycourier.app )
The rate limit on an AWS API Gateway endpoint could be bypassed by adding a space before the colon in the X-Forwarded-For header, causing the gateway to treat the header differently. An attacker could then send unlimited requests, defeating the rate-limiting protection.
Originally disclosed on HackerOne
- Triaged in 16 hours
- Fixed in 3 months
- Disclosed after 3 months
Summary by the program
A vulnerability with AWS API Gateway was uncovered that allowed rate limiting to be bypassed when the X-Forwarded-For headed was manipulated (a string added to the header key)
Summary by the researcher
I was able to bypass the rate limit by adding extra space before the colon X-Forwarded-For<space>: 127.0.0.1. The actual bug was in AWS API Gateway that allowed rate limiting to be bypassed. Now Both of the company fixed the issue after reporting them.
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 AWS API Gateway parsed the X-Forwarded-For header key differently when a space was inserted before the colon, so its rate-limiting logic did not recognise the header and failed to apply the limit.
Impact
An attacker could bypass the rate limit, defeating that protection.
What the attacker needed
None
The fix
The issue was fixed by the company and AWS after reporting.
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.
A rate limit is a cap on how many requests you can make in a certain time, used to stop abuse. Here, the system that enforces the cap (AWS API Gateway) was confused by a slightly malformed header name, so it did not count the requests correctly. This let someone send many more requests than allowed.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.