These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.
CVE-2024-4985: SAML auth bypass
Fixed 2024 · Fixed
On GitHub Enterprise Server with SAML single sign-on and the optional encrypted assertions feature, anyone who could reach the instance could forge a SAML response and sign in as a site administrator, without any account.
- Went after
- Take over the GHES appliance
- Access held
Full summary
CVE-2024-4985 (CVSS 9.8 in GitHub's advisory) was an authentication bypass in GitHub Enterprise Server's SAML single sign-on, present only when the optional encrypted assertions feature was turned on. An attacker could forge a SAML response that provisioned or signed in to a user with site administrator rights, with no prior authentication. It affected every version before 3.13.0 and was fixed in 3.9.15, 3.10.12, 3.11.10 and 3.12.4. It was reported through GitHub's bug bounty.
How it unfolded
Pick a step to zoom into it. A dashed line is a step the sources do not state. Blue dots are the checklist items that break the step.
Whole path
The whole attack, one row per step. Pick a step on the left, or click a box in its row.
The bug only existed when the instance used SAML single sign-on with the optional encrypted assertions feature. Instances using other authentication, or SAML without encrypted assertions, were not affected.
What breaks this step
- Keep GitHub Enterprise Server on a supported release with current patches
- Keep the Management Console and admin SSH off the general network.
An attacker who could reach the instance could forge a SAML response that GitHub Enterprise Server accepted, with no account and no prior authentication.
What breaks this step
The forged response could provision or sign in to a user with site administrator rights, which controls the whole instance. Every version before 3.13.0 was affected; it was fixed in 3.9.15, 3.10.12, 3.11.10 and 3.12.4 after a bug bounty report.
Frameworks
Part of
Fixed. First seen May 2024. Mapping by ghtier, not yet reviewed. Threat landscape