php - how to prevent cross site scripting - Image is linked -


xss

enter image description here

can me thid cross site scripting new in this

cross-site scripting code injection attack.

the problem user (or else) enters script instead of input value. example, user puts "<script>" tag in comment.

if display list of comments, script executed visiting page.

what need sanitize outputs, is, remove or escape html code you're writing on page. way, <script> tag replaced &lt;script&gt;, , become harmless while looking same.


Comments

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -