Gratipay · Report #116512
Markdown parsing issue enables insertion of malicious tags
Informativestatus
21 Aug 2017disclosed
How it was found
Markdown tags and event handlers can be used to load malicious URLs in user's profile statement.
Here is the payload that when entered in user's profile statement leads to the following HTML:
Payload: www.attacker.com/malicious.exe
Resulting HTML: "html": "<p><em><a href="http://www.attacker.com/malicious.exe\">www.attacker.com/malicious.exe</a></em></p>\n"
See the following screenshots for more details:
"Profile.jpg" "request.jpg" "response.jpg"
User can be redirected to malicious URLs and malware can be hosted on gratipay.com using this vulnerability.
Fix:
Disable the functionality for these markdown tags.