HexBrain

Lab45 · Report #867473

CSRF on https://apps.topcoder.com/wiki/pages/doattachfile.action

Validstatus
mediumseverity
7upvotes
14 Dec 2020disclosed

How it was found

Summary:

Hi :) There is a CSRF on attaching files to wiki pages.

Steps To Reproduce:

There is no CSRF token or anything like that on https://apps.topcoder.com/wiki/pages/doattachfile.action?pageId= . I added the poc html file below. When someone opens this html file, or we can add it into our website, he/she creates an attachment unwillingly.

This file creates csrf.txt on https://apps.topcoder.com/wiki/pages/doattachfile.action?pageId=165871793

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 upload files without their knowledge.

This report was disclosed publicly on HackerOne and belongs to its author and the program. See the original