Skip to content
Info disclosure Advisory Advanced CVE-2019-5135

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.

Patrick DeSantis Follow

Originally disclosed on Cisco Talos

Medium 5.3 View original

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.

Patrick DeSantis and Lilith [-_-];, 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

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

  1. Send unauthenticated HTTP POST requests to the login endpoint with crafted password values.
  2. Measure the response delay for each request to infer characters of the salt and hash.
  3. 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.

More by Patrick DeSantis

View all

1 more disclosed report, 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.