GitHub Advisoryadvisory · Go

GHSA-35vc-w93w-75c2 JWT leak via Open Redirect in Programmatic access

MEDIUM Published 2021-05-21 Modified 2023-10-02 Official page ↗
Aliases
CVE-2021-29651
Ecosystem
Go
Packages
github.com/pomerium/pomerium
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N
Weaknesses
CWE-200, CWE-601
Reviewed
2021-05-20

Affected packages

• Go github.com/pomerium/pomerium: < 0.13.4 → fixed in 0.13.4

Description

Impact Using programmatic access on protected sites, one can get a signed login URL with pomerium_redirect_uri set to an arbitrary URL. Then, if the user has already logged into Pomerium, they will be redirected to the specified pomerium_redirect_uri with a JWT attached. This allows an outside attacker to get a signed login URL that, upon visiting it, will redirect a victim to the attacker’s site. This creates an issue of Open Redirect and, more seriously, JWT leakage. With a leaked JWT, the attacker will be able to unveil the victim’s identity (.e.g. email address) by supplying the JWT to the authenticate service or verify.pomerium.com. In addition, if an application integrating Pomerium only verifies the iss claim and others but not the aud claim, the attacker will be able to access it as the victim. Specific Go Packages Affected github.com/pomerium/pomerium/proxy Patches Patched in Pomerium v0.13.4 For more information If you have any questions or comments about this advisory • Open an issue in pomerium • Email us at [email protected]

Related

Alias · CVE (1)

  • CVE-2021-29651 Pomerium before 0.13.4 has an Open Redirect (issue 1 of 2). vulnerability

Weakness · CWE (2)

  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor weakness
  • CWE-601 URL Redirection to Untrusted Site weakness

References