What of the following vulnerabilities is present in the below source code file named ‘AuthenticatedArea.php’?

What of the following vulnerabilities is present in the below source code file named
‘AuthenticatedArea.php’?
<html><head><title>AuthenticatedArea</title></head>
<?
include (“/inc/common.php”);
$username = $_REQUEST[‘username’];
if ($username != “”) {
echo “Your username is: “ . $_REQUEST[‘username’];
}else {
header)(“location: /login.php”

}
?>
</html>

What of the following vulnerabilities is present in the below source code file named
‘AuthenticatedArea.php’?
<html><head><title>AuthenticatedArea</title></head>
<?
include (“/inc/common.php”);
$username = $_REQUEST[‘username’];
if ($username != “”) {
echo “Your username is: “ . $_REQUEST[‘username’];
}else {
header)(“location: /login.php”

}
?>
</html>

A.
Header manipulation

B.
Account disclosure

C.
Unvalidated file inclusion

D.
Cross-site scripting



Leave a Reply 0

Your email address will not be published. Required fields are marked *