No rate limit in affiliate statsapi endpoint
The affiliate stats API endpoint did not rate-limit token guesses, so an attacker could brute-force the token and view another user's affiliate statistics.
Originally disclosed on HackerOne
- Triaged in 2 hours
- Fixed in 2 hours
- Paid in 2 hours
- Disclosed after 25 days
##Brute force at affiliate statsapi##
Steps To Reproduce:
- The affiliate stats api link is vulnerable to brute force
https:// chaturbate.com/affiliates/apistats/?username=hackeronetestchat&token=vulnerable I've used my profile and and my token to check brute force
The correct token returned with 200 ok status
Impact
An attacker could view the affiliates stats of an user
Attachments

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
Impact
An attacker could view the affiliate stats of a user.
What the attacker needed
Knowledge of a username; ability to send many requests
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.
An API endpoint is a web address that returns data instead of a web page. This one accepted a token as a password-like value, and nothing stopped someone from trying many tokens quickly until one worked. That let an attacker see another person's affiliate statistics.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.