Acidcat CMS — 1 vulnerability check

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

← All products · Feeds on GitHub

Acidcat CMS Installer Left Reachable and Database Download

CVECVE-2010-0976, CVE-2010-0984
Severityhigh · CVSS 7.5
Categoryexposure — Exposure
Serviceshttp, https
Detectionset_var, script, http_request, match · highest QoD 75
Feedtests/vulnerabilities/acidcat-cms/acidcat-cms-install-database-exposure.yaml

Acidcat CMS 3.5.x, a classic ASP content management system backed by a Microsoft Access database, keeps serving its installation scripts (install.asp and the install_*.asp steps) after the installation finishes, so an unauthenticated attacker can restart the installation (CVE-2010-0976). It also stores its database databases/acidcat_3.mdb under the web root without access control, so anyone can download it, including the administrator credentials (CVE-2010-0984).

For /acidcat, /Acidcat and the web root, this check requests only the first 32 bytes of databases/acidcat_3.mdb (HTTP Range request) and reports the database as downloadable when they carry the Microsoft Access file signature; no database content is copied into the finding. When the admin login page main_login.asp shows the Acidcat ASP CMS name, it also requests install.asp (a read-only GET of the installer's welcome page) and reports the installer as reachable when the page shows the installation guide welcome text.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request GET {{dir}}/databases/acidcat_3.mdb
  3. Parses / computes the next value with a Rhai script
  4. HTTP(S) request GET {{dir}}/main_login.asp
  5. Parses / computes the next value with a Rhai script
  6. HTTP(S) request GET {{dir}}/install.asp
  7. Parses / computes the next value with a Rhai script
  8. Checks hit_install for ^/ → finding QoD 75: Acidcat CMS Installer Reachable After Installation (CVE-2010-0976)
  9. Checks hit_mdb for ^/ → finding QoD 75: Acidcat CMS Database Download (CVE-2010-0984)

References:

Feed source — tests/vulnerabilities/acidcat-cms/acidcat-cms-install-database-exposure.yaml
# Acidcat CMS 3.5.x — install.asp left reachable (CVE-2010-0976) and
# databases/acidcat_3.mdb downloadable (CVE-2010-0984)
#
# Acidcat CMS (classic ASP + Microsoft Access, acidcat.com, gone; no source archive
# reachable) tells the administrator to delete every install*.asp file at the end of the
# installation but keeps serving them, so anyone can restart the installation
# (CVE-2010-0976). Its Access database databases/acidcat_3.mdb sits under the web root
# without access control (CVE-2010-0984). Advisory: EDB-10972 (LionTurk, January 2010)
# lists both URLs under the install directory.
#
# Detection, per candidate install directory (/acidcat, /Acidcat, web root):
#   - databases/acidcat_3.mdb with Range: bytes=0-31; the Access file signature
#     ("Standard Jet DB" / "Standard ACE DB" at offset 4) proves the download. Only the
#     header is asked for and nothing is copied into the finding.
#   - main_login.asp must carry the product name (">Acidcat ASP CMS"); only then
#     install.asp is requested (a plain GET shows the installer's welcome page and changes
#     nothing) and reported when it shows "Welcome to the Acidcat CMS installation guide".
#     The product gate keeps the feed from requesting install.asp of other applications.
#
# Better than the source NASL: the reference check only covers the installer (it names
# CVE-2010-0984 but never requests the database); this feed also proves the database
# download, each finding carrying its own CVE.
#
# Source: OpenVAS/Greenbone NVT 2010/gb_acidcat_cms_mult_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.900750, GPL-2.0-only); EDB-10972.
uid: d7118612-b94d-43ae-acad-0a99e7924acd
name: "Acidcat CMS Installer Left Reachable and Database Download (CVE-2010-0976, CVE-2010-0984)"
description: |
  Acidcat CMS 3.5.x, a classic ASP content management system backed by a Microsoft
  Access database, keeps serving its installation scripts (install.asp and the
  install_*.asp steps) after the installation finishes, so an unauthenticated attacker
  can restart the installation (CVE-2010-0976). It also stores its database
  databases/acidcat_3.mdb under the web root without access control, so anyone can
  download it, including the administrator credentials (CVE-2010-0984).

  For /acidcat, /Acidcat and the web root, this check requests only the first 32 bytes of
  databases/acidcat_3.mdb (HTTP Range request) and reports the database as downloadable
  when they carry the Microsoft Access file signature; no database content is copied into
  the finding. When the admin login page main_login.asp shows the Acidcat ASP CMS name,
  it also requests install.asp (a read-only GET of the installer's welcome page) and
  reports the installer as reachable when the page shows the installation guide welcome
  text.
cves: [CVE-2010-0976, CVE-2010-0984]
cvss: 7.5
severity: high
category: exposure
confidence_base: 0.30
tags: [acidcat, asp, access, installer, database-disclosure]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2010-0976"
  - "https://nvd.nist.gov/vuln/detail/CVE-2010-0984"
  - "https://www.exploit-db.com/exploits/10972"

steps:
  - id: init-hit-install
    action: set_var
    var_name: hit_install
    var_value: ""

  - id: init-hit-mdb
    action: set_var
    var_name: hit_mdb
    var_value: ""

  # Loop group: every step down to after-loop runs once per directory.
  - id: init-mdb
    action: set_var
    var_name: mdb
    var_value: {status: 0, body: ""}
    loop:
      var: dir
      over: ["/acidcat", "/Acidcat", ""]

  - id: init-login
    action: set_var
    var_name: login
    var_value: {status: 0, body: ""}

  - id: init-inst
    action: set_var
    var_name: inst
    var_value: {status: 0, body: ""}

  - id: init-gate
    action: set_var
    var_name: is_acidcat
    var_value: false

  - id: dir-label
    action: script
    code: 'dir + "/"'
    store_as: dlabel

  - id: fetch-mdb
    action: http_request
    method: GET
    path: "{{dir}}/databases/acidcat_3.mdb"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 15
    condition: 'hit_mdb == ""'
    headers:
      Range: "bytes=0-31"
    store_as: mdb

  - id: mdb-check
    action: script
    condition: 'hit_mdb == ""'
    code: |
      let body = if type_of(mdb.body) == "string" { mdb.body } else { "" };
      if (mdb.status == 200 || mdb.status == 206)
         && ereg("^(?s).{4}Standard (Jet|ACE) DB", body) { dlabel } else { "" }
    store_as: hit_mdb

  - id: fetch-login
    action: http_request
    method: GET
    path: "{{dir}}/main_login.asp"
    port: "{{port}}"
    tls_insecure: true
    timeout_secs: 15
    condition: 'hit_install == ""'
    store_as: login

  - id: login-gate
    action: script
    condition: 'hit_install == ""'
    code: |
      let body = if type_of(login.body) == "string" { login.body } else { "" };
      login.status == 200 && body.contains(">Acidcat ASP CMS")
    store_as: is_acidcat

  - id: fetch-install
    action: http_request
    method: GET
    path: "{{dir}}/install.asp"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 15
    condition: 'hit_install == "" && is_acidcat == true'
    store_as: inst

  - id: install-check
    action: script
    condition: 'hit_install == ""'
    code: |
      let body = if type_of(inst.body) == "string" { inst.body } else { "" };
      if is_acidcat == true && inst.status == 200
         && body.contains("Welcome to the Acidcat CMS installation guide") { dlabel } else { "" }
    store_as: hit_install

  # Second loop group: the reports run once, after the directory loop.
  - id: after-loop
    action: set_var
    var_name: loop_done
    var_value: true
    loop:
      var: pass
      over: ["once"]

  - id: report-install
    action: match
    source: hit_install
    pattern: "^/"
    on_match:
      finding:
        cves: [CVE-2010-0976]
        cvss: 7.5
        severity: high
        title: "Acidcat CMS Installer Reachable After Installation (CVE-2010-0976)"
        description: "The Acidcat CMS installation script install.asp is still served on an installed site: it shows the installation guide welcome page to unauthenticated clients. Anyone can restart the installation and reconfigure the site, its database and its administrator account."
        remediation: "Delete install.asp and every other install*.asp file from the Acidcat CMS directory, as the last installation screen instructs, or deny HTTP access to them."
        confidence_delta: 0.50
        qod: 75
        evidence: "GET main_login.asp showed the Acidcat ASP CMS login page, then GET install.asp answered 200 with \"Welcome to the Acidcat CMS installation guide\" — install dir: {{hit_install}}"

  - id: report-mdb
    action: match
    source: hit_mdb
    pattern: "^/"
    on_match:
      finding:
        cves: [CVE-2010-0984]
        cvss: 5.0
        severity: medium
        title: "Acidcat CMS Database Download (CVE-2010-0984)"
        description: "The Acidcat CMS Microsoft Access database databases/acidcat_3.mdb is stored under the web root and is served to unauthenticated clients: its first bytes carry the Access file signature. Anyone can download the whole database, including the administrator credentials."
        remediation: "Move acidcat_3.mdb outside the web root (and update the connection string), or deny HTTP access to the databases directory and to .mdb files in the web server configuration."
        confidence_delta: 0.50
        qod: 75
        evidence: "GET databases/acidcat_3.mdb (Range: bytes=0-31) returned the Microsoft Access file signature (Standard Jet/ACE DB at offset 4); no content was kept — install dir: {{hit_mdb}}"

View these feeds on GitHub