SAML Signature verification bypass allows logging into any user (with specific conditions)
An XML signature wrapping vulnerability in GitHub Enterprise Server's SAML authentication allowed an attacker with direct network access to forge a SAML response and gain site administrator access. The flaw affected all versions prior to 3.14 and was fixed in later releases.
- Triaged in 21 hours
- Fixed in 3 months
- Paid in 3 months
- Disclosed after 3 months
Summary by the program
An XML signature wrapping vulnerability was present in GitHub Enterprise Server (GHES) when using SAML authentication with specific identity providers utilizing publicly exposed signed federation metadata XML. This vulnerability allowed an attacker with direct network access to GitHub Enterprise Server to forge a SAML response to provision and/or gain access to a user with site administrator privileges. Exploitation of this vulnerability would allow unauthorized access to the instance without requiring prior authentication. This vulnerability affected all versions of GitHub Enterprise Server prior to 3.14 and was fixed in versions 3.13.3, 3.12.8, 3.11.14, and 3.10.16. CVE-2024-6800
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
Root cause
Likely the SAML implementation did not properly validate the signed element, allowing an attacker to wrap a forged assertion around a legitimately signed one.
Impact
An attacker with direct network access could forge a SAML response to provision and/or gain access to a user with site administrator privileges, without prior authentication.
What the attacker needed
Direct network access to the GHES instance; SAML authentication enabled; identity provider with publicly exposed signed federation…
The fix
The vulnerability was fixed in versions 3.13.3, 3.12.8, 3.11.14, and 3.10.16.
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.
SAML is a way for websites to let you log in using an identity provider, like a company login system. The server checks a signed message to confirm who you are. Here, the server could be tricked into accepting a forged message because of how it handled the XML structure, letting an attacker log in as an administrator.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.