WAGO PFC100/200 Web-Based Management (WBM) Authentication Timing Information Disclosure Vulnerability
The authentication function in the WAGO PFC100/200 web management interface uses PHP's crypt() function in a way that leaks timing information, allowing an attacker to infer characters of the stored password hash and salt. This could let an attacker recover hashed credentials, which may then be cracked offline.
Originally disclosed on Cisco Talos
An exploitable timing discrepancy vulnerability exists in the authentication functionality of the Web-Based Management (WBM) web application on WAGO PFC100/200 controllers. The WBM application makes use of the PHP crypt() function which can be exploited to disclose hashed user credentials.
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
The code compares password hashes using a non-constant-time comparison (==) after calling crypt(), so the time taken depends on how many leading characters match.
Impact
An attacker could disclose hashed credentials, and if system credentials are used, could obtain hashes from /etc/shadow, potentially leading to full system compromise after cracking.
What the attacker needed
Network access to the web interface; no authentication required
The fix
The code should use hash_equals() instead of crypt() for comparing password hashes to avoid timing leaks.
How it was found
- Send unauthenticated HTTP POST requests to the login endpoint with crafted password values.
- Measure the response delay for each request to infer characters of the salt and hash.
- Use a long password value (e.g., 500 characters) to increase processing time and amplify the timing difference.
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 you log in, the server checks your password by hashing it and comparing it to a stored hash. If that comparison takes slightly different amounts of time depending on how much of the hash matches, an attacker can measure those tiny delays to guess the hash character by character. This is called a timing attack.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.