nerdexam
National_Instruments

200-500 · Question #187

Identify the security vulnerability in the following example: 1 <?php 2 mail('[email protected]', 3 'Feddback', 4 'Here is my feedback.', 5 "From: {$_COOKIE['email']}"); 6 ?>

The correct answer is C. Email Injection. See the full explanation below for the reasoning.

Question

Identify the security vulnerability in the following example:

1 <?php 2 mail('[email protected]', 3 'Feddback', 4 'Here is my feedback.', 5 "From: {$_COOKIE['email']}"); 6 ?>

Options

  • ARemote Code Injection
  • BCross-Site Request Forgeries
  • CEmail Injection
  • DNone of the above

How the community answered

(36 responses)
  • A
    6% (2)
  • B
    17% (6)
  • C
    75% (27)
  • D
    3% (1)

Community Discussion

No community discussion yet for this question.

Full 200-500 Practice