Skip to content
Crypto Write-up Intermediate

Pentest-Story: Empirum password decryption

The client management software Empirum stores passwords in configuration files using reversible encryption, and a hidden command-line parameter in EmpCrypt.exe allows decryption. An attacker with access to these files could recover plaintext passwords.

evait_security Follow

Published on evait.medium.com

During our internal pentests we often came across the client management software Empirum from Matrix42. On closer inspection of various configuration files, some .ini files, which were under the Configurator share, were particularly noticeable.

Pentest Team @greenhats.com, on evait.medium.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 passwords are encrypted with a reversible algorithm and the decryption routine is included in the client tool, with a hidden command-line switch to invoke it.

Impact

An attacker with access to the configuration files could decrypt stored passwords, potentially leading to privilege escalation.

What the attacker needed

Access to the Configurator share; ability to run EmpCrypt.exe

How it was found

  1. Locate the .ini files under the Configurator share.
  2. Identify encrypted strings in the .ini files.
  3. Analyse EmpCrypt.exe with Ghidra to find a hidden command-line parameter.
  4. Use the /D parameter to decrypt the encrypted strings.

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.

Empirum is software that helps manage many computers. It saved passwords in a scrambled form, but the scrambling can be undone. The tool that does the scrambling has a secret option that unscrambles the passwords, so anyone who finds the files can read the passwords.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.