PT-2022-16954 · Unknown+1 · Ballcat Codegen+2
Luckyt0Mat0
·
Published
2022-04-26
·
Updated
2022-05-06
·
CVE-2022-24881
CVSS v3.1
8.8
High
| Vector | AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Ballcat Codegen versions prior to 1.0.0.beta.2
Description
Ballcat Codegen provides the function of online editing code to generate templates. In versions prior to 1.0.0.beta.2, attackers can implement remote code execution through malicious code injection of the template engine. This happens because Velocity and freemarker templates are introduced but input verification is not done.
Recommendations
For versions prior to 1.0.0.beta.2, upgrade to version 1.0.0.beta.2 or later to rectify the fault. As a temporary workaround, consider disabling the template engine or restricting the use of Velocity and freemarker templates until a patch is applied. Avoid using the template engine for online editing code to generate templates until the issue is resolved.
Exploit
Fix
Code Injection
OS Command Injection
RCE
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Ballcat Codegen
Velocity
Freemarker