Description
This script is 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
Code Evaluation (Apache Struts) S2-016
WordPress Plugin Coming Soon Possible Remote Code Execution (1.1.3)
Oracle Weblogic Async Component Deserialization RCE CVE-2019-2725
Squid Improper Input Validation Vulnerability (CVE-2013-4123)
ManageEngine Desktop Central Deserialization RCE (CVE-2020-10189)