ballcat-codegen template engine remote code execution injection
High severity
GitHub Reviewed
Published
Apr 26, 2022
in
ballcat-projects/ballcat-codegen
•
Updated Jan 30, 2023
Package
Affected versions
<= 1.0.0.beta.1
Patched versions
1.0.0.beta.2
Description
Published by the National Vulnerability Database
Apr 26, 2022
Published to the GitHub Advisory Database
Apr 27, 2022
Reviewed
Apr 27, 2022
Last updated
Jan 30, 2023
Impact
Ballcat Codegen provides the function of online editing code to generate templates.
In version < 1.0.0.beta.2, since Velocity and freemarker templates are introduced but input verification is not done, attackers can implement remote code execution through malicious code injection of the template engine.
Patches
The fault is rectified and needs to be upgraded to the latest version.
References