Advisory

GHSA-c27r-x354-4m68

Also known as: None

Summary

xml-crypto's HMAC-SHA1 signatures can bypass validation via key confusion

Details

Impact
An attacker can inject an HMAC-SHA1 signature that is valid using only knowledge of the RSA public key. This allows bypassing signature validation.

Patches
Version 2.0.0 has the fix.

Workarounds
The recommendation is to upgrade. In case that is not possible remove the 'http://www.w3.org/2000/09/xmldsig#hmac-sha1' entry from SignedXml.SignatureAlgorithms.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2020-10-27 20:39 UTC
Modified
2022-08-02 20:03 UTC

Affected packages and fixes

xml-crypto

npm · All systems

Affected

  • introduced 0, fixed 2.0.0 (semver)

Fixed versions

2.0.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences