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)- A7% (3)
- B73% (30)
- C15% (6)
- D5% (2)
Community Discussion
No community discussion yet for this question.