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.
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.
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
- Capture an authentication packet sent to the server.
- Skip the 0x14-byte header that starts with 'SORB'.
- Check the least-significant bit of the first data byte to see if the packet is compressed.
- If compressed, decompress the packet with quicklz.
- Decode the length and value encoding to recover the BrkConnectionOption structure.
- 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.