Exploit database

Vulnerability

CVE-2019-15954

Vulnerability details

Score
9.9
Severity
critical

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

Description

An issue was discovered in Total.js CMS 12.0.0. An authenticated user with the widgets privilege can gain achieve Remote Command Execution (RCE) on the remote server by creating a malicious widget with a special tag containing JavaScript code that will be evaluated server side. In the process of evaluating the tag by the back-end, it is possible to escape the sandbox object by using the following payload: <script total>global.process.mainModule.require(child_process).exec(RCE);</script>

CVE Program

Exploit source choices

2 sources
Total.js CMS 12 Widget JavaScript Code Injection
MSF-multi--http--totaljs_cms_widget_execMetasploitLinux,OSX / remote

This module exploits a vulnerability in Total.js CMS. The issue is that a user with admin permission can embed a malicious JavaScript payload in a widget, which is evaluated server side, and gain remote code execution.

2019-08-30totaljs_cms_widget_exec.rb