Campaign Enterprise — 1 vulnerability check
noctis ships 1 vulnerability check for Campaign Enterprise, covering 3 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Campaign Enterprise User-Edit.asp unauthenticated access and UID SQL injection
| CVE | CVE-2012-3820, CVE-2012-3822, CVE-2012-3824 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | sqli — SQL injection |
| Services | http, https |
| Detection | script, set_var, http_request, match · highest QoD 75 |
| Feed | tests/vulnerabilities/campaign-enterprise/campaign-enterprise-user-edit.yaml |
Campaign Enterprise (Arial Software e-mail marketing server, Campaign11.exe) before 11.0.551 serves its User-Edit.asp administration page to anonymous clients and builds its user query from the UID field without validation.
The check requests /User-Edit.asp without credentials and reports a reachable "Edit User" page. It then compares the page for UID=1 with the pages for "UID=1 AND n=n" (always true) and "UID=1 AND n=m" (always false) for random numbers: the injection is confirmed when the true page matches the plain page and the false page differs. Nothing is written and no data is extracted.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /User-Edit.asp - Parses / computes the next value with a Rhai script
- Checks
accessfor^HTTP 200→ finding QoD 75: Campaign Enterprise User-Edit.asp reachable without authentication - HTTP(S) request
GET /User-Edit.asp?UID=1 - HTTP(S) request
GET /User-Edit.asp?UID=1%20AND%20{{n.t}}={{n.t}} - HTTP(S) request
GET /User-Edit.asp?UID=1%20AND%20{{n.t}}={{n.f}} - HTTP(S) request
GET /User-Edit.asp?UID=1 - Parses / computes the next value with a Rhai script
- Checks
sqlifor^UID=1 AND→ finding QoD 75: Campaign Enterprise User-Edit.asp UID SQL injection
References:
- https://nvd.nist.gov/vuln/detail/CVE-2012-3820
- https://nvd.nist.gov/vuln/detail/CVE-2012-3822
- https://nvd.nist.gov/vuln/detail/CVE-2012-3824
- http://www.securityfocus.com/bid/56117
Feed source — tests/vulnerabilities/campaign-enterprise/campaign-enterprise-user-edit.yaml
# Campaign Enterprise (Arial Software, Campaign11.exe) < 11.0.551 — User-Edit.asp
# reachable without authentication and its UID field SQL injection.
#
# CVE mapping (NVD): CVE-2012-3820 = SQL injection in the UID field of User-Edit.asp
# (and SerialNumber of activate.asp); CVE-2012-3822 = User-Edit.asp reachable without
# authorisation, so user credentials can be enumerated; CVE-2012-3824 = pages served
# without authentication or authorisation. CVE-2012-3821 (activate.asp SerialNumber
# bypass) and CVE-2012-3823 (clear-text password storage) are not provable from a
# read-only request and are not reported. The tracking issue lists all five.
#
# Detection (QoD 75), read-only, no credentials sent:
# 1. GET /User-Edit.asp — HTTP 200, "<title>Campaign Enterprise", the "Edit User"
# form and the "Logout" link (admin page served to an anonymous client) →
# CVE-2012-3822 / CVE-2012-3824.
# 2. Boolean SQL injection on UID: the page for UID=1 is requested twice (stable
# check), then UID=1 AND <n>=<n> (true) and UID=1 AND <n>=<n+k> (false) with
# random n. The flaw is confirmed when the true page is identical to the plain
# UID=1 page and the false page differs → CVE-2012-3820. An application that
# validates UID returns the same page for all of them; one that errors returns
# a page different from UID=1 for the true condition too.
#
# Ported from OpenVAS/Greenbone NVT `2012/gb_campaign_enterprise_56117.nasl`
# (OID 1.3.6.1.4.1.25623.1.0.103586, GPL-2.0-only), which requests
# /User-Edit.asp?UID=1%20OR%201=1 and matches the page markers; this feed splits
# the unauthenticated access from the SQL injection and proves the injection with
# a true/false pair instead of a page that an OR condition cannot tell apart from
# plain access.
uid: ce5d54ef-c2b7-448c-88c9-9b1e424cc919
name: "Campaign Enterprise User-Edit.asp unauthenticated access and UID SQL injection"
description: |
Campaign Enterprise (Arial Software e-mail marketing server, Campaign11.exe)
before 11.0.551 serves its User-Edit.asp administration page to anonymous
clients and builds its user query from the UID field without validation.
The check requests /User-Edit.asp without credentials and reports a reachable
"Edit User" page. It then compares the page for UID=1 with the pages for
"UID=1 AND n=n" (always true) and "UID=1 AND n=m" (always false) for random
numbers: the injection is confirmed when the true page matches the plain
page and the false page differs. Nothing is written and no data is extracted.
cves: [CVE-2012-3820, CVE-2012-3822, CVE-2012-3824]
cvss: 7.5
severity: high
category: sqli
confidence_base: 0.30
tags: [campaign-enterprise, arial-software, asp, sqli, auth-bypass]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2012-3820"
- "https://nvd.nist.gov/vuln/detail/CVE-2012-3822"
- "https://nvd.nist.gov/vuln/detail/CVE-2012-3824"
- "http://www.securityfocus.com/bid/56117"
steps:
- id: gen
action: script
code: |
let a = rand_int(1000, 9999);
#{ t: a.to_string(), f: (a + rand_int(1, 50)).to_string() }
store_as: n
- id: init-access
action: set_var
var_name: access
var_value: ""
- id: init-sqli
action: set_var
var_name: sqli
var_value: ""
- id: init-r
action: set_var
var_name: r
var_value: {status: 0, body: ""}
- id: init-b1
action: set_var
var_name: b1
var_value: {status: 0, body: ""}
- id: init-b2
action: set_var
var_name: b2
var_value: {status: 0, body: ""}
- id: init-pt
action: set_var
var_name: pt
var_value: {status: 0, body: ""}
- id: init-pf
action: set_var
var_name: pf
var_value: {status: 0, body: ""}
- id: probe-access
action: http_request
method: GET
path: "/User-Edit.asp"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: r
- id: check-access
action: script
code: |
let b = if type_of(r.body) == "string" { r.body } else { "" };
if r.status == 200 && ereg("(?i)<title>Campaign Enterprise", b) && ereg("Edit User", b)
&& (ereg(">Logout</a>", b) || ereg("Admin Rights", b)) {
"HTTP 200, " + b.len().to_string() + " bytes"
} else { "" }
store_as: access
- id: report-access
action: match
source: access
pattern: "^HTTP 200"
condition: 'access != ""'
on_match:
finding:
title: "Campaign Enterprise User-Edit.asp reachable without authentication"
description: "The Campaign Enterprise administration page User-Edit.asp (user editor with its Logout link) was returned to a request carrying no credentials. Anyone can read and enumerate user accounts and their credentials (CVE-2012-3822, CVE-2012-3824)."
remediation: "Upgrade Campaign Enterprise to 11.0.551 or later, which requires authentication for the administration pages, and restrict the management port to trusted hosts."
cves: [CVE-2012-3822, CVE-2012-3824]
confidence_delta: 0.40
qod: 75
evidence: "GET /User-Edit.asp without credentials: {{access}}, Campaign Enterprise user editor served"
- id: probe-base-1
action: http_request
method: GET
path: "/User-Edit.asp?UID=1"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'access != ""'
store_as: b1
- id: probe-true
action: http_request
method: GET
path: "/User-Edit.asp?UID=1%20AND%20{{n.t}}={{n.t}}"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'access != ""'
store_as: pt
- id: probe-false
action: http_request
method: GET
path: "/User-Edit.asp?UID=1%20AND%20{{n.t}}={{n.f}}"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'access != ""'
store_as: pf
- id: probe-base-2
action: http_request
method: GET
path: "/User-Edit.asp?UID=1"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'access != ""'
store_as: b2
- id: check-sqli
action: script
condition: 'access != ""'
code: |
let s1 = if type_of(b1.body) == "string" { b1.body } else { "" };
let s2 = if type_of(b2.body) == "string" { b2.body } else { "" };
let st = if type_of(pt.body) == "string" { pt.body } else { "" };
let sf = if type_of(pf.body) == "string" { pf.body } else { "" };
if b1.status == 200 && pt.status == 200 && pf.status == 200 && s1 == s2 && st == s1 && sf != s1 {
"UID=1 AND " + n.t + "=" + n.t + " matches UID=1 (" + s1.len().to_string() + " bytes); UID=1 AND " + n.t + "=" + n.f + " differs (" + sf.len().to_string() + " bytes)"
} else { "" }
store_as: sqli
- id: report-sqli
action: match
source: sqli
pattern: "^UID=1 AND"
condition: 'sqli != ""'
on_match:
finding:
title: "Campaign Enterprise User-Edit.asp UID SQL injection"
description: "The UID parameter of Campaign Enterprise User-Edit.asp is spliced into the SQL query: appending an always-true condition returned the same page as UID=1, while an always-false condition with random numbers returned a different page. An attacker can run arbitrary SQL against the application database (CVE-2012-3820)."
remediation: "Upgrade Campaign Enterprise to 11.0.551 or later, which validates the UID field, and restrict the management port to trusted hosts."
cves: [CVE-2012-3820]
confidence_delta: 0.45
qod: 75
evidence: "{{sqli}}"