Skip to content
Info disclosure Write-up Intermediate

(CVE-2024–8474); Severe Vulnerability: OpenVPN Connect for Andr

OpenVPN Connect for Android logged private keys in plaintext in debug logs. An attacker with access to those logs could extract the keys and potentially decrypt VPN traffic.

Wasim Shaikh Follow

Published on medium.com

OpenVPN Connect, one of the most widely used VPN applications on Android, has been found to contain a severe vulnerability tracked as CVE-2024–8474. This flaw involves the inadvertent logging of private keys in plaintext within the application’s debug logs, potentially exposing sensitive information tounauthorized…

Wasim Shaikh, on medium.com

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 app wrote private key material into debug logs in plaintext instead of redacting or omitting it.

Impact

An attacker with access to the debug logs could extract private keys and potentially decrypt VPN traffic, but physical or remote access to the logs is required.

What the attacker needed

Android device with affected OpenVPN Connect; USB debugging enabled or log access; Physical or remote access to logs

The fix

The issue was fixed in OpenVPN Connect version 3.5.0 by preventing private keys from being logged in plaintext.

How it was found

  1. Enable Android debugging and connect the device so ADB can read logs.
  2. Dump the device logs to a file.
  3. Search the log file for private key markers.
  4. Extract the private key from the log output.
  5. Use the extracted key with a decryption tool on captured VPN 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 VPN app keeps a detailed record (debug log) of what it does, and in this case it wrote down a secret key that is supposed to stay private. If someone can read that log, they get the key and might be able to unlock protected network traffic. The fix stops the app from writing the key into the log.

What is Info disclosure?

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

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.