Azure User Invitation Spoofing Vulnerability
The Azure Active Directory external user invitation feature accepted an arbitrary URL in the inviteRedirectUrl parameter and used it as the post-acceptance redirect target. An attacker could craft an invitation that, after the victim signed in and accepted, sent them to an attacker-controlled site, and the resulting invitations.microsoft.com link also bypassed Microsoft SafeLink detection.
Published on cybersecuritywriteups.com
FREE LINK
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 invitation endpoint accepted an unvalidated user-supplied redirect URL and used it directly after the invitation was accepted, without restricting it to trusted Microsoft domains.
Impact
An attacker could redirect a victim to a phishing page or malware after they accept an Azure invitation, and the invitations.microsoft.com link could bypass Microsoft SafeLink detection, though the report does not show credential theft or code execution.
What the attacker needed
Ability to send an Azure AD invitation; victim clicks the invitation link; victim signs in and accepts the invitation
The fix
The vulnerability was fixed by Microsoft, according to the report's timeline.
How it was found
- Create a user and send an external user invitation request, intercepting it with a proxy.
- Change the inviteRedirectUrl parameter to an attacker-controlled domain.
- Observe that the injected URL appears in the invitation email sent to the invited user.
- Sign in and accept the invitation, then observe the redirect to the attacker-controlled domain.
- Note that the generated invitation link encodes the target and starts with invitations.microsoft.com, hiding the destination.
- Send a malicious link through the invitation and observe that SafeLink does not detect it, unlike when sent directly.
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 invite someone to use a service, the invitation email often contains a link that takes you back to that service after you accept. Here, the service trusted a web address supplied by whoever sent the invitation, so the sender could make that link point to their own website instead. That lets an attacker send victims to a fake login page or malware download while the link still looks like it belongs to Microsoft.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.