Skip to content

CVE-2020-26160 #9

@comet-volterra

Description

@comet-volterra

Describe the bug
jwt-go before 4.0.0-preview1 allows attackers to bypass intended access restrictions in situations with []string{} for m["aud"] (which is allowed by the specification). Because the type assertion fails, "" is the value of aud. This is a security problem if the JWT token is presented to a service that lacks its own audience check.

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'

Expected behavior
Ensure fix is present: dgrijalva/jwt-go#426

Metadata

Metadata

Assignees

No one assigned

    Labels

    fixedthe issue/bug had been fixed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions