Description
This script is vulnerable to file inclusion attacks.
The script was found to reference and potentially retrieve files from user-specified locations. User input is not sufficiently validated or sanitized prior to being passed to the vulnerable script's include function.
Remediation
Edit the source code to ensure that input is properly validated. Where is possible, it is recommended to make a list of accepted filenames and restrict the input to that list.
For PHP, the option allow_url_fopen would normally allow a programmer to open, include or otherwise use a remote file using a URL rather than a local file path. It is recommended to disable this option from php.ini.
References
Related Vulnerabilities
PHP Improper Input Validation Vulnerability (CVE-2016-4072)
WebLogic Improper Input Validation Vulnerability (CVE-2020-10693)
SharePoint Improper Input Validation Vulnerability (CVE-2019-0604)
Plone CMS Improper Input Validation Vulnerability (CVE-2013-4195)
MediaWiki Improper Input Validation Vulnerability (CVE-2011-1580)