| शीर्षक | https://gitee.com/sanluan/PublicCMS PublicCMS 5.0 Server-Side Template Injection |
|---|
| विवरण | The `templateResult` directive of PublicCMS compiles and executes the request parameter `templateContent` directly as FreeMarker template source code, with no content validation or expression-whitelist restriction.
This directive is exposed through the `/api/directive/tools/templateResult` endpoint and only requires a valid `appToken` header. Any caller holding this credential can submit arbitrary FreeMarker template syntax, which the server evaluates and echoes back.
Testing confirmed that the server executes the submitted FreeMarker expressions (`${1+1}` returns `2`) and can read internal information such as the FreeMarker engine version and locale. Because this version of FreeMarker enables `ALLOWS_NOTHING_RESOLVER`, the `?new` built-in is disabled, so dangerous classes such as `freemarker.template.utility.Execute` could not be instantiated; therefore remote code execution was not achieved in this report. |
|---|
| स्रोत | ⚠️ https://github.com/sikii7/CVE-md/blob/main/PublicCMS-V5/templateResult-Template-Injection.md |
|---|
| उपयोगकर्ता | sikii (UID 47840) |
|---|
| सबमिशन | 06/11/2026 10:59 AM (1 महीना पहले) |
|---|
| संयम | 02/12/2026 07:20 PM (26 days later) |
|---|
| स्थिति | प्रतिलिपि |
|---|
| VulDB प्रविष्टि | 364328 [Sanluan PublicCMS 5.202506.d templateResult API TemplateResultDirective.java execute templateContent अधिकार वृद्धि] |
|---|
| अंक | 0 |
|---|