Patchfirst
CVE-2020-5300 Medium · 5.8 EPSS 1.0%

Disallow replay of `private_key_jwt` by blacklisting JTIs in Hydra

Fix:upgrade hydra to 1.4.0 or later Details ↓

ory · hydra

Official description · CVE.org

In Hydra (an OAuth2 Server and OpenID Certified™ OpenID Connect Provider written in Go), before version 1.4.0+oryOS.17, when using client authentication method 'private_key_jwt' [1], OpenId specification says the following about assertion `jti`: "A unique identifier for the token, which can be used to prevent reuse of the token. These tokens MUST only be used once, unless conditions for reuse were negotiated between the parties". Hydra does not check the uniqueness of this `jti` value. Exploiting this vulnerability is somewhat difficult because: - TLS protects against MITM which makes it difficult to intercept valid tokens for replay attacks - The expiry time of the JWT gives only a short window of opportunity where it could be replayed This has been patched in version v1.4.0+oryOS.17

Breakdown
17.0 / 100
Exploited
Not confirmed
Reports
0
Tactics
0/15

Disclosed on 6 Apr 2020. No public exploit code or confirmed exploitation is recorded.

techniques

No techniques linked

No high- or medium-confidence techniques. The 2 available links are lower confidence and listed below.

Lower-confidence links (2)

These come from early or generic mappings, text matching, or contradict this CVE’s details (for example a public-facing technique on a bug that needs a user to open a file). Shown for completeness.

  • Exploitation for Privilege EscalationT1068 CTID attack_to_cve Phase 1 "Uncategorized" mapping (not staged by impact)
  • Steal Application Access TokenT1528 CTID attack_to_cve Phase 1 "Uncategorized" mapping (not staged by impact)

Affected versions and fixes

as published in the CVE record

ory hydra

Affected: < 1.4.0+oryOS.17

Am I affected? What do I upgrade to?

From GitHub Security Advisories and OSV

1 package in 1 ecosystem. Main package: github.com/ory/hydra.

Gogithub.com/ory/hydraGHSA-3p3g-vpw6-4w66GO-2022-0786

Upgrade to 1.4.0 or later

Gogo get github.com/ory/hydra@v1.4.0

The first fix for CVE-2020-5300. No other CVE tracked by Patchfirst affects this package.

Affected versions

If you runUpgrade to
All versions before 1.4.01.4.0

“Up to” means the second version is the fix and is not affected.

Check your lockfile against all CVEs

References

3 links, grouped by NVD tag
↑ ↓ chooseEnter openEsc close