Skip to content
Crypto Write-up Intermediate

Shipping your Private Key - CVE-2023-43870, Paxton do a Lenovo

The Net2 installer included a private CA key and its password, and installed the corresponding CA certificate into the trusted root store. An attacker with the key could sign certificates for any domain and man-in-the-middle HTTPS traffic from affected machines.

craig72947 Follow

Published on cryptic.red

Paxton Access is a UK-based company specialising in access control solutions. Their products cater to a wide range of security needs in various sectors, including commercial, educational, and healthcare facilities.

craig72947 (@craigsblackie), on cryptic.red

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

The installer included the CA private key (encrypted with a password that could be extracted) and automatically added the CA certificate to the trusted root store.

Impact

An attacker could man-in-the-middle HTTPS traffic from any host with a vulnerable Net2 installation or that installed the CA, potentially intercepting sensitive data.

What the attacker needed

Net2 installed on target; Attacker has CA private key

The fix

The issue was fixed in a patch that no longer installs the CA by default and uses a self-signed certificate instead.

How it was found

  1. Install Net2 and locate the private key in the installation directory.
  2. Modify the certificate generation batch file to write the password to a file.
  3. Run the installer's repair function to trigger the batch file and obtain the password.
  4. Use the password to decrypt the CA private key.
  5. Import the CA certificate and key into a proxy tool to intercept traffic.

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.

A certificate authority (CA) is like a trusted ID card issuer for websites. If someone has the CA's private key, they can create fake ID cards for any website, and if your computer trusts that CA, it will accept the fake cards. Here, the software shipped the private key and also added the CA to the computer's trusted list, so an attacker could intercept secure web traffic.

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.