vBSEO — 1 vulnerability check

noctis ships 1 vulnerability check for vBSEO, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

vBSEO 3.5.0 - 3.6.0 proc_deutf() remote code execution

CVECVE-2012-5223
Severityhigh · CVSS 7.5
Categoryrce — Remote code execution
Serviceshttp, https
Detectionset_var, http_request, script, match · highest QoD 70
Feedtests/vulnerabilities/vbseo/CVE-2012-5223.yaml

Detects vBulletin forums running vBSEO 3.5.0 to 3.6.0, whose proc_deutf() routine evaluates attacker-supplied text received by vbseocp.php. The feed requests the forum home page (/ and /forum/) and reads the version printed in the "Search Engine Optimization by vBSEO" footer. A version from 3.5.0 up to and including 3.6.0 is reported. No exploit request is sent, so the finding is a version fingerprint; forums that hide the footer are not reported, and the footer does not show whether a patch level has been applied.

How noctis detects it

  1. HTTP(S) request GET /
  2. HTTP(S) request GET /forum/
  3. Parses / computes the next value with a Rhai script
  4. Checks vb.version for ^[0-9]+\.[0-9]+\.[0-9]+$ → finding QoD 70: vBSEO version … printed in the forum footer (affected range 3.5.0 - 3.6.0)

References:

Feed source — tests/vulnerabilities/vbseo/CVE-2012-5223.yaml
# vBSEO 3.5.0 - 3.6.0 proc_deutf() code execution — CVE-2012-5223
#
# vbseocp.php feeds the char_repl value to an evaluated expression, so a crafted
# request runs PHP on the server. This feed deliberately does NOT send that request:
# it only identifies vBSEO and its version from the public forum footer (QoD 70).
uid: 6b0f2d4e-8c1a-4f3b-9a57-2e9d1c7b4a60
name: "vBSEO 3.5.0 - 3.6.0 proc_deutf() remote code execution (CVE-2012-5223)"
description: |
  Detects vBulletin forums running vBSEO 3.5.0 to 3.6.0, whose proc_deutf() routine
  evaluates attacker-supplied text received by vbseocp.php.
  The feed requests the forum home page (/ and /forum/) and reads the version printed
  in the "Search Engine Optimization by vBSEO" footer. A version from 3.5.0 up to and
  including 3.6.0 is reported. No exploit request is sent, so the finding is a version
  fingerprint; forums that hide the footer are not reported, and the footer does not
  show whether a patch level has been applied.
category: rce
cves: [CVE-2012-5223]
cvss: 7.5  # NVD publishes only a v2 score for this CVE
severity: high
confidence_base: 0.30
tags: [vbseo, vbulletin, forum, php, version]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2012-5223"
  - "https://www.vbseo.com/"

steps:
  - id: init-root
    action: set_var
    var_name: root
    var_value: {status: 0, headers: {}, body: ""}

  - id: init-forum
    action: set_var
    var_name: forum
    var_value: {status: 0, headers: {}, body: ""}

  - id: probe-root
    action: http_request
    method: GET
    path: /
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: root

  - id: probe-forum
    action: http_request
    method: GET
    path: /forum/
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: forum

  - id: parse
    action: script
    store_as: vb
    code: |
      let body = "";
      if root.status == 200 { body += root.body; }
      if forum.status == 200 { body += forum.body; }
      let m = eregmatch("(?i)Search Engine Optimization by\\s*(?:<[^>]*>\\s*)*vBSEO\\s+([0-9]+)\\.([0-9]+)\\.([0-9]+)", body);
      if type_of(m) != "array" || m.len() < 4 {
        #{ ok: false, vuln: false, version: "" }
      } else {
        let a = int(m[1]);
        let b = int(m[2]);
        let c = int(m[3]);
        let inrange = a == 3 && ((b == 5) || (b == 6 && c == 0));
        #{ ok: true, vuln: inrange, version: m[1] + "." + m[2] + "." + m[3] }
      }

  - id: detect
    action: match
    source: vb.version
    pattern: "^[0-9]+\\.[0-9]+\\.[0-9]+$"
    condition: "vb.ok == true && vb.vuln == true"
    on_match:
      finding:
        confidence_delta: 0.4
        qod: 70
        evidence: "vBSEO version {{vb.version}} printed in the forum footer (affected range 3.5.0 - 3.6.0)"
      stop: true

View these feeds on GitHub