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)- A13% (4)
- B77% (24)
- C6% (2)
- D3% (1)
Community Discussion
No community discussion yet for this question.