Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XSS Servlet Filter to secure Java Web Application

Jestina.NancyApr 5 2016 — edited Apr 5 2016

I am trying to write a Servlet Filter to filter or block API calls with parameters and payload containing vulnerable data like XSS. I came accross below implementation which uses ESAPI library.

https://www.javacodegeeks.com/2012/07/anti-cross-site-scripting-xss-filter.html

Is there any other efficient way to achieve this validation ?

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 3 2016
Added on Apr 5 2016
0 comments
2,035 views