Vulnerable-Web-Application/XSS/XSS_level3.php
Ömer Faruk Şenyayla ef18a7ca7a
Update XSS_level3.php
2018-11-27 23:52:48 +03:00

21 lines
399 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>XSS 3</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 = preg_replace("/<(.*)[S,s](.*)[C,c](.*)[R,r](.*)[I,i](.*)[P,p](.*)[T,t]>/i", "", $_GET["username"]);
echo "$user";
}
?>
</body>
</html>