Skip to content
RCE Write-up Advanced

System Takeover Through New SAP ASE Vulnerabilities

Multiple vulnerabilities in SAP ASE allow unprivileged database users to gain database administrator access or execute arbitrary code as LocalSystem. The most critical flaw lets a database owner overwrite the Backup Server configuration file, leading to code execution.

trustwave.com

Published on trustwave.com

Change theme to light

The author, on trustwave.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 missing security checks and improper input validation in various SAP ASE components, such as backup operations, temporary table handling, and service management.

What the attacker needed

Valid database account with DUMP privilege; ability to restart Backup Server; Windows or Linux installation of SAP ASE

The fix

SAP released patches for ASE 15.7 and 16.0 at the end of April 2020, and these should be applied immediately.

How it was found

  1. Run a DUMP command to overwrite the Backup Server configuration file.
  2. Restart the Backup Server, which replaces the configuration with a default that allows login as 'sa' with an empty password.
  3. Connect to the Backup Server as 'sa' and change the sybmultbuf_binary setting to point to an attacker-chosen executable.
  4. Run subsequent DUMP commands to trigger execution of the attacker's executable.

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.

SAP ASE is a database program. The report describes several security mistakes that let someone with a low-level database account take over the whole database or even the computer it runs on. For example, a user who can run backups can overwrite a configuration file, and after a restart the backup service accepts connections with no password, letting the attacker run their own programs.

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.