Cross site Scripting vulnerabilities from url get parameter
it show confirm box, how to avoid this issue
example: www.example.com?business_sector="-confirm(`xss`)-"
Note: xss start and end with "`" (backtick)
how to fix this issue using php
Cross site Scripting vulnerabilities from url get parameter
it show confirm box, how to avoid this issue
example: www.example.com?business_sector="-confirm(`xss`)-"
Note: xss start and end with "`" (backtick)
how to fix this issue using php
the issue occurred because of backtick symbol
example: www.example.com?business_sector="-confirm(`xss`)-"
so i was replaced the backtick with HTML entity encoder/decoder
$data = preg_replace("/[`]/","`",$data); // Replace backtick
issue fixed