Authentication bypass in jwt-go



| Updated: 2021-02-18
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2020-26160
CWE-ID CWE-287
Exploitation vector Network
Public exploit N/A
Vulnerable software
jwt-go
Web applications / Other software

Vendor Dave Grijalva

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Improper Authentication

EUVDB-ID: #VU50809

Risk: Medium

CVSSv4.0: 6.6 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]

CVE-ID: CVE-2020-26160

CWE-ID: CWE-287 - Improper Authentication

Exploit availability: No

Description

The vulnerability allows a remote attacker to bypass authentication process.

The vulnerability exists due to improper validation when processing data passed via m["aud"]. A remote attacker can pass the []string{} string, which is allowed by the specification, however treated as an empty string and bypass authentication checks.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

jwt-go: 1.0.0 - 3.2.0

CPE2.3 External links

https://github.com/dgrijalva/jwt-go/pull/426
https://snyk.io/vuln/SNYK-GOLANG-GITHUBCOMDGRIJALVAJWTGO-596515
https://github.com/dgrijalva/jwt-go/issues/422


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.



###SIDEBAR###