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 #46

Closed
wants to merge 1 commit into from
Closed

Update xss-example.js #46

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 warning

Code scanning / CodeQL

Client-side cross-site scripting

Cross-site scripting vulnerability due to [user-provided value](1).
@tomer-mobb tomer-mobb closed this Oct 26, 2023
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