Product Vendor

Cantemo AB

Product Description

Cantemo AB is a software systems and technology vendor for major media outlets. The Cantemo Portal application is a high-performance media asset management tool. The latest version at the time of this research was version 3.8.4. Testing was performed on a pre-release version of 4.0.0. Through the cooperation of the vendor, it was determined to affect version 3.8.4 and older versions. Cantemo plans to  patch the issue in v4.0.0.

Affected Version(s)

Version 3.8.4

Vulnerabilities List

One vulnerability was identified within the Cantemo Portal application:

  • Cross-site scripting

This vulnerability is described in the following sections.


As stated in Cantemo’s official release, “A successful exploit could lead to users with access to the system obtaining more access than granted, including admin access. Depending on system configuration an attacker can also potentially execute arbitrary code on the server running Cantemo Portal.” Considering the organizations that rely on this software (such as major news networks), the results of a successful attack could have been catastrophic. 

Cross-Site Scripting

The Cantemo Portal application is affected by several instances of stored cross-site scripting (XSS) that allow attackers to execute arbitrary JavaScript. The vulnerability could be exploited by a low-privilege user and would affect administrative users. The walkthrough below uses two payloads: one to execute arbitrary code on the server and the other to create a high privilege administrative user. The exploit code is included in the appendixes after the walkthrough.

The exploits demonstrated are interchangeable. The code execution and administrative user creation payloads can be delivered using any of the three stored XSS locations listed in the following advisory. The payload variations were included to illustrate the potential impact.

Vulnerability Details

CVE ID: CVE-2019-7551

Access Vector: Remote

Security Risk: High 

Vulnerability: CWE-79

CVSS Base Score: 9.0


Stored Cross-Site Scripting: Collections Name

Cross-site scripting that led to remote code execution (RCE) was found while creating a new collection and/or renaming an existing collection. During creation of a new collection, the following POST request was sent, which contained the XSS payload:

Once the payload was stored in the collection name, it could be triggered by typing the first two characters of the affected collection name. This loaded it into the search functionality and executed the payload, as shown below:

Once the initial payload executed, rce.js was loaded from the attacker-controlled server and executed. The JavaScript payload uploaded a shell script to the administrative rules engine 3 then executed the file. The code executed on the Cantemo Portal application server returned an interactive command shell to the attacker server. The exploit code in rce.js can be found in Appendix A of this disclosure. The reverse shell connection is shown below:

This vulnerability can be exploited by any user with the privilege to modify or create collections and affects any user who can add files into collections, including administrative users. For the remote code execution payload to work, the victim user must have administrative or rules engine 3 permissions.

Stored Cross-site Scripting: Filename

The Cantemo Portal application filenames were vulnerable to stored XSS. 

Using a low-privilege user with access to the Ingest Upload functionality, a new image was uploaded to the /vs/upload/ endpoint that contained an XSS payload. The Cantemo Portal application had client-side filtering in place to block special characters within the file name. To bypass this the initial, a GET request was modified with the XSS payload, as shown below:

Additionally, this payload could be set by selecting a file from the search functionality and modifying the title. The payload shown above loaded exploit.js from an attacker-controlled server. Exploit.js contained a payload designed to create a new administrative user within the Cantemo Portal application. The full payload is included in Appendix B of this disclosure.

The stored XSS payload would execute when a user performed one of several functions listed below:

Action Endpoint
Viewing the file before or after the affected file, as the JavaScript loads into the Next and Previous /vs/item/VX-[#]/?index=[#]&search_id=[#]


The Add to Bin functionality /vs/item/VX-[#]/?index=[#]&search_id=[#]


The Preview functionality /search?search_id=[#]&page=[#]
The Add child & Add parent functionality, after two or more characters from the affected filename are entered. /vs/item/VX-[#]/?index=[#]&search_id=[#]#related



Once an admin performed any of the above functionality, the payload executed and created the new admin user, as shown below:

Authenticated with an XSS-created user with full administrative privileges

The payload used to create the new administrative user was designed to affect administrative users. However, this vulnerability will affect any authenticated user.

Stored Cross-Site Scripting: Metadata Group Display Name

The metadata group names were vulnerable to XSS. Once a metadata group has been created at /vs/metadatamanagement/, a malicious user can set the display name to contain an XSS payload, shown in the below request:

The payload would execute whenever an authenticated user navigated to the/vs/metadatamanagement/ endpoint, and again when any metadata group was selected from the same endpoint, as shown below:

The JavaScript executes within the application’s origin. In this demonstration, a simple alert box was used to show its successful execution. This vulnerability can be exploited by any user who has the privilege to modify Metadata Groups. This exploit affects any authenticated user including admins who browse to the /vs/metadatamanagement/endpoint.

Appendix A — XSS Exploit Code to Gain Remote Code Execution (RCE)

An attacker can use the following payload to a reverse shell:

Appendix B — XSS Exploit Code to Create Admin User

An attacker can use the following payload to create a new admin user:


Update to v4.0.0 after official release (which was March 8, 2019).

Disclosure Timeline:

  • 9/21/2018: Initial discovery
  • 2/01/2019: Contact with vendor


Chris Davis, Security Analyst at Bishop Fox