-
Notifications
You must be signed in to change notification settings - Fork 30
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
preload checkout modal #313
base: master
Are you sure you want to change the base?
Conversation
|
||
const styleNode = document.createElement('style'); | ||
styleNode.type = 'text/css'; | ||
styleNode.innerHTML = styleSnippet; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User controlled data in a styleNode.innerHTML
is an anti-pattern that can lead to XSS vulnerabilities (Line 276)
🙈 From insecure-innerhtml.
window.MagicCheckout.showModal = function() { | ||
const modal = document.createElement('div'); | ||
modal.id = 'magic-wrapper'; | ||
modal.innerHTML = htmlSnippet; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
User controlled data in a modal.innerHTML
is an anti-pattern that can lead to XSS vulnerabilities (Line 285)
🙈 From insecure-innerhtml.
e1341d2
to
0cc2173
Compare
0cc2173
to
4eaf82f
Compare
No description provided.