Vulnerable-Web-Application/XSS/XSS_level2.php
Ömer Faruk Şenyayla d26aedb33b
Create XSS_level2.php
2018-11-27 23:36:13 +03:00

21 lines
360 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html>
<head>
<title>REFLECTED XSS 2</title>
</head>
<body>
<form method="GET" action="" name="form">
<p>Adınız:<input type="text" name="username"></p>
<input type="submit" name="Gönder">
</form>
<?php
if (isset($_GET["username"])) {
$user = str_replace("<script>", "",$_GET["username"]);
echo "$user";
}
?>
</body>
</html>