CSRF on https://apps.topcoder.com/wiki/users general and email preferences
The user preference and email preference forms lacked CSRF protection, so an attacker could make a signed-in victim change their settings without consent. The attacker could alter the victim's general and email preferences.
- Triaged in 11 hours
- Fixed in 4 days
- Disclosed after 5 days
Summary:
Hi :) There is a CSRF on setting general and email preferences.
Steps To Reproduce:
There is no CSRF token or anything like that on https://apps.topcoder.com/wiki/users/editmypreferences.action and https://apps.topcoder.com/wiki/users/editemailpreferences.action . I added the poc html files below. Attacker can change victim's preferences.
Note: This only works to signed-in users. 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 preferences 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
Impact
An attacker could force signed-in users to change their general and email preferences without their knowledge.
What the attacker needed
Victim is signed in; victim visits attacker page
How it was found
- Log in to the Topcoder wiki as a signed-in user.
- Visit the attacker's proof-of-concept page while still logged in.
- The page submits requests to the general and email preference endpoints.
- The victim's preferences 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, a website often trusts any request that comes with your browser's session cookie. If a form does not include a secret, unpredictable token, another site can submit that form on your behalf. This is called cross-site request forgery (CSRF). Here, the preference forms had no such token, so a malicious page could change a logged-in user's settings.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.