github.com/pomerium/pomerium
Affected
- introduced
0, fixed0.13.4(semver)
Fixed versions
0.13.4
Fix
- Fixed version
0.13.4go get github.com/pomerium/[email protected]
Advisory
Also known as: CVE-2021-29651, GO-2022-0783
JWT leak via Open Redirect in Programmatic access
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
Medium Basis: The source's own band: MODERATE
0, fixed 0.13.4 (semver)0.13.4
0.13.4go get github.com/pomerium/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0