XSS DUE TO CVE-2022-38463 in https://████████
A ServiceNow host was vulnerable to CVE-2022-38463, a reflected cross-site scripting flaw in the logout functionality. An attacker could craft a URL that executes script in a victim's browser, potentially stealing cookies or redirecting the victim to an attacker-controlled domain.
- Triaged in 2 hours
- Fixed in 13 days
- Disclosed after 19 days
Description: During my research, I found one of the host running ServiceNow vulnerable to CVE-2022-38463 . ServiceNow through San Diego Patch 4b and Patch 6 allows reflected XSS in the logout functionality.
Impact
Attacker is able to steal victims cookies, redirect victim to attacker controlled domain, and perform various malicious activities.
System Host(s)
███
Affected Product(s) and Version(s)
CVE Numbers
Steps to Reproduce
1.Enter the following crafted URL in any web-browser.
https://█████████/logout_redirect.do?sysparm_url=//j%5c%5cjavascript%3aalert(document.domain)
- XSS will be triggered.
Suggested Mitigation/Remediation Actions
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 crafted value to break out into a JavaScript context.
Impact
An attacker could steal the victim's cookies, redirect them to an attacker-controlled domain, and perform other malicious activities in their browser.
What the attacker needed
Victim clicks a crafted link; target runs vulnerable ServiceNow version
How it was found
- Open a web browser.
- Enter the crafted URL containing the malicious sysparm_url value in the logout_redirect endpoint.
- The XSS payload executes and the script runs in the browser.
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 runs code an attacker supplied, usually through a link. Here the logout page took a URL parameter and used it in a way that let a crafted link run JavaScript in the visitor's browser. That script could read the visitor's session cookie or send them to another site.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.