Skip to content
  • Sebastian Tschan's avatar
    41750323
    SECURITY UPDATE: Fixed cross-site scripting issue in redirect result page. · 41750323
    Sebastian Tschan authored
    Although setting HTML element content via innerHTML ignores script
    tags, it is possible to run arbitrary script code by using the onerror
    handler of img tags:
    
    result.html?<img src="foo.png" onerror="alert(document.cookie)"/>
    
    Setting the body content via textContent/innerText fixes this security
    hole.
    
    Thanks to Diederik van der Boor for the report and proof-of-concept.
    41750323
    SECURITY UPDATE: Fixed cross-site scripting issue in redirect result page.
    Sebastian Tschan authored
    Although setting HTML element content via innerHTML ignores script
    tags, it is possible to run arbitrary script code by using the onerror
    handler of img tags:
    
    result.html?<img src="foo.png" onerror="alert(document.cookie)"/>
    
    Setting the body content via textContent/innerText fixes this security
    hole.
    
    Thanks to Diederik van der Boor for the report and proof-of-concept.
Loading