Skip to content
RCE Disclosed report Intermediate

Arbitrary DLL injection in mmsminisrv (Acronis Managed Machine Service Mini)

The Acronis service binary mms_mini.exe loads an OpenSSL configuration file from a hardcoded build path that does not exist by default, and any local user can create that path and file. Because the OpenSSL config can load an engine DLL, an attacker can plant a library that the service loads with Local System privileges, leading to privilege escalation.

adr Follow

Originally disclosed on HackerOne

High 8.1 View original
  • Disclosed after 3 months

During initialization, mms_mini.exe (service binary of mmsminisrv) loads library C:\Program Files (x86)\Common Files\Acronis\Home\libssl10.dll. The library then tries to load non-existing file: C:\bs_hudson\workspace\mod-openssl-fips-win\205\product\out\standard\vs_2013_release\OpenSSL\ssl\openssl.cnf. The path seems to be hardcoded leftover from compilation.

Because by default any user is able to create directories on C:\ drive, it is possible to create missing directories and missing file (openssl.cnf). The OpenSSL config file implements support for loading additional DLL modules. Attacker may point to arbitrary DLL which will be loaded by service running with Local System privileges. Once service is restarted (e.g. due to system reboot), the planted library is loaded by the service and arbitrary code is executed. The code would typically add new Administrative user to the Windows system or establish reverse shell connection.

Successful injection of arbitrary library is shown on procmon log:

injection.png
injection.png From the original on HackerOne

Steps to reproduce

  1. Create directories: mkdir C:\bs_hudson\workspace\mod-openssl-fips-win\205\product\out\standard\vs_2013_release\OpenSSL\ssl

  2. Inside, create openssl.cnf file with following content (replace DLL path with any path you wish):

openssl_conf = openssl_init [openssl_init] engines = engine_section [engine_section] woot = woot_section [woot_section] engine_id = woot dynamic_path = c:\temp\cqbeacondll.dll init = 0 ``` 3. Plant arbitrary DLL under dynamic_path location. 4. Wait for service to start (or force it by rebooting system)

Impact

After successful attack, low privileged local user can elevate privileges up to Local System (the highest Windows privilege). The vulnerability can be also exploited by malware with local system access.

The original report as published on HackerOne, by adr. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

How it worked

Root cause

Likely the service loads an OpenSSL configuration file from a hardcoded, non-existent build path under C:\ that is writable by unprivileged users, and that config can direct OpenSSL to load an arbitrary DLL.

Impact

A low-privileged local user could elevate to Local System, the highest Windows privilege, and malware with local access could also use it.

What the attacker needed

Local access to the Windows host; ability to create folders on C: drive; service restart or reboot

How it was found

  1. Create the missing directory tree under the C: drive.
  2. Place an OpenSSL configuration file inside it that points to an attacker-controlled DLL.
  3. Plant the chosen DLL at the location named in the configuration.
  4. Wait for the service to start, or reboot the system to force it.

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 report has not been written yet. The Original tab links to the source.

A Windows service runs with very high permissions. When it starts, it looks for a settings file in a folder that does not exist, and ordinary users are allowed to create folders on the C: drive. The attacker creates the missing folder and a settings file that tells the program to load their own library, so when the service restarts it runs the attacker's code as the powerful system account.

What is RCE?

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

More by adr

View all

2 more disclosed reports, best first.

More from Acronis

View all

The newest disclosed reports for this program.

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.