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
WordPress Plugin VK Gallery TimThumb Arbitrary File Upload (1.1.0)
SugarCRM Improper Input Validation Vulnerability (CVE-2011-0745)
Joomla Improper Input Validation Vulnerability (CVE-2013-3242)
Python Improper Input Validation Vulnerability (CVE-2013-4238)
phpMyAdmin Improper Input Validation Vulnerability (CVE-2016-2562)