Skip to content
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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

preload checkout modal #313

wants to merge 1 commit into from

Conversation

poojarazor
Copy link
Contributor

No description provided.


const styleNode = document.createElement('style');
styleNode.type = 'text/css';
styleNode.innerHTML = styleSnippet;

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)

🔴 Fix or ignore this finding to merge your pull request.
🙈 From insecure-innerhtml.

window.MagicCheckout.showModal = function() {
const modal = document.createElement('div');
modal.id = 'magic-wrapper';
modal.innerHTML = htmlSnippet;

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)

🔴 Fix or ignore this finding to merge your pull request.
🙈 From insecure-innerhtml.

@poojarazor poojarazor requested review from ChetanGN and angbpy July 13, 2022 12:08
@poojarazor poojarazor force-pushed the 1cc-shimmer-checkout branch from e1341d2 to 0cc2173 Compare July 21, 2022 12:56
@poojarazor poojarazor force-pushed the 1cc-shimmer-checkout branch from 0cc2173 to 4eaf82f Compare July 21, 2022 13:08
@angbpy angbpy self-requested a review July 22, 2022 15:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants