OAuth redirect uri validation bypass for :proxima_first_party_sync apps
An incorrect regular expression in GitHub Enterprise Server allowed bypassing OAuth redirect URI validation. An attacker who knows a first-party OAuth app's registered callback URL could craft a malicious authorization link that redirects the victim's OAuth authorization code to an attacker-controlled domain, potentially gaining unauthorized access to the victim's account with the app's scopes.
- Triaged in 16 hours
- Fixed in 5 months
- Paid in 5 months
- Disclosed after 5 months
Summary by the program
An incorrect regular expression vulnerability was identified in GitHub Enterprise Server that allowed an attacker to bypass OAuth redirect URI validation. An attacker with knowledge of a first-party OAuth application's registered callback URL could craft a malicious authorization link that, when clicked by a victim, would redirect the OAuth authorization code to an attacker-controlled domain. This could allow the attacker to gain unauthorized access to the victim's account with the scopes granted to the OAuth application. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.21 and was fixed in versions 3.20.1, 3.19.5, 3.18.8, 3.17.14, 3.16.17, 3.15.21, 3.14.26. This vulnerability was reported via the GitHub Bug Bounty program.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Impact
An attacker could gain unauthorized access to the victim's account with the scopes granted to the OAuth application.
What the attacker needed
Knowledge of a first-party OAuth app's callback URL; victim clicks a crafted authorization link
The fix
The vulnerability was fixed in versions 3.20.1, 3.19.5, 3.18.8, 3.17.14, 3.16.17, 3.15.21, and 3.14.26.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
OAuth is a way for apps to ask for permission to access your account without sharing your password. When you click 'authorise', the app sends you back to a pre-approved web address with a secret code. Here, a mistake in checking that address let an attacker trick the system into sending the code to their own site, so they could use it to access your account.
What is OAuth / SSO?
Mistakes in OAuth, OpenID Connect, SAML or token handling that leak codes and tokens or link an attacker's identity to a victim's account.