Active Directory Federation Services XSS Vulnerability (CVE-2019-1273)
ADFS did not properly sanitise certain error messages, allowing an authenticated attacker to send a crafted request that triggers cross-site scripting. The attacker could then run scripts in the victim's security context to read unauthorised content, act as the user, or inject malicious content.
Johannes Gutenberg Universität-Mainz Follow
Originally disclosed on Microsoft
Description
A cross-site-scripting (XSS) vulnerability exists when Active Directory Federation Services (ADFS) does not properly sanitize certain error messages. An authenticated attacker could exploit the vulnerability by sending a specially crafted request to an affected ADFS server. The attacker who successfully exploited the vulnerability could then perform cross-site scripting attacks on affected systems and run scripts in the security context of the current user. The attacks could allow the attacker to read content that the attacker is not authorized to read, use the victim's identity to take actions on the ADFS site on behalf of the user, such as change permissions and delete content, and inject malicious content in the browser of the user. The security update addresses the vulnerability by helping to ensure that ADFS error handling properly sanitizes error messages.
Windows Active Directory
Windows Active Directory
Microsoft
Microsoft
Customer Action Required
Yes
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, ADFS error handling failed to sanitise or encode user-influenced content before reflecting it in error messages.
Impact
An authenticated attacker could run scripts in the victim's security context, potentially reading unauthorised content, acting as the user, or injecting malicious content.
What the attacker needed
Authenticated attacker; crafted request to ADFS server
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.
Cross-site scripting (XSS) is when a website shows attacker-supplied text as if it were part of the page, so the attacker's script runs in a victim's browser. Here, an error message in ADFS was not cleaned before being shown, so a logged-in attacker could craft a request that made the error page run their script for another user. That script could then do things on the ADFS site as the victim.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.