nerdexam
National_Instruments

200-500 · Question #211

Identify the security vulnerability in the following example: 1 <?php 2 echo "Welcome, {$_POST['name']}."; 3 ?>

The correct answer is B. Cross-Site Scripting. See the full explanation below for the reasoning.

Question

Identify the security vulnerability in the following example:

1 <?php 2 echo "Welcome, {$_POST['name']}."; 3 ?>

Options

  • ASQL Injection
  • BCross-Site Scripting
  • CRemote Code Injection
  • DNone of the above

How the community answered

(31 responses)
  • A
    13% (4)
  • B
    77% (24)
  • C
    6% (2)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice