Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 460 Bytes

vulnerable-code-14.md

File metadata and controls

13 lines (7 loc) · 460 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

Follow Twitter Thread