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

Include XSS prevention in REST API examples #413

Open
DavidWhitlock opened this issue Jun 4, 2022 · 1 comment
Open

Include XSS prevention in REST API examples #413

DavidWhitlock opened this issue Jun 4, 2022 · 1 comment

Comments

@DavidWhitlock
Copy link
Collaborator

Even though classes like AirlineServlet do not output HTML, the code really should do something to protect against XSS attacks. It would be a good example.

Here are some ideas from OWASP:

https://cheatsheetseries.owasp.org/cheatsheets/Injection_Prevention_in_Java_Cheat_Sheet.html#htmljavascriptcss

@DavidWhitlock
Copy link
Collaborator Author

Considering using https://owasp.org/www-project-java-html-sanitizer/

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