GHSA-35vc-w93w-75c2

Suggest an improvement
Source
https://github.com/advisories/GHSA-35vc-w93w-75c2
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/05/GHSA-35vc-w93w-75c2/GHSA-35vc-w93w-75c2.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-35vc-w93w-75c2
Aliases
Published
2021-05-21T16:24:34Z
Modified
2024-08-21T15:58:36.860228Z
Severity
  • 6.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:L/A:N CVSS Calculator
Summary
JWT leak via Open Redirect in Programmatic access
Details

Impact

Using programmatic access on protected sites, one can get a signed login URL with pomeriumredirecturi set to an arbitrary URL. Then, if the user has already logged into Pomerium, they will be redirected to the specified pomeriumredirecturi 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 security@pomerium.com

Database specific
{
    "nvd_published_at": null,
    "cwe_ids": [
        "CWE-200",
        "CWE-601"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2021-05-20T20:25:40Z"
}
References

Affected packages

Go / github.com/pomerium/pomerium

Package

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

Affected ranges

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