Turnkeyforms Classifieds — 1 vulnerability check
noctis ships 1 vulnerability check for Turnkeyforms Classifieds, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
TurnkeyForms Local Classifieds Site_Admin Authentication Bypass
| CVE | CVE-2008-6302 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | auth-bypass — Auth bypass |
| Services | http, https |
| Detection | script, set_var, http_request, match · highest QoD 75 |
| Feed | tests/vulnerabilities/turnkeyforms-classifieds/CVE-2008-6302.yaml |
Tests whether the TurnkeyForms Local Classifieds administration panel, classifieds/Site_Admin/admin.php, can be opened without logging in. In the /localclassifieds/classifieds and /classifieds directories and in the web root, the feed requests Site_Admin/admin.php without any session cookie and without following redirects. The finding is reported when the reply is a 200 page titled "Classifieds Administration" that is the administration panel itself rather than a login form (no password field, or a password field alongside a logout link, as on a change-password form), and when a request for a random, non-existent script in the same Site_Admin directory does not return that same page, so a site that answers every path with the panel title is not reported. The probe only reads the page and changes nothing.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{dir}}/Site_Admin/admin.php - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{dir}}/Site_Admin/{{ctl_name}} - Parses / computes the next value with a Rhai script
- Checks
prooffor^Classifieds Administration panel served without authentication$→ finding QoD 75: TurnkeyForms Local Classifieds Site_Admin Authentication Bypass (CVE-2008-6302)
References:
Feed source — tests/vulnerabilities/turnkeyforms-classifieds/CVE-2008-6302.yaml
# TurnkeyForms Local Classifieds Site_Admin authentication bypass — CVE-2008-6302
#
# TurnkeyForms Local Classifieds (commercial PHP classifieds script) serves
# its administration panel, classifieds/Site_Admin/admin.php, without
# checking for an administrator session: a direct request returns the
# "Classifieds Administration" page (EDB-7106, demo install path
# /localclassifieds/classifieds/Site_Admin/admin.php). The vendor source is
# not public; the page title is the marker the public reports and the source
# check rely on.
#
# Detection (read-only), per candidate install dir (/localclassifieds/classifieds,
# /classifieds, and the web root for an install whose classifieds directory
# is the document root):
# 1. GET <dir>/Site_Admin/admin.php without cookies, redirects not followed:
# 200 + <title>Classifieds Administration</title>, and not a login form:
# no password field, or a password field next to a logout link (a panel
# page with a change-password form).
# 2. Control: GET <dir>/Site_Admin/noctis<random>.php must NOT answer 200
# with the same title (a front end that serves the panel title for any
# path is not reported).
# QoD 75 (response analysis: admin content served without authentication).
#
# Improvements over the source NASL (title + 200 only):
# - A login form carrying the same title (an install that asks for the
# administrator password) is not reported.
# - Catch-all control on a random sibling script.
# - Also tries the classifieds directory served as the web root.
#
# CVSS: NVD v2 7.5 (no v3 score published).
#
# Ported from OpenVAS/Greenbone NVT 2009/gb_turnkeyforms_classifieds_auth_bypass_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.100032, GPL-2.0-only).
uid: 87aaa9a5-4b36-4572-a86a-75ace264b93b
name: "TurnkeyForms Local Classifieds Site_Admin Authentication Bypass (CVE-2008-6302)"
description: |
Tests whether the TurnkeyForms Local Classifieds administration panel,
classifieds/Site_Admin/admin.php, can be opened without logging in. In the
/localclassifieds/classifieds and /classifieds directories and in the web
root, the feed requests Site_Admin/admin.php without any session cookie and
without following redirects. The finding is reported when the reply is a
200 page titled "Classifieds Administration" that is the administration
panel itself rather than a login form (no password field, or a password
field alongside a logout link, as on a change-password form), and when
a request for a random, non-existent script in the same Site_Admin
directory does not return that same page, so a site that answers every
path with the panel title is not reported. The probe only reads the page
and changes nothing.
cves: [CVE-2008-6302]
cvss: 7.5
severity: high
category: auth-bypass
confidence_base: 0.30
tags: [turnkeyforms, local-classifieds, php, auth-bypass, admin-panel]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2008-6302"
- "https://www.exploit-db.com/exploits/7106"
# OpenVAS/Greenbone NASL 2009/gb_turnkeyforms_classifieds_auth_bypass_vuln.nasl (GPL-2.0-only)
steps:
- id: mint
action: script
code: '"noctis" + rand_hex(6) + ".php"'
store_as: ctl_name
# ── Loop group: every step below runs once per candidate install dir ─────
- id: init-adm
action: set_var
var_name: adm
var_value: {status: 0, body: ""}
loop:
over: ["/localclassifieds/classifieds", "/classifieds", ""]
var: dir
- id: init-ctl
action: set_var
var_name: ctl
var_value: {status: 0, body: ""}
- id: fetch-admin
action: http_request
method: GET
path: "{{dir}}/Site_Admin/admin.php"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
store_as: adm
# The panel itself: 200 and the panel title, and not a login form. A page
# with a password field counts as a login form unless it also offers a
# logout link (a panel page that carries a change-password form).
- id: panel
action: script
store_as: is_panel
code: |
adm.status == 200 && type_of(adm.body) == "string"
&& egrep("(?i)<title>\\s*Classifieds Administration\\s*</title>", adm.body) != ""
&& (egrep("(?i)<input[^>]*type\\s*=\\s*[\"']?password", adm.body) == ""
|| egrep("(?i)log\\s*-?\\s*out", adm.body) != "")
- id: fetch-control
action: http_request
method: GET
path: "{{dir}}/Site_Admin/{{ctl_name}}"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
condition: 'is_panel == true'
store_as: ctl
- id: verdict
action: script
store_as: proof
code: |
let ctl_hit = ctl.status == 200 && type_of(ctl.body) == "string"
&& egrep("(?i)<title>\\s*Classifieds Administration\\s*</title>", ctl.body) != "";
if is_panel == true && !ctl_hit { "Classifieds Administration panel served without authentication" } else { "" }
- id: report
action: match
source: proof
pattern: "^Classifieds Administration panel served without authentication$"
on_match:
finding:
title: "TurnkeyForms Local Classifieds Site_Admin Authentication Bypass (CVE-2008-6302)"
description: "The Local Classifieds administration panel (Site_Admin/admin.php) is served to a request that carries no administrator session: the page titled \"Classifieds Administration\" came back with no login form. Anyone who can reach the site can use the administration functions."
remediation: "Restrict access to the classifieds/Site_Admin directory (for example by IP address or HTTP authentication in the web server) and upgrade to a TurnkeyForms Local Classifieds release that checks for an administrator session in every Site_Admin script, or remove the application."
confidence_delta: 0.50
qod: 75
evidence: "GET {{dir}}/Site_Admin/admin.php without a session returned HTTP 200 with the Classifieds Administration panel rather than a login form; the control request {{dir}}/Site_Admin/{{ctl_name}} did not return that page."
stop: true