Full Disclosure: A Look at a Recently Patched Microsoft Graph Logging Bypass - GraphNinja
Microsoft Graph authentication attempts made against a tenant other than the victim's own tenant were not recorded in the victim's sign-in logs, while verbose error codes still revealed whether a username and password were valid. An attacker could therefore perform password-spraying and user enumeration without appearing in the victim's logs.
From June 2023 to March 2024, Microsoft Graph was vulnerable to a logging bypass that allowed attackers to perform password-spray attacks undetected. During this period, any organization in Azure could have been attacked and would have had no indication of the activity.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely, the logging system only recorded authentication attempts that were sent to the 'common' endpoint or to the user's own tenant, and did not log cross-tenant attempts against other tenants.
Impact
Attackers could perform password-spraying and user enumeration without being logged, though Smart Lockout remained a compensating control that could be bypassed by varying source IP addresses.
What the attacker needed
Knowledge of target tenant ID; ability to send authentication requests; valid username list
The fix
The issue was fixed by Microsoft, as the author states the bypass no longer works.
How it was found
- Send a normal Microsoft Graph authentication attempt to the 'common' endpoint and observe that a failed login appears in the victim's sign-in logs.
- Send the same authentication attempt to a different tenant's endpoint instead of the 'common' endpoint.
- Check the victim's sign-in logs and observe that no new failed login attempt appears.
- Use the verbose error code from the response to determine whether the username and password are valid.
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 write-up has not been written yet. The Original tab links to the source.
When you try to log in to a service, the service usually records the attempt so administrators can see failed logins. Here, if an attacker sent the login attempt to a different organisation's login address, the victim's organisation never saw the attempt in its records. The error message still told the attacker whether the username and password were correct, so they could guess passwords without being noticed.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.