CSRF on https://apps.topcoder.com/wiki/plugins/socialbookmarking/updatebookmark.action
The bookmark creation form lacked a CSRF token, so an attacker could make a logged-in user create a bookmark without their knowledge by getting them to open a crafted HTML page.
- Triaged in 14 hours
- Fixed in 6 days
- Disclosed after 7 days
Summary:
Hi :) There is a CSRF on creating bookmarks form.
Steps To Reproduce:
There is no CSRF token or anything like that on https://apps.topcoder.com/wiki/plugins/socialbookmarking/updatebookmark.action. I added the poc html file below. When someone opens this html file, or we can add it into our website, he/she creates a bookmark unwillingly.
Impact
An attacker can force other users to create a bookmark 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 bookmark creation endpoint accepted state-changing requests without a CSRF token.
Impact
An attacker could force other logged-in users to create bookmarks without their knowledge.
What the attacker needed
Victim is logged in; victim opens attacker page
How it was found
- Create an HTML page that submits the bookmark creation form to the vulnerable endpoint.
- Get a logged-in victim to open that page or host it on a website.
- The victim's browser submits the request and a bookmark is created without their consent.
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 website, your browser sends your session cookie with every request to that site. If a form does not include a secret, unpredictable value (a CSRF token) that proves the request came from the site itself, another website can quietly submit that form on your behalf. Here, an attacker could make your browser create a bookmark you never intended.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.