CSRF Full Account Takeover
The profile preferences save endpoint accepted a POST request without any anti-CSRF token or password confirmation, so a page hosted elsewhere could submit the form on a logged-in user's behalf. An attacker could change the victim's account settings, including the account type, by getting them to load a crafted page.
Originally disclosed on HackerOne
- Triaged in 33 hours
- Fixed in 25 days
- Disclosed after 25 days
Try this code in your browser:
<html> <body> <form action="https://www.concrete5.org/profile/preferences/-/save/" method="POST"> <input type="hidden" name="uName" value="██████" /> <input type="hidden" name="uEmail" value="████" /> <input type="hidden" name="uAccountType" value="owner" /> <input type="hidden" name="profile_private_messages_notification_enabled" value="1" /> <input type="hidden" name="uPasswordOld" value="" /> <input type="hidden" name="uPasswordNew" value="" /> <input type="hidden" name="uPasswordNewConfirm" value="" /> <input type="submit" value="Submit request" /> </form> </body> </html>You need to ask for confirming password for changing settings, or use a token everytime it is changed.
If any further information is needed, plase ask.
Thanks.
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
What the attacker needed
Victim is logged in; victim visits attacker page
How it was found
- Host an HTML page containing a form that posts to the profile preferences save endpoint.
- Fill the form fields with the desired new profile values.
- Get a logged-in victim to open the page and submit the form.
- The request is submitted without a token or password confirmation.
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 to a site, your browser automatically sends your session cookie with every request to that site. If the site does not check for a secret value that only its own pages know, another website can quietly make your browser send a request that changes your settings. This is called cross-site request forgery, and here it let an attacker alter a victim's profile.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.