Protect your website from Cross Site Scripting



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.


I hope you have learned from it and will apply it.
Thanks.
Share on Google Plus
Unknown

About Unknown

Hi , This is Osama Mahmood and i will share all my knowledge and skills on #infosec with you and hope you will enjoy learning new and unique things. follow me on twitter @OsamaMahmood007
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment