Skip to content
RCE Write-up Advanced

CVE-2020-7387..7390: Multiple Sage X3 Vulnerabilities

Four vulnerabilities in Sage X3 were found: an unauthenticated remote command execution as SYSTEM in the AdxAdmin service, an information disclosure of the installation path, a missing authentication in a development function, and a stored XSS in the user profile edit page. An attacker could combine the path disclosure and command execution to run arbitrary commands as SYSTEM, while the XSS could let a regular user execute privileged functions as an administrator.

rapid7.com

Published on rapid7.com

Four vulnerabilities involving Sage X3 were identified by Rapid7 researchers Jonathan Peterson, Cale Black, Aaron Herndon, Ryan Villarreal, and William Vu. These vulnerabilities were reported to Sage according to Rapid7's usual vulnerability disclosure process and were fixed in recent releases for Sage X3 Version 9…

Rapid7, on rapid7.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the AdxAdmin service accepted a modified first byte in its custom protocol to skip authentication and execute commands as SYSTEM, while other issues stemmed from missing authentication on a development function and insufficient input sanitisation in user profile fields.

Impact

An attacker could run arbitrary operating system commands as SYSTEM, leading to full control of the system; the XSS could allow a regular user to execute privileged functions as an administrator or capture administrator session cookies, but it requires authentication and user interaction, and the command injection in the development environment is restricted to authenticated users and should not…

What the attacker needed

Network access to AdxAdmin service (TCP/1818); For XSS: authenticated user and victim interaction; For CVE-2020-7389: authenticated user and development…

The fix

The issues were fixed in updated versions of Sage X3 (Syracuse [redacted], [redacted], and [redacted]), and users are advised to update; for CVE-2020-7389 no fix is planned as it is a development function.

How it was found

  1. Send a request to the AdxAdmin service with the first byte set to 0x09 and three trailing null bytes to obtain the installation directory.
  2. Craft a request to the AdxAdmin service starting with 0x06 instead of 0x6a to bypass authentication.
  3. Provide the full path to a temporary .cmd file to be written and executed.
  4. The service writes the batch file and executes it as NT AUTHORITY\SYSTEM.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

Sage X3 is business software that runs on a server. One of its services, used for remote administration, could be tricked into running commands without a valid password, and it ran them with the highest Windows privileges (SYSTEM). Separately, a web page in the product did not properly clean user input, so a malicious script could be stored and later run in an administrator's browser.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.