nerdexam
ExamsCAS-002Questions#566
CompTIA

CAS-002 · Question #566

CAS-002 Question #566: Real Exam Question with Answer & Explanation

Sign in or unlock CAS-002 to reveal the answer and full explanation for question #566. The question stem and answer options stay visible for context.

Question

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>

Options

  • AHeader manipulation
  • BAccount disclosure
  • CUnvalidated file inclusion
  • DCross-site scripting

Unlock CAS-002 to see the answer

You've previewed enough free CAS-002 questions. Unlock CAS-002 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full CAS-002 Practice