<form method="get" action="#">
<input type="text" name="src" <?php if (isset($_GET['src'])) {echo "value=\"".htmlentities($_GET['src'])."\"";} ?>>
<button>Cari</button>
</form>
</br>
<form method="get" action="#">
<input type="text" name="src" <?php if (isset($_GET['src'])) {echo "value=\"".$_GET['src']."\"";} ?>>
<button>Cari</button>
</form>
</br>
<legend>bedakan ya,, </legend></br>
<?php
if (isset($_GET['src'])) {
echo htmlentities($_GET['src']);
echo "<hr>";
echo $_GET['src'];
}
?>
Buat file php dengan source code di atas...
terus liat kita test dengan tulian
- "><script type="text/javascript">alert('XSS Bug');</script>
- <h1>XSS Bug</h1>
No comments:
Post a Comment
Yuk Komentar, Jaga lisan, Jaga Hati, Jaga Iman :D