Description
This script is possibly vulnerable to Server-side template injection attacks.
Server-side template injection occurs when user-controlled input is embedded into a server-side template, allowing users to inject template directives. This allows an attacker to inject malicious template directives and possibly execute arbitrary code on the affected server.
Remediation
Templates should not be created from user-controlled input. User input should be passed to the template using template parameters.
References
Related Vulnerabilities
TYPO3 Improper Input Validation Vulnerability (CVE-2019-11832)
WordPress Plugin SI CAPTCHA Anti-Spam Serving Spam (3.0.2)
Nginx stack-based buffer overflow
Apache HTTP Server Insecure Path Normalization (CVE-2021-41773, CVE-2021-42013)
Oracle Weblogic Async Component Deserialization RCE CVE-2019-2725