CSRF on https://apps.topcoder.com/wiki/users/editmyprofile.action
The profile editing page lacked a CSRF token, so a malicious HTML page could submit a request that changed a signed-in user's name and other details. An attacker could force victims to alter their profile information without their knowledge.
- Triaged in 12 hours
- Fixed in 4 days
- Disclosed after 5 days
Summary:
Hi :) There is a CSRF on changing user details.
Steps To Reproduce:
There is no CSRF token or anything like that on https://apps.topcoder.com/wiki/users/editmyprofile.action . I added the poc html file below. When someone opens this html file, or we can add it into our website, victim's name and information will change.
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 name and informations 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 edit endpoint accepted state-changing requests without a CSRF token or equivalent origin check.
Impact
An attacker could force signed-in users to change their name and information without their knowledge, though the attack only works against users who are already logged in.
What the attacker needed
Victim is signed in; victim opens a malicious HTML page
How it was found
- Create an HTML page that submits a profile change request to the editmyprofile endpoint.
- Get a signed-in victim to open the page or host it on a website.
- The victim's name and information are changed 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, your browser sends your session cookie with every request to that site. If a page on another site can make your browser send a profile-change request, the site cannot tell it apart from a real one. This is called cross-site request forgery (CSRF), and the fix is to include a secret token that only the real page knows.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.