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

Cross-site scripting #509

Merged
merged 1 commit into from
Oct 4, 2024
Merged

Cross-site scripting #509

merged 1 commit into from
Oct 4, 2024

Conversation

KrzysztofPajak
Copy link
Member

To fix the cross-site scripting vulnerability, we need to sanitize the user input before it is used in the HTML. The best way to do this in an ASP.NET Core application is to use the System.Net.WebUtility.HtmlEncode method, which safely encodes the input to prevent XSS attacks.

@KrzysztofPajak KrzysztofPajak merged commit 76d56a4 into main Oct 4, 2024
4 checks passed
@KrzysztofPajak KrzysztofPajak deleted the feature/cross-site-scripting branch November 27, 2024 18:58
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