Skip to content

Latest commit

 

History

History
12 lines (6 loc) · 347 Bytes

File metadata and controls

12 lines (6 loc) · 347 Bytes

SecurityExplained S-26: Vulnerable Code Snippet - 14

Vulnerable Code:

Vulnerable Code

Solution:

The code is vulnerable to code execution due to use of array_map() function. An attacker can perform attack like: array.php?map=phpinfo, that execute phpinfo() in it.

Code Credits: Octagon Networks