Markdown parsing issue enables insertion of malicious tags and event handlers

Disclosed: 2018-01-29 16:37:43 By dr_dragon To security
High
Vulnerability Details
When markdown is being presented as HTML, there seems to be a strange interaction between _ and @ that lets an attacker insert malicious tags. # Proof of Concept : ``` </http:<marquee>hello ``` is rendered converted to the following HTML: ``` <p><a title="/http:<marquee" href="/http:%3Cmarquee" target="_blank">/http:<marquee>hello</p> </marquee></a></p> ``` As you can see, the output includes a </http:<marquee tag that I can add arbitrary attributes (including event handlers). ## Impact When markdown is being presented as HTML, there seems to be a strange interaction between _ and @ that lets an attacker insert malicious tags.
Actions
View on HackerOne
Report Stats
  • Report ID: 299728
  • State: Closed
  • Substate: resolved
  • Upvotes: 181
Share this report