crewjam/saml vulnerable to Denial Of Service Via Deflate Decompression Bomb
Date: 2023-03
Affected: go/github.com/crewjam/saml
Attack vector: dos
Category: vulnerability-disclosure
Severity: High
CVE: CVE-2023-28119
CWE: CWE-770
CVSS: 7.5 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H)

Our use of flate.NewReader does not limit the size of the input. The user could pass more than 1 MB of data in the HTTP request to the processing functions, which will be decompressed server-side using the Deflate algorithm. Therefore, after repeating the same request multiple times, it is possible to achieve a reliable crash since the operating system kills the process.


Mitigations:

Architectural layers (MAESTRO):