Description
This script is vulnerable to arbitrary file deletion.
This issue allows an attacker to influence calls to the 'unlink()' function and delete arbitrary files. Due to a lack of input validation, an attacker can supply directory traversal sequences followed by an arbitrary file name to delete specific files.
Remediation
Your script should filter metacharacters from user input.
References
Related Vulnerabilities
PHP Improper Input Validation Vulnerability (CVE-2014-9653)
Resin Application Server Improper Input Validation Vulnerability (CVE-2012-2965)
WordPress Plugin Uploadify Remote File Upload (1.0)
Squid Improper Input Validation Vulnerability (CVE-2021-33620)
WordPress Improper Input Validation Vulnerability (CVE-2020-35539)