CSRF on delete friend requests - Not protected with CSRF Token
None
X
XVIDEOS
Submitted None
Team Summary
Official summary from XVIDEOS
Hi, We don't put CSRF tokens on all our endpoints because we don't consider it's a security issue in all cases. In the present example, the only thing you could do is trick the user into clicking on a bunch of links making him cancel all his friend requests one by one. We think everyone agrees that's very unlikely to happen and really not worth anyone wasting time for this. We are disclosing this issue hoping that it will not be submitted again. Regards, The xvideos team
Actions:
Reported by
sbakhour
Vulnerability Details
Technical details and impact analysis
## Summary:
Hello XVideos Security Team,
The is a possibility of CSRF on the POST method when deleting friend requests that are sent by the users. Any user can send the malicious contents to perform the post method in order to delete a friend request for a specific member.
## Steps To Reproduce:
1. Login with your XVideos account and add the X user as a friend
2. Go to your friends request sent and validate that the request is there on https://www.xvideos.com/account/friends/requests/sent
3. Select the user X that you want to delete then click on the button next to Cancel: "Checked" or "All"
4. Intercept the request when the pop up message appear & after you click OK.
5. Notice that this POST request to cancel the friend request is not protected by a CSRF token
6. Using Burp Professional , right click on this request and under engagement tools select "Generate CSRF POC"
7. Copy the HTML contents into a new HTML page as a proof of concept.
8. Send this CSRF HTML page to the victim to delete the friend request of this specific X user
9. Notice that the request deletes the Friend request.
## Supporting Material/References:
Refer to the attached video for more details
##Mitigation:
Add a CSRF token for the POST method to cancel or delete friend requests so it can be done only by the logged in user to confirm the activity.
## Impact
Attackers can send Victims this malicious content to victims to delete sent friend requests of specific users before they get accepted.
Report Details
Additional information and metadata
State
Closed
Substate
Duplicate
Submitted
Weakness
Cross-Site Request Forgery (CSRF)