RATELIMITED · Report #782764
xss in /users/[id]/set_tier endpoint
How it was found
Summary:
[add summary of the vulnerability] Hello there ! I found an XSS since you forgot to add the json content-type response header right there: https://github.com/gtsatsis/RLAPI-v3-OOP/blob/508d3c610ccc9076753bdc81151a5e8d76871a3e/src/Controller/UserController.php#L93 The tier parameter is therefore returned with the wrong Content-Type (text/html). I have been able to verify the existance of the XSS. Note that you can bypass the '' added to both " & / by using comments such as:
Steps To Reproduce:
[add details for how we can reproduce the issue]
- Deploy to a test instance
- Create one admin user with correct api key filled in the database
- the /users/[id]/set_tier "tier" POST parameter is vulnerable to XSS injection.
Supporting Material/References:
- Selection_033.png =>burp capture attached
Impact
Reflected cross site scripting should be fixed, as an user might be able to steal cookies/escalate privileges.