nerdexam
Zend

200-530 · Question #225

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

(41 responses)
  • A
    7% (3)
  • B
    73% (30)
  • C
    15% (6)
  • D
    5% (2)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice