Novell ZENworks Asset Management — 1 vulnerability check

noctis ships 1 vulnerability check for Novell ZENworks Asset Management, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

Novell ZENworks Asset Management rtrlet hardcoded maintenance credentials

CVECVE-2012-4933
Severityhigh · CVSS 7.8
Categorydefault-credentials — Default credentials
Serviceshttp, https
Detectionscript, set_var, http_request, match · highest QoD 97
Feedtests/vulnerabilities/novell-zenworks-asset-management/CVE-2012-4933.yaml

Novell ZENworks Asset Management 7.5 ships its rtrlet servlet (/rtrlet/rtr) with a hardcoded maintenance account, Ivanhoe / Scott, which unlocks the GetConfigInfo_password and GetFile_password calls. Anyone who can reach the web server can read the server configuration, including the database account and password, and download arbitrary files. The test sends the GetConfigInfo_password call with the hardcoded account and checks that the reply is the "Rtrlet Servlet Configuration Parameters" page with the DBName, DBUser and DBPassword fields. It then sends the same call with a random password: the finding is confirmed when that request is refused. When the random password is accepted too, the configuration page is reported as readable without a valid password, with a lower confidence. The configuration values are never copied into the finding. The test only reads the configuration page; nothing is changed on the target.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request POST /rtrlet/rtr with a crafted body
  3. Parses / computes the next value with a Rhai script
  4. HTTP(S) request POST /rtrlet/rtr with a crafted body
  5. Parses / computes the next value with a Rhai script
  6. Checks summary for Rtrlet Servlet Configuration Parameters → finding QoD 97: POST /rtrlet/rtr GetConfigInfo_password with the hardcoded account Ivanhoe/Scott returned the rtrlet configuration page (DBName, DBUser, DB…
  7. Checks summary for Rtrlet Servlet Configuration Parameters → finding QoD 75: POST /rtrlet/rtr GetConfigInfo_password with the hardcoded account Ivanhoe/Scott returned the rtrlet configuration page (DBName, DBUser, DB…
  8. Checks summary for Rtrlet Servlet Configuration Parameters → finding QoD 70: Novell ZENworks Asset Management rtrlet configuration readable without a valid password

References:

Feed source — tests/vulnerabilities/novell-zenworks-asset-management/CVE-2012-4933.yaml
# Novell ZENworks Asset Management 7.5 — hardcoded maintenance credentials in
# the rtrlet servlet (CVE-2012-4933, CERT VU#332412).
#
# Ported from OpenVAS/Greenbone NVT
# 2012/gb_novell_zenworks_asset_mangment_hardcoded_credentials.nasl
# (OID 1.3.6.1.4.1.25623.1.0.902928, GPL-2.0-only): POST the
# GetConfigInfo_password maintenance call to /rtrlet/rtr with the hardcoded
# Ivanhoe/Scott pair and flag the host when the reply holds
# "Rtrlet Servlet Configuration Parameters", "DBName", "DBUser", "ZENWorks"
# and "DBPassword". Same request as the Metasploit module
# auxiliary/scanner/http/zenworks_assetmanagement_getconfig.
#
# Deviations from the NASL (stronger detection, documented in the PR):
#   * Control request: the same call with a random password must NOT return
#     the configuration page. Only then does the finding prove the hardcoded
#     credentials (QoD 97). A page that also answers the random password is
#     reported on its own, at QoD 70, as configuration readable without a
#     valid password (a honeypot or a canned page cannot reach QoD 97). No
#     answer to the control keeps the finding at QoD 75.
#   * The configuration page carries the database account and its password:
#     the finding never quotes the reply. The match runs on a fixed summary
#     string and the evidence only names the fields that were present.
#
# Benign: read-only maintenance call; nothing is changed on the target.
# category: default-credentials (logs in with a hardcoded account).
uid: d351c52e-700f-4137-91e7-cafb18b362b8
name: "Novell ZENworks Asset Management rtrlet hardcoded maintenance credentials (CVE-2012-4933)"
description: |
  Novell ZENworks Asset Management 7.5 ships its rtrlet servlet (/rtrlet/rtr)
  with a hardcoded maintenance account, Ivanhoe / Scott, which unlocks the
  GetConfigInfo_password and GetFile_password calls. Anyone who can reach the
  web server can read the server configuration, including the database
  account and password, and download arbitrary files. The test sends the
  GetConfigInfo_password call with the hardcoded account and checks that the
  reply is the "Rtrlet Servlet Configuration Parameters" page with the
  DBName, DBUser and DBPassword fields. It then sends the same call with a
  random password: the finding is confirmed when that request is refused.
  When the random password is accepted too, the configuration page is
  reported as readable without a valid password, with a lower confidence.
  The configuration values are never copied into the finding. The test only
  reads the configuration page; nothing is changed on the target.
cves: [CVE-2012-4933]
cvss: 7.8
severity: high
category: default-credentials
confidence_base: 0.25
tags: [novell, zenworks, zenworks-asset-management, rtrlet, hardcoded-credentials, default-credentials, information-disclosure]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2012-4933"
  - "https://www.kb.cert.org/vuls/id/332412"
  - "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/zenworks_assetmanagement_getconfig.rb"

steps:
  - id: gen
    action: script
    store_as: proof
    code: '#{ ctl_pw: "noctis" + rand_str(12) }'

  - id: init-cfg
    action: set_var
    var_name: cfg_ok
    var_value: false

  - id: init-login
    action: set_var
    var_name: login
    var_value: {status: 0, body: ""}

  - id: init-ctl
    action: set_var
    var_name: ctl
    var_value: {status: 0, body: ""}

  - id: init-verdict
    action: set_var
    var_name: verdict
    var_value: {answered: false, rejected: false, accepted: false}

  # Fixed text matched by the reporting steps: the reply itself holds the
  # database password and is never put in a finding.
  - id: init-summary
    action: set_var
    var_name: summary
    var_value: "Rtrlet Servlet Configuration Parameters page returned (DBName, DBUser, DBPassword present; values not recorded)"

  # ------------------------------------------------ hardcoded account
  - id: login
    action: http_request
    method: POST
    path: /rtrlet/rtr
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      Content-Type: "application/x-www-form-urlencoded"
    body: "kb=&file=&absolute=&maintenance=GetConfigInfo_password&username=Ivanhoe&password=Scott&send=Submit"
    store_as: login

  - id: check-login
    action: script
    store_as: cfg_ok
    code: |
      if login.status != 200 || type_of(login.body) != "string" { return false; }
      let b = login.body;
      b.contains("Rtrlet Servlet Configuration Parameters") && b.contains("DBName")
        && b.contains("DBUser") && b.contains("DBPassword")
        && tolower(b).contains("zenworks")

  # ------------------------------------------------ random-password control
  - id: control
    action: http_request
    method: POST
    path: /rtrlet/rtr
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    condition: "cfg_ok == true"
    headers:
      Content-Type: "application/x-www-form-urlencoded"
    body: "kb=&file=&absolute=&maintenance=GetConfigInfo_password&username=Ivanhoe&password={{proof.ctl_pw}}&send=Submit"
    store_as: ctl

  - id: check-control
    action: script
    condition: "cfg_ok == true"
    store_as: verdict
    code: |
      // A rate limit or server error is not a refusal of the password.
      let answered = ctl.status >= 200 && ctl.status < 500 && ctl.status != 429;
      let page = answered && type_of(ctl.body) == "string"
        && ctl.body.contains("Rtrlet Servlet Configuration Parameters");
      #{ answered: answered, rejected: answered && !page, accepted: page }

  # ------------------------------------------------ findings
  - id: report-confirmed
    action: match
    condition: "cfg_ok == true && verdict.rejected == true"
    source: summary
    pattern: "Rtrlet Servlet Configuration Parameters"
    on_match:
      stop: true
      finding:
        confidence_delta: 0.70
        qod: 97
        evidence: "POST /rtrlet/rtr GetConfigInfo_password with the hardcoded account Ivanhoe/Scott returned the rtrlet configuration page (DBName, DBUser, DBPassword fields; values not recorded). The same call with a random password was refused (HTTP {{ctl.status}})."

  - id: report-no-control
    action: match
    condition: "cfg_ok == true && verdict.answered == false"
    source: summary
    pattern: "Rtrlet Servlet Configuration Parameters"
    on_match:
      stop: true
      finding:
        confidence_delta: 0.50
        qod: 75
        evidence: "POST /rtrlet/rtr GetConfigInfo_password with the hardcoded account Ivanhoe/Scott returned the rtrlet configuration page (DBName, DBUser, DBPassword fields; values not recorded). The random-password control got no usable answer (HTTP {{ctl.status}}, 0 = none)."

  - id: report-no-password
    action: match
    condition: "cfg_ok == true && verdict.accepted == true"
    source: summary
    pattern: "Rtrlet Servlet Configuration Parameters"
    on_match:
      stop: true
      finding:
        title: "Novell ZENworks Asset Management rtrlet configuration readable without a valid password"
        confidence_delta: 0.45
        qod: 70
        evidence: "POST /rtrlet/rtr GetConfigInfo_password returned the rtrlet configuration page (DBName, DBUser, DBPassword fields; values not recorded) both with the hardcoded account Ivanhoe/Scott and with a random password."

View these feeds on GitHub