-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
XSS in transform filter #3018
Copy link
Copy link
Closed
Labels
bugFor bugs or other software errorsFor bugs or other software errorssecurityPull requests that address a security vulnerabilityPull requests that address a security vulnerability
Metadata
Metadata
Assignees
Labels
bugFor bugs or other software errorsFor bugs or other software errorssecurityPull requests that address a security vulnerabilityPull requests that address a security vulnerability
This was found during the hxp ctf.
Credit
@cgvwzq and his writeup
Paste the below JSON in the Vega Editor.
Working demo.
You will see a '1' alert dialog.
To my understanding you should not be able to run arbitrary JS using vega-lite json, should you?
{ "data": { "values": [{}] }, "transform": [ {"filter": "(0//1/)-'\\\n,alert(1))))//'"} ], "mark": "bar" }