Infinite Upvoting/Downvoting: Lockout Bypass, Plus: Exposed API Documentation
The upvote/downvote API allowed unlimited voting by adding an extra parameter, bypassing IP-based rate limiting. An attacker could script votes to manipulate definition rankings, and the API documentation was publicly exposed.
- Triaged in 3 days
- Fixed in 20 days
- Disclosed after 53 days
By sending an extra parameter (kind=1) in the upvote/downvote API request, a user can vote as many times as he wants without any IP address restriction:
http://api.urbandictionary.com/v0/vote?kind=1&direction=up&defid=94413
Seems harmless enough, but your site does depend on the accuracy of the definitions. So it could be a real problem if this was discovered by a bad hacker who wanted to cause harm to your site. He could write a program to systematically bring bad definitions or spam to the top of every word result.
This strange extra parameter was discovered because your Swagger API documentation is publicly accessible here: http://api.urbandictionary.com/docs/index.html
So I would also recommend hiding that.
I didn't find anything else too bad about your API, just some neat things like: http://api.urbandictionary.com/v0/words_of_the_day?per_page=90000000&page=1&api_key=ab71d33b15d36506acf1e379b0ed07ee
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 script votes to systematically promote bad definitions or spam to the top of search results, undermining the site's accuracy.
What the attacker needed
Access to the public API; No authentication required
The fix
The API should prevent unlimited voting despite extra parameters, and the public Swagger documentation should be hidden.
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 website lets people vote on definitions, and normally it tries to stop one person from voting many times by checking their IP address. The reporter found that adding an extra value to the request made the site skip that check, so someone could vote as often as they liked. This could let a bad actor push spam or bad definitions to the top of the site.
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.