CVE-2021-32685CWE-347

Improper Verification of Cryptographic Signature in tenvoy

Critical · published June 16, 2021

CVSS v3.1
9.8
EPSS
1%
Percentile
50.9
In the wild
Unconfirmed
What it is

🚨 A signature bug in tEnvoy makes it easy to pass off false credentials as valid – like letting anyone into a VIP club just because they wear a matching tie! 🔥 Imagine a restaurant where the bouncer lets anyone in who claims to have a reservation that matches the name on the guest list, without checking if they actually made one. That’s what’s happening here with the `verifyWithMessage` method – it’s just accepting claims without verification! An attacker could craft a bogus signature that appears to validate against a message, effectively bypassing security measures. This could lead to unauthorized access and actions being taken under the guise of legitimacy, putting sensitive data and operations at serious risk.

Put simply

Imagine a restaurant where the bouncer lets anyone in who claims to have a reservation that matches the name on the guest list, without checking if they actually made one. That’s what’s happening here with the `verifyWithMessage` method – it’s just accepting claims without verification! In versions prior to 7.0.3, the `verifyWithMessage` method of `tEnvoyNaClSigningKey` improperly validates signatures, always returning true for any matching SHA-512 hash, regardless of signature authenticity.

What to do

An attacker could craft a bogus signature that appears to validate against a message, effectively bypassing security measures. This could lead to unauthorized access and actions being taken under the guise of legitimacy, putting sensitive data and operations at serious risk. Upgrade to version 7.0.3 immediately to patch this vulnerability. As a workaround, modify `tenvoy.js` in the `verifyWithMessage` method to ensure that the return statement calls `this.verify` and ends with `.verified`. This will ensure that only legitimate signatures pass the check. You've got this! Following these steps will keep your application safe and sound. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00658 · 50.9th percentile
Weakness
CWE-347 · Improper Verification of Cryptographic Signature
Published
2021-06-16T00:25Z
EPSS history
Timeline
  • 16 JUN 00:25Z
    Improper Verification of Cryptographic Signature in tenvoy
    cvelistv5