GO-2021-0058

Source
https://pkg.go.dev/vuln/GO-2021-0058
Import Source
https://vuln.go.dev/ID/GO-2021-0058.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2021-0058
Aliases
Published
2021-04-14T20:04:52Z
Modified
2024-05-20T16:03:47Z
Summary
Signature validation bypass due to XML processing error in github.com/crewjam/saml
Details

Due to the behavior of encoding/xml, a crafted XML document may cause XML Digital Signature validation to be entirely bypassed, causing an unsigned document to appear signed.

References

Affected packages

Go / github.com/crewjam/saml

Package

Name
github.com/crewjam/saml
View open source insights on deps.dev
Purl
pkg:golang/github.com/crewjam/saml

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.4.3

Ecosystem specific

{
    "imports": [
        {
            "path": "github.com/crewjam/saml",
            "symbols": [
                "IdentityProvider.ServeSSO",
                "IdpAuthnRequest.Validate",
                "ServiceProvider.ParseResponse",
                "ServiceProvider.ParseXMLResponse",
                "ServiceProvider.ValidateLogoutResponseForm",
                "ServiceProvider.ValidateLogoutResponseRedirect",
                "ServiceProvider.ValidateLogoutResponseRequest"
            ]
        },
        {
            "path": "github.com/crewjam/saml/samlidp",
            "symbols": [
                "Server.HandlePutService",
                "getSPMetadata"
            ]
        },
        {
            "path": "github.com/crewjam/saml/samlsp",
            "symbols": [
                "FetchMetadata",
                "Middleware.ServeHTTP",
                "New",
                "ParseMetadata"
            ]
        }
    ]
}