A template injection vulnerability exists in ChanCMS v3.3.4 and earlier.
An unauthenticated attacker can write arbitrary files to the server using the /vip/v1/file/save API endpoint. By overwriting a template file under app/modules/web/view/default/*.html, the attacker can inject executable template code, which will be executed when the template is rendered, leading to Remote Code Execution (RCE).
This vulnerability can be exploited over the network and requires no authentication or user interaction.
/vip/v1/file/saveapp/modules/web/view/default/*.htmlThe attacker can:
/vip/v1/file/save to overwrite template files.