Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 482 Bytes

vulnerable-code-8.md

File metadata and controls

13 lines (7 loc) · 482 Bytes

SecurityExplained S-20: Vulnerable Code Snippet - 8

Vulnerable Code:

Vulnerable Code

Solution:

The code is vulnerable to path traversal attack. There is a sanitization against this attack but the protection is not sufficient and can be bypassed with the payloads such as "../..shell.jsp".

Code Credits: SonarSource

Follow Twitter Thread