Vulny-Code-Static-Analysis/vulns/xss.php

12 lines
277 B
PHP
Executable File

<html>
<?php
if (isset($_POST['mail'])){
$mail = $_POST['mail'];
print("<p>The mail ".$mail." has been registered in our database.</p>");
}
else{
echo "<p>The mail ".$_GET['mail']." has been registered in our database.</p>";
}
?>
</html>