Is it possible to make XSS attacks through html comments with JSP code inside?

后端 未结 2 1093
遇见更好的自我
遇见更好的自我 2021-01-21 17:06

Is it true that following code adds a XSS vulnerability to some JSP page?

 HTML comment style. The JSP parser won't parse them, but it removes them from the output. Thus you won't see them in the generated HTML output.

The XSS risk is here because you're not escaping user-controlled input here. Request parameters are fully controllable by endsers. The enduser may for instance pass -->

热议问题