StrongSwan Vulnerability (CVE-2018-6459)
The parser for PKCS#1 RSASSA-PSS signature parameters did not correctly handle a missing hash algorithm parameter in the MGF1 mask generation function, causing an undefined data read. An attacker could trigger a crash (denial of service) by supplying a crafted signature, for example in a certificate or during IKEv2 signature authentication.
strongswan.org
Published on strongswan.org
Our fuzzer on Google's OSS-Fuzz infrastructure revealed a bug in the parser for PKCS#1 RSASSA-PSS signature parameters introduced with 5.6.1 that may lead to a denial-of-service attack.
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 parser did not validate that the hash algorithm parameter of the MGF1 mask generation function was present before using it, leading to an undefined data read.
Impact
A remote attacker could cause a denial-of-service (crash) by supplying a crafted RSASSA-PSS signature, but remote code execution is not possible.
What the attacker needed
StrongSwan 5.6.1; attacker can supply a crafted signature
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 parser is code that reads structured data. Here, strongSwan's parser for a type of digital signature (RSASSA-PSS) expected a certain field to be present but did not check for its absence. When that field was missing, the program read from an undefined memory location, which could crash it. An attacker could send a specially crafted signature to cause that crash, disrupting the service.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.