This tutorial you will learn how to fix Cross site Scripting Vulnerability :-
Code Used :-
$id=preg_replace("/</","",$id);
$id=preg_replace("/>/","",$id);
$id=preg_replace("/=/","",$id);
what this does it it replaced all the starting and ending tags with Space and it allow us to bypass the xss payload.
Thanks.
0 comments:
Post a Comment