Description
This script is vulnerable to arbitrary file creation.
This issue allows an attacker to influence calls to functions which create files/directories and create arbitrary files. Due to a lack of input validation, an attacker can supply directory traversal sequences followed by an arbitrary file name to create specific files.
Remediation
Your script should filter metacharacters from user input.
References
Related Vulnerabilities
Joomla Improper Input Validation Vulnerability (CVE-2020-35616)
Uploadify arbitrary file upload
Moodle Improper Input Validation Vulnerability (CVE-2011-4294)
Apache Traffic Server Improper Input Validation Vulnerability (CVE-2017-7671)
Apache Traffic Server Improper Input Validation Vulnerability (CVE-2021-32567)