A Stored XSS in Jira Service Desk "Reports" Via "Requests resolved"
A non-authenticated user could inject a script into the question field of a public Jira Service Desk widget, and the script executed in the admin's 'Requests resolved' report when the admin clicked the graph. This allowed the attacker to run arbitrary JavaScript in the admin's browser.
Originally disclosed on Bugcrowd
- Accepted in 12 days
- Fixed in 17 days
- Disclosed after 3.3 years
Summary by Atlassian
A Stored XSS Vulnerability in Jira Service Management
Summary by norwin_boniao
A Non-Authenticated users can execute Stored XSS attack using the Widget Chat in Service Desk when Inserting malicious script in Question field , The script executes in Requests resolved area.
Report details
-
Submitted
11 Jun 2020 18:15:42 UTC
-
Target Location
Jira Service Management Cloud (bugbounty-test-<bugcrowd-name>.atlassian.net) -
Target category
Web App
-
VRT
Cross-Site Scripting (XSS) > Stored > Non-Privileged User to Anyone
-
Priority
P3
-
Bug URL
Empty
-
Description
Good Day:
Please allow me to report this Stored XSS in Jira Service Desk "Reports" Via "Requests resolved". Where in Non-Authenticated users can execute a malicious script against Admin.
Step To Reproduce: Step1. As admin enables the widget for your Service Desk.
https://norwin1.atlassian.net/servicedesk/admin/TESF/addon/com.atlassian.servicedesk.embedded__settingsSet up the widget so that it will go live publicly.
Step2. when it is now live: a malicious user can execute an attack via asking a question with an xss payload
norwin"><img src="x" onerror="alert(document.domain)"></img>putting it inWhat is your question fieldand send it.Step3. Admin now received the question and mark it as
resolved.Now navigate to
https://norwin1.atlassian.net/jira/servicedesk/projects/TESF/reports/kb-requests-resolvedReportsthen go toRequest Resolvednow click the graph.
Step. XSS payload executed.
Thanks, Norwin
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 application failed to properly sanitise or encode user-supplied input from the widget's question field before displaying it in the 'Requests resolved' report.
What the attacker needed
Admin enables public widget; Attacker submits question with payload; Admin marks question as resolved; Admin views report and clicks graph
How it was found
- As admin, enable the widget for the Service Desk and set it to go live publicly.
- As a malicious user, submit a question containing an XSS payload in the 'What is your question' field.
- As admin, receive the question and mark it as resolved.
- Navigate to the Reports section and go to 'Request Resolved'.
- Click the graph to trigger the stored XSS payload.
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.
A stored cross-site scripting (XSS) flaw lets an attacker save a small piece of code (a script) on a website. When an administrator later views the page that shows that saved content, the script runs in the admin's browser, potentially letting the attacker act as the admin.
What is XSS?
Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.