(Apr 11, 2020 12:25 PM)Nortrium Wrote: Good afternoon,
I was hoping the high intellects of HackForums could teach me how to exploit this vulnerability.
Thank you!
TELEGRAM: @M4MB4
HTTP DELETE Method is most commonly used with API Calls. For Example: You have a website where you have provided a feature of Delete User button.
When a user clicks on delete, a HTTP request like this is sent:
Code
DELETE https://examplewebsite/api/deleteuser/2345
Here "2345" is the UserID.
Now in cases like IDOR (Insecure Object Reference) a different USER with UserID 4567 clicks on the "Delete account " button and then in the HTTP Request which follows he/she replaces his own ID "4567" with the victim's ID "2345". Thereby, he ends up deleting someone else's account on the website.
Another bug would be that no authentication is actually required you simply call the URL with DELETE method and change the ID and the respective accounts will start getting deleted from the server.
Some other cases would be
- Delete File uploaded by another user
- Delete Post/Commend of another User
- Delete His saved profile
- Delete items from a shopping cart
- Delete any stored information in any other user's profile
- Real Life bug example would be when a user was able to delete the tweet of any other user (was patched last year)