CVE-2024-32962CWE-347

XML signature verification bypass due improper verification of signature / signature spoofing

Critical · published May 2, 2024

CVSS v3.1
10.0
EPSS
1%
Percentile
57.2
In the wild
Unconfirmed
What it is

🚨 An attacker can hijack the digital signature process with a simple XML tweak! This critical flaw in `xml-crypto` allows for unauthorized certificate usage, and it’s all thanks to the default configuration that trusts the wrong signer. 🔥 Think of `xml-crypto` like a fancy restaurant that only checks if the signature on a reservation looks legit, but doesn’t actually verify if the person showing up is who they say they are. An imposter could easily replace a name on the guest list without raising any eyebrows! This vulnerability is absolutely devastating — an attacker could manipulate XML documents and replace valid signatures, allowing them to impersonate trusted parties and gain access to sensitive data. With such a weak point in security, malicious actors could effectively run rampant, undermining the very trust that digital signatures were meant to ensure!

Put simply

Think of `xml-crypto` like a fancy restaurant that only checks if the signature on a reservation looks legit, but doesn’t actually verify if the person showing up is who they say they are. An imposter could easily replace a name on the guest list without raising any eyebrows! The `xml-crypto` library fails to validate the authorization of the signer and relies solely on the signature’s validity, making it susceptible to signature spoofing. This means attackers can replace valid signatures with their own by using maliciously crafted XML documents containing their certificates.

What to do

This vulnerability is absolutely devastating — an attacker could manipulate XML documents and replace valid signatures, allowing them to impersonate trusted parties and gain access to sensitive data. With such a weak point in security, malicious actors could effectively run rampant, undermining the very trust that digital signatures were meant to ensure! To protect your applications, immediately upgrade to version 6.0.0 or later. If you can’t upgrade right away, implement additional validation by checking the certificate extracted via `getCertFromKeyInfo` against trusted certificates, or reconfigure `xml-crypto` to use explicit `publicCert` and `privateKey` options for signature verification. You've got this! Follow these steps to secure your application and keep those digital signatures safe. 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.00833 · 57.2th percentile
Weakness
CWE-347 · Improper Verification of Cryptographic Signature
Published
2024-05-02T06:48Z
EPSS history
Timeline
  • 02 MAY 06:48Z
    XML signature verification bypass due improper verification of signature / signature spoofing
    cvelistv5