Google Rate Limit Bypass: Triggering Infinite Spam Requests
A rate limit on sending messages when requesting access to a shared Google Drive file could be bypassed by manipulating the User-Agent header, allowing an attacker to send hundreds of spam requests. The attacker could flood a victim with repeated access requests.
Published on medium.com
medium.com](https://medium.com/@AhmedSamy-X/uncovering-a-hidden-logic-flow-a-deep-dive-into-exploitation-824e1dec12cc)
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 rate limit was applied per User-Agent value rather than per user or IP address, so changing the User-Agent bypassed the limit.
Impact
An attacker could send hundreds of spam requests to a victim, potentially causing annoyance or flooding their notifications.
What the attacker needed
A Google account; victim has a Google account; attacker can share a Drive file with victim
How it was found
- Create a Google Drive file and share it with someone as a Viewer, requiring them to accept the request.
- As the attacker, send a request to view the shared content and attach a message.
- Intercept the request with Burp Suite and send it to Repeater to test repeated sending.
- Send the message more than 10 times and observe that it is delivered each time.
- Send the request to Intruder, target the numbering section in the User-Agent header with a numeric payload, and set it to send 500 requests.
- Observe that all 500 requests go through successfully.
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 rate limit is a rule that stops someone from doing something too many times, like sending too many messages. Here, the rule could be avoided by changing a small piece of information in the request, so the system did not recognise that the same person was sending many messages. This let an attacker send lots of unwanted requests to someone.
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.