Pccs Mysqladm — 1 vulnerability check
noctis ships 1 vulnerability check for Pccs Mysqladm, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
PCCS MySQLDatabase Admin Tool dbconnect.inc Credential Disclosure
| CVE | CVE-2000-0707 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | exposure — Exposure |
| Services | http, https |
| Detection | set_var, http_request, match, script · highest QoD 75 |
| Feed | tests/vulnerabilities/pccs-mysqladm/CVE-2000-0707.yaml |
PCCS MySQLDatabase Admin Tool Manager 1.2.4 and earlier installs its include file pccsmysqladm/incs/dbconnect.inc inside the web root. The file holds the MySQL host names and the administrator password in plain text, and its .inc extension is not executed by the web server, so anyone can download its PHP source and read the database credentials.
This check requests /pccsmysqladm/incs/dbconnect.inc. The exposure is confirmed when the server returns the file's PHP source (an opening PHP tag followed by a MySQL connection call or a password variable assignment), while the same file name under a random absent directory returns no such content. Only the file's presence is reported: the credentials it contains are never copied into the finding.
How noctis detects it
- HTTP(S) request
GET /pccsmysqladm/incs/dbconnect.inc - Checks
inc_r.bodyfor(?s)<\?(?:php\b|=|\s).*?(?:\b(?i:mysql_p?connect)\s*\(|\$[A-Za-z_]*(?… - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /pccsmysqladm/noctis-absent-{{oob_token}}/incs/dbconnect.inc - Checks
ctrl_r.bodyfor(?s)<\?(?:php\b|=|\s).*?(?:\b(?i:mysql_p?connect)\s*\(|\$[A-Za-z_]*(?… - Checks
prooffor^incs/dbconnect\.inc$→ finding QoD 75: PCCS MySQLDatabase Admin Tool dbconnect.inc Credential Disclosure (CVE-2000-0707)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2000-0707
- https://seclists.org/bugtraq/2000/Aug/71
- https://www.securityfocus.com/bid/1557
Feed source — tests/vulnerabilities/pccs-mysqladm/CVE-2000-0707.yaml
# PCCS MySQLDatabase Admin Tool (Manager) <= 1.2.4 — dbconnect.inc credential
# disclosure — CVE-2000-0707
#
# The tool installs its include directory under the web root as
# <web root>/pccsmysqladm/incs/dbconnect.inc
# The file holds the common database functions, the MySQL host names and the
# administrator password in plain text. Its ".inc" extension is not mapped to
# PHP on a default web server, so the server sends the PHP source as-is to anyone
# who asks for it (Bugtraq, 2000-08-04, "PCCS MySQL DB Admin Tool v1.2.3-
# Advisory"; the only advised fix is to deny web access to the directory).
#
# Detection (QoD 75): GET /pccsmysqladm/incs/dbconnect.inc and require a 200
# whose body is PHP source (a "<?php", "<?=" or "<? " open tag followed by a
# mysql_connect()/mysql_pconnect() call in any case, or a $...pass/$...pw
# assignment). The match step has no on_match: the
# body holds the database password and must never become evidence; the finding
# reports a fixed string. A control request for the same file under a random
# absent directory (same path ending, so a honeypot keyed on
# "incs/dbconnect.inc" answers it too) must answer and must NOT carry the
# source, otherwise the host serves the same text for every path.
#
# Better than the source plugin: it only checks that the URL does not answer
# 404 (http_is_cgi_installed_ka), so a soft-404 page, a catch-all responder or
# a server that executes .inc files as PHP (empty output, nothing disclosed) is
# reported too. Here the PHP source must actually be returned, and the
# absent-path control rules out blanket responders.
#
# Source: OpenVAS/Greenbone NVT pre2008/pccsmysqladm.nasl
# (OID 1.3.6.1.4.1.25623.1.0.10783, GPL-2.0-only).
uid: 74255a58-de30-45e1-a920-616a283de691
name: "PCCS MySQLDatabase Admin Tool dbconnect.inc Credential Disclosure (CVE-2000-0707)"
description: |
PCCS MySQLDatabase Admin Tool Manager 1.2.4 and earlier installs its include
file pccsmysqladm/incs/dbconnect.inc inside the web root. The file holds the
MySQL host names and the administrator password in plain text, and its .inc
extension is not executed by the web server, so anyone can download its PHP
source and read the database credentials.
This check requests /pccsmysqladm/incs/dbconnect.inc. The exposure is
confirmed when the server returns the file's PHP source (an opening PHP tag
followed by a MySQL connection call or a password variable assignment), while
the same file name under a random absent directory returns no such content.
Only the file's presence is reported: the credentials it contains are never
copied into the finding.
cves: [CVE-2000-0707]
cvss: 7.5
severity: high
category: exposure
confidence_base: 0.30
tags: [pccs, mysql, php, credential-disclosure, information-disclosure]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2000-0707"
- "https://seclists.org/bugtraq/2000/Aug/71"
- "https://www.securityfocus.com/bid/1557"
# OpenVAS/Greenbone NASL pre2008/pccsmysqladm.nasl (GPL-2.0-only)
steps:
- id: init-inc-r
action: set_var
var_name: inc_r
var_value: {status: 0, body: ""}
- id: init-proof
action: set_var
var_name: proof
var_value: ""
- id: init-ctrl-r
action: set_var
var_name: ctrl_r
var_value: {status: 0, body: ""}
- id: init-ctrl-hit
action: set_var
var_name: ctrl_hit
var_value: false
- id: read-inc
action: http_request
method: GET
path: "/pccsmysqladm/incs/dbconnect.inc"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: inc_r
# No on_match: the body holds the MySQL password and must not become evidence.
- id: inc-content
action: match
source: inc_r.body
pattern: "(?s)<\\?(?:php\\b|=|\\s).*?(?:\\b(?i:mysql_p?connect)\\s*\\(|\\$[A-Za-z_]*(?i:pass|pw)[A-Za-z0-9_]*\\s*=)"
condition: "inc_r.status == 200"
store_as: inc_m
- id: inc-verdict
action: script
condition: "inc_r.status == 200"
code: |
if inc_m.matched { "incs/dbconnect.inc" } else { "" }
store_as: proof
# ── Control: same file name under an absent directory ───────────────────
- id: control
action: http_request
method: GET
path: "/pccsmysqladm/noctis-absent-{{oob_token}}/incs/dbconnect.inc"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'proof != ""'
store_as: ctrl_r
- id: control-content
action: match
source: ctrl_r.body
pattern: "(?s)<\\?(?:php\\b|=|\\s).*?(?:\\b(?i:mysql_p?connect)\\s*\\(|\\$[A-Za-z_]*(?i:pass|pw)[A-Za-z0-9_]*\\s*=)"
condition: 'proof != ""'
on_match:
set_vars:
ctrl_hit: true
# ── Finding (control answered and stayed clean) ──────────────────────────
- id: report
action: match
source: proof
pattern: "^incs/dbconnect\\.inc$"
condition: "ctrl_r.status != 0 && ctrl_hit == false"
on_match:
finding:
title: "PCCS MySQLDatabase Admin Tool dbconnect.inc Credential Disclosure (CVE-2000-0707)"
description: "An unauthenticated request for /pccsmysqladm/incs/dbconnect.inc returned the PHP source of the PCCS MySQLDatabase Admin Tool include file, which holds the MySQL host names and the administrator password in plain text, while the same file name under an absent directory returned no such content."
remediation: "Deny web access to the pccsmysqladm/incs directory (or move the include files outside the web root, or map .inc to the PHP handler), then change the MySQL administrator password, which must be considered disclosed. The tool is no longer maintained: replace it with a supported database administration tool."
confidence_delta: 0.55
qod: 75
evidence: "GET /pccsmysqladm/incs/dbconnect.inc returned HTTP 200 with the include file's PHP source (database connection settings, values withheld); control for an absent directory returned no such content"
stop: true