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

Update xss-example.js #50

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

Update xss-example.js #50

wants to merge 1 commit into from

Conversation

tomer-mobb
Copy link
Owner

No description provided.

@@ -2,4 +2,4 @@
var username = urlParams.get('username');

var unsafe_div = window.document.getElementById("vulnerable-div");
unsafe_div.innerHTML = "Hello to you, " + username + "!!!";
unsafe_div.innerHTML = "Hello to you, " + username + "!!!!";

Check failure

Code scanning / CodeQL

Client-side cross-site scripting High

Cross-site scripting vulnerability due to
user-provided value
.
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

asdfasdfs

@tomer-mobb
Copy link
Owner Author

Logo
Checkmarx One – Scan Summary & Details64ac8bb2-95bb-477c-80c2-5d7a279c4c91

New Issues

Severity Issue Source File / Package Checkmarx Insight
HIGH Client_DOM_XSS /xss-example.js: 1 Attack Vector
MEDIUM Client_Privacy_Violation /xss-example.js: 2 Attack Vector

Fixed Issues

Severity Issue Source File / Package
HIGH Client_DOM_XSS /xss-example.js: 1
MEDIUM Client_Privacy_Violation /xss-example.js: 2

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.

1 participant