Skip to content

[security] prevent XSS markup viz#3211

Merged
mistercrunch merged 2 commits into
apache:masterfrom
mistercrunch:sandbox_markup
Aug 11, 2017
Merged

[security] prevent XSS markup viz#3211
mistercrunch merged 2 commits into
apache:masterfrom
mistercrunch:sandbox_markup

Conversation

@mistercrunch
Copy link
Copy Markdown
Member

This works but the CSS styling doesn't carry through. Would have to refactor the theme's CSS out of the javascript build and reference it in the iframe to make it work.

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 1, 2017

Coverage Status

Coverage remained the same at 69.349% when pulling 8bfc8251402cd722ae202e0844ba9c13b283af45 on mistercrunch:sandbox_markup into 299e9ce on apache:master.

1 similar comment
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 69.349% when pulling 8bfc8251402cd722ae202e0844ba9c13b283af45 on mistercrunch:sandbox_markup into 299e9ce on apache:master.

@mistercrunch
Copy link
Copy Markdown
Member Author

#3262 should unblock this effort

@coveralls
Copy link
Copy Markdown

coveralls commented Aug 9, 2017

Coverage Status

Coverage increased (+0.03%) to 69.335% when pulling 26fcfa3919c96a80d48ea11615b42a74cbe87460 on mistercrunch:sandbox_markup into 327c052 on apache:master.

@mistercrunch mistercrunch changed the title [WiP] prevent XSS markup viz [security] prevent XSS markup viz Aug 10, 2017
@mistercrunch
Copy link
Copy Markdown
Member Author

The only issue left is somewhere around our custom font "Roboto" not working in iframes. Can we helvetica?

mistercrunch and others added 2 commits August 10, 2017 21:03
We protect the browser by sandboxing the user code inside an iframe
@coveralls
Copy link
Copy Markdown

coveralls commented Aug 11, 2017

Coverage Status

Coverage increased (+0.1%) to 69.387% when pulling 1b3d135 on mistercrunch:sandbox_markup into bd4a4c2 on apache:master.

@mistercrunch mistercrunch merged commit 0c5db55 into apache:master Aug 11, 2017
@mistercrunch mistercrunch deleted the sandbox_markup branch August 11, 2017 04:38
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.19.1 First shipped in 0.19.1 labels Feb 27, 2024
qfcwell pushed a commit to qfcwell/superset that referenced this pull request May 12, 2026
* Prevent XSS in Markup viz

We protect the browser by sandboxing the user code inside an iframe

* Helvetica
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.19.1 First shipped in 0.19.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants