Skip to content
Info disclosure Advisory Intermediate CVE-2022-45124

WellinTech KingHistorian User authentication information disclosure vulnerability

The KingHistorian protocol sends authentication packets that contain the username and a ciphered password, along with the encryption keys needed to recover the plaintext password. An attacker who captures such a packet can recover the credentials.

Carl Hurd Follow

Originally disclosed on Cisco Talos

High 7.5 View original

An information disclosure vulnerability exists in the User authentication functionality of WellinTech KingHistorian 35.01.00.05. A specially crafted network packet can lead to a disclosure of sensitive information.

Carl Hurd, on Cisco Talos

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

How it worked

Root cause

Likely the protocol includes the encryption key in the same packet as the ciphered password, so the ciphering provides no protection against an attacker who captures the packet.

Impact

An attacker who can capture network traffic could recover usernames and plaintext passwords, leading to unauthorised access to the system.

What the attacker needed

Ability to capture network traffic

How it was found

  1. Capture an authentication packet sent to the server.
  2. Skip the 0x14-byte header that starts with 'SORB'.
  3. Check the least-significant bit of the first data byte to see if the packet is compressed.
  4. If compressed, decompress the packet with quicklz.
  5. Decode the length and value encoding to recover the BrkConnectionOption structure.
  6. Combine the enc_key parts to decipher the ciphered_password and recover the plaintext password.

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.

When a program logs in, it sends a packet of data over the network. This report shows that the packet contains both the username and the password, even though the password is scrambled. The scrambling key is also in the same packet, so anyone who can listen to the network traffic can read the password.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

More by Carl Hurd

View all

49 more disclosed reports, best first.

More from Cisco Talos

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.