Ways to prevent SQL Injection Attack & XSS in Java Web Application

后端 未结 6 1952
囚心锁ツ
囚心锁ツ 2021-02-07 22:27

I\'m writing a java class which would be invoked by a servlet filter and which checks for injection attack attempts and XSS for a java web application based on Struts. The Injec

6条回答
  •  时光取名叫无心
    2021-02-07 23:17

    Here's a pretty extensive article on that very subject.

    I don't think you'll have a holy grail here though. I would also suggest trying to encode/decode the received text in some standard ways (uuencode, base64)

提交回复
热议问题