HexBrain

Gratipay · Report #161621

XSS Via Method injection

Informativestatus
3upvotes
1 Sept 2016disclosed

How it was found

Hi guys

i found a low risk vuln , when you request a page on gratipay.com with uncommon Method , the server responds with error message .

Invalid Method 'Invalid HTTP method:TTEGETTT with out escaping chars

so when you inject an html element with method you can trigger an XSS .

Steps to reproduce

  • make an http request with a method like this <img|src='3'|onerror=alert(3)/>

Fix : you should validate the method value before printing it back in responses

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