Skip to content
OpenAdvisories

Package · Go

github.com/russellhaering/gosaml2

6 known vulnerabilities.

6 results · Feed

  • High 7.5

    Unsigned SAML LogoutRequest Acceptance in gosaml2

    ## Summary The `ValidateEncodedLogoutRequestPOST` function in gosaml2 accepts completely unsigned SAML `LogoutRequest` messages even when `SkipSignatureValidation` is set to `false`. When `validateElementSignature` returns `dsig.ErrMissingSignature`, the code…

  • High —

    gosaml2 CBC Padding Panic — Unauthenticated Process Crash

    ## Summary The AES-CBC decryption path in `DecryptBytes()` panics on crafted ciphertext whose plaintext is all zero bytes. After decryption, `bytes.TrimRight(data, "\x00")` empties the slice, then `data[len(data)-1]` panics with `index out of range [-1]`. The…

  • Medium 5.3

    gosaml2 vulnerable to Denial of Service via deflate decompression bomb

    gosaml2 is a Pure Go implementation of SAML 2.0. SAML Service Providers using this library for SAML authentication support are likely susceptible to Denial of Service attacks. A bug in this library enables attackers to craft a `deflate`-compressed request whi…

  • Critical —

    Signature Validation Bypass

    ### Impact Given a valid SAML Response, an attacker can potentially modify the document, bypassing signature validation in order to pass off the altered document as a signed one. This enables a variety of attacks, including users accessing accounts other than…

  • Critical 9.8

    Authentication Bypass in github.com/russellhaering/gosaml2

    The encoding/xml package in Go (all versions) does not correctly preserve the semantics of attribute namespace prefixes during tokenization round-trips, which allows an attacker to craft inputs that behave in conflicting ways during different stages of proces…

  • High 7.5

    Denial of Service (DoS)

    This affects all versions of package github.com/russellhaering/goxmldsig. There is a crash on nil-pointer dereference caused by sending malformed XML signatures.