Description
An issue was discovered in Total.js CMS 12.0.0. An authenticated user with the Pages privilege can conduct a path traversal attack (../) to include .html files that are outside the permitted directory. Also, if a page contains a template directive, then the directive will be server side processed. Thus, if a user can control the content of a .html file, then they can inject a payload with a malicious template directive to gain Remote Command Execution. The exploit will work only with the .html extension.
Remediation
References
http://packetstormsecurity.com/files/154340/Totaljs-CMS-12.0-Path-Traversal.html
http://seclists.org/fulldisclosure/2019/Sep/11
https://github.com/beerpwn/CVE/blob/master/Totaljs_disclosure_report/report_final.pdf
https://seclists.org/fulldisclosure/2019/Sep/2
Related Vulnerabilities
CVE-2020-13942 Vulnerability in maven package org.apache.unomi:unomi-kar
CVE-2020-15232 Vulnerability in maven package org.mapfish.print:print-standalone
CVE-2019-16728 Vulnerability in maven package org.webjars.bower:dompurify
CVE-2023-50100 Vulnerability in maven package com.jfinal:jfinal
CVE-2022-25860 Vulnerability in maven package org.webjars.npm:simple-git