XSS in ServiceNow logout https://████:443
The ServiceNow logout endpoint reflected a user-supplied URL parameter without proper validation, allowing a crafted link to execute JavaScript in the victim's browser. An unauthenticated attacker could trick a user into clicking the link to run code in the context of the vulnerable site.
- Disclosed after 8 months
Description: XSS in ServiceNow logout https://██████:443/logout_redirect.do?sysparm_url=//j%5c%5cjavascript%3aalert(document.domain)
References
https://nvd.nist.gov/vuln/detail/CVE-2022-38463
Impact
Unauthenticated remote attacker can execute code in user's browser context. User must click on malicious link
System Host(s)
███████
Affected Product(s) and Version(s)
Servicenow prior to SanDiego SP6
CVE Numbers
CVE-2022-38463
Steps to Reproduce
Click on https://█████:443/logout_redirect.do?sysparm_url=//j%5c%5cjavascript%3aalert(document.domain)
Suggested Mitigation/Remediation Actions
Upgrade to patched version of ServiceNow
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 logout redirect endpoint failed to properly validate or encode the sysparm_url parameter, allowing a javascript: scheme to be injected.
What the attacker needed
Victim clicks a malicious link
The fix
Upgrade to a patched version of ServiceNow.
How it was found
- Click on the crafted logout_redirect.do link containing the malicious sysparm_url value.
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.
This is a cross-site scripting (XSS) bug. A web page took a value from the address bar and put it into the page without cleaning it, so a specially crafted link could make the browser run attacker-supplied JavaScript. The victim only had to click the link.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.