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

后端 未结 6 1935
囚心锁ツ
囚心锁ツ 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:12

    Validating and binding all data is a must. Perform both client-side and server-side validatation, because 10% of people turn off JavaScript in their browsers.

    Jeff Atwood has a nice blog about the topic that gives you a flavor for its complexity.

提交回复
热议问题