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

Unsanitized User Input in Dynamic HTML Insertion (XSS) #252

Open
qadirv opened this issue Dec 3, 2024 · 0 comments
Open

Unsanitized User Input in Dynamic HTML Insertion (XSS) #252

qadirv opened this issue Dec 3, 2024 · 0 comments

Comments

@qadirv
Copy link

qadirv commented Dec 3, 2024

This was found as a potential XSS issue.

Description
Unsanitized user input in dynamic HTML insertion can lead to Cross-Site Scripting (XSS) attacks. This vulnerability arises when user-provided data is directly inserted into the DOM without proper sanitization, potentially allowing attackers to execute malicious scripts.

Remediations
Use an HTML sanitization library to clean user input before inserting it into the HTML. This step helps prevent XSS attacks by removing or neutralizing any potentially harmful scripts.

Reference :
OWASP XSS explained
image

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

No branches or pull requests

1 participant