PT-2020-19733 · Russell Haering · Goxmldsig+1
Steven Johnstone
·
Published
2020-08-23
·
Updated
2022-11-15
·
CVE-2020-7711
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
github.com/russellhaering/goxmldsig versions prior to 1.1.1
github.com/russellhaering/gosaml2 versions prior to 0.7.0
Description
The issue is caused by a nil-pointer dereference when sending malformed XML signatures, leading to a crash. This can be used as a denial of service vector if user-supplied signatures are being validated. The problem occurs when an attacker supplies an invalid assertion, triggering a panic.
Recommendations
For github.com/russellhaering/goxmldsig versions prior to 1.1.1, update to version 1.1.1 to resolve the issue.
For github.com/russellhaering/gosaml2 versions prior to 0.7.0, update to version 0.7.0 to resolve the issue.
As a temporary workaround for github.com/russellhaering/gosaml2, callers can use
recover() to handle panics and mitigate the potential denial of service vector.Exploit
Fix
NULL Pointer Dereference
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Gosaml2
Goxmldsig