CSRF on https://apps.topcoder.com/wiki/users/editmyprofilepicture.action
The profile picture upload page lacked a CSRF token, so an attacker could make a signed-in victim upload a new profile photo without their knowledge. The attacker could therefore change the victim's profile picture.
- Fixed in 11 days
- Disclosed after 7 months
Summary:
Hi :) There is a CSRF on uploading user profile photo and saving it.
Steps To Reproduce:
There is no CSRF token or anything like that on https://apps.topcoder.com/wiki/users/editmyprofilepicture.action . I added the poc html files below. Attacker can upload a new profile photo and update victim's profil photo.
Note: This only works to signed-in users. Because unauthorized users cannot upload attachments. There is a mistake on https://apps.topcoder.com/wiki/login.action now. If you encounter an error, you can login on main site (https://accounts.topcoder.com/member) then try.
Impact
An attacker can force other users to change their profile pictures without their knowledge.
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
Root cause
The profile picture upload endpoint accepted state-changing requests without a CSRF token.
Impact
An attacker could force signed-in users to change their profile pictures without their knowledge; the attack only works against users who are already logged in.
What the attacker needed
Victim is signed in; victim visits attacker's page
How it was found
- Host a page that automatically submits a profile picture upload to the vulnerable endpoint.
- Get a signed-in victim to open that page.
- The victim's profile picture is replaced without their knowledge.
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.
When you are logged in, a website often trusts any request that carries your session cookie. A cross-site request forgery (CSRF) attack tricks your browser into sending such a request from another site, so the site thinks you did it. Here the profile picture upload form had no secret token to prove the request came from the real page, so an attacker's page could submit it for you.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.