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
Squid Improper Input Validation Vulnerability (CVE-2016-2570)
Ruby Improper Input Validation Vulnerability (CVE-2015-1855)
Oracle Access Manager 'opensso' Deserialization RCE (CVE-2021-35587)
WordPress Plugin Rekt Slideshow TimThumb Arbitrary File Upload (1.0.5)
Ruby on Rails Improper Input Validation Vulnerability (CVE-2008-7248)