OpenSSL CMP Use of Externally-Controlled Format String Information Disclosure Vulnerability
OpenSSL mishandles Distinguished Names in CMP messages by using a user-supplied string as a format specifier without validation. A remote attacker could exploit this to disclose sensitive information in the context of the client or server.
TrendAI Zero Day Initiative Follow
Originally disclosed on Zero Day Initiative
This vulnerability allows remote attackers to disclose sensitive information on affected installations of OpenSSL. Authentication is not required to exploit this vulnerability.
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, a Distinguished Name from a CMP message is passed directly as a format string to a printing function without validation.
Impact
A remote, unauthenticated attacker could disclose sensitive information in the context of the client or server.
What the attacker needed
Remote access to an affected OpenSSL installation
The fix
OpenSSL issued an update to correct the vulnerability.
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.
A format string is a template that tells a program how to print text, and if an attacker can control part of it, they can trick the program into revealing memory contents. Here, OpenSSL did not check a name field in a CMP message before using it as a format string, so an attacker could read sensitive data.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.