code-security
Warn
Audited by Socket on Sep 13, 2026
1 alert found:
SecuritySecurityrules/path-traversal.md
MEDIUMSecurityMEDIUM
rules/path-traversal.md
The provided fragment contains a clear, directly demonstrated path traversal risk: attacker-controlled $_GET['file'] is concatenated into a filesystem path passed to unlink(), enabling arbitrary file deletion within/possibly outside the intended /storage/ directory. No explicit malware/backdoor/persistence behavior is evident from the snippet, but the destructive impact makes this a high security concern. RFI concerns are referenced but not verifiable from the truncated inclusion context shown.
Confidence: 55%Severity: 72%
Audit Metadata