Vulnerable-Web-Application/XSS/XSS_level4.php
Ömer Faruk Şenyayla 4b8ee90637
Create XSS_level4.php
2018-11-29 22:53:51 +03:00

23 lines
403 B
PHP

<!DOCTYPE html>
<html>
<head>
<title>XSS 4</title>
</head>
<body>
<form method="GET" action="" name="form">
<p>Your name:<input type="text" name="username"></p>
<input type="submit" name="Gönder">
</form>
<?php
if (isset($_GET["username"])) {
$values = array("script", "prompt", "alert", "h1");
$user = str_replace($values, " ",$_GET["username"]);
echo "$user";
}
?>
</body>
</html>