Novell GroupWise — 2 vulnerability checks

noctis ships 2 vulnerability checks for Novell GroupWise, 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 GroupWise 2014 < SP1 admin console FileUploadServlet unauthenticated file access

CVECVE-2014-0600
Severityhigh · CVSS 7.8
Categoryfile-read — File read
Serviceshttp, https
Detectionscript, set_var, http_request, match · highest QoD 75
Feedtests/vulnerabilities/novell-groupwise/CVE-2014-0600.yaml

Tests the Novell GroupWise 2014 Administration console for the unauthenticated FileUploadServlet flaw fixed in GroupWise 2014 SP1 (CVE-2014-0600), which lets anyone read, write or delete arbitrary files on the server through the poLibMaintenanceFileSave parameter. The test sends one multipart POST to /gwadmin-console/gwAdminConsole/fileUpload whose only field is poLibMaintenanceFileSave with a random value, without logging in. It reports the host when the servlet answers this anonymous request with its GWCheck options download (a Content-Disposition attachment named gwcheck.opt) instead of sending the client to the console login page. No file path is sent and no file on the server is read or deleted.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request POST /gwadmin-console/gwAdminConsole/fileUpload with a crafted body
  3. Parses / computes the next value with a Rhai script
  4. Checks v.cd for (?i)filename="gwcheck\.opt" → finding QoD 75: Novell GroupWise admin console FileUploadServlet reachable without authentication (CVE-2014-0600)

References:

Feed source — tests/vulnerabilities/novell-groupwise/CVE-2014-0600.yaml
# Novell GroupWise 2014 < SP1 — Administration console FileUploadServlet unauthenticated
# file access (CVE-2014-0600, ZDI-14-296 / ZDI-CAN-2287)
#
# The GroupWise 2014 Administration service (admin console, default HTTPS port 9710)
# maps FileUploadServlet at /gwadmin-console/gwAdminConsole/fileUpload. Before 2014 SP1
# the servlet handles the poLibMaintenanceFileSave form field (the library-maintenance
# "save GWCheck options" feature) without any session, and the same handler lets an
# attacker read, write and delete arbitrary files. SP1 puts the servlet behind the
# console login: an anonymous request is sent to login.jsp.
#
# Probe (as the reference checks do, no file path is ever sent, nothing is read or
# deleted): one multipart POST whose only part is poLibMaintenanceFileSave carrying a
# per-run random value. A vulnerable servlet answers it anonymously with the GWCheck
# options download (Content-Disposition filename="gwcheck.opt"); a fixed or
# unauthenticated-protected one redirects to / mentions login.jsp. The finding requires
# the gwcheck.opt attachment name in the Content-Disposition header (not just anywhere
# in the page) and no login.jsp in the Location header or body.
#
# CVSS: NVD v2 7.8 (AV:N/AC:L/Au:N/C:C/I:N/A:N); NVD has no v3 score.
#
# Ported from OpenVAS/Greenbone NVT 2014/gb_novell_groupwise_69424.nasl
# (OID 1.3.6.1.4.1.25623.1.0.105078, GPL-2.0-only). Deviations: the NASL needs a prior
# product detection on the admin_console port; this feed probes every http/https
# service directly. The NASL also accepts "x-download" / gwcheck.opt anywhere in the
# raw reply; here the attachment name must be in Content-Disposition, which closes a
# false positive on pages that merely contain those words.
uid: 4b55a197-ded1-456e-b9bd-b7319b4b466d
name: "Novell GroupWise 2014 < SP1 admin console FileUploadServlet unauthenticated file access (CVE-2014-0600)"
description: |
  Tests the Novell GroupWise 2014 Administration console for the unauthenticated
  FileUploadServlet flaw fixed in GroupWise 2014 SP1 (CVE-2014-0600), which lets
  anyone read, write or delete arbitrary files on the server through the
  poLibMaintenanceFileSave parameter. The test sends one multipart POST to
  /gwadmin-console/gwAdminConsole/fileUpload whose only field is
  poLibMaintenanceFileSave with a random value, without logging in. It reports the
  host when the servlet answers this anonymous request with its GWCheck options
  download (a Content-Disposition attachment named gwcheck.opt) instead of sending
  the client to the console login page. No file path is sent and no file on the
  server is read or deleted.
cves: [CVE-2014-0600]
cvss: 7.8
severity: high
confidence_base: 0.30
category: file-read
tags: [novell, groupwise, admin-console, file-read, file-access, unauthenticated, web-abuse]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2014-0600"
  - "https://www.zerodayinitiative.com/advisories/ZDI-14-296/"
  - "https://www.novell.com/support/kb/doc.php?id=7015566"
  - "https://www.securityfocus.com/bid/69424"

steps:
  - id: mint
    action: script
    code: '"NOCTIS_" + rand_hex(12) + "_NOCTIS"'
    store_as: mark

  - id: init-up
    action: set_var
    var_name: up
    var_value: {status: 0, body: null, headers: {}}

  - id: upload
    action: http_request
    method: POST
    path: "/gwadmin-console/gwAdminConsole/fileUpload"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    headers:
      Accept: "*/*"
      Content-Type: "multipart/form-data; boundary=----------------------noctisGW20140600"
    body: "------------------------noctisGW20140600\r\nContent-Disposition: form-data; name=\"poLibMaintenanceFileSave\"\r\n\r\n{{mark}}\r\n------------------------noctisGW20140600--\r\n"
    store_as: up

  - id: verify
    action: script
    code: |
      let h = up.headers;
      let cd = if type_of(h) == "map" && "content-disposition" in h { h["content-disposition"] } else { "" };
      let loc = if type_of(h) == "map" && "location" in h { h["location"] } else { "" };
      let b = if type_of(up.body) == "string" { up.body } else { "" };
      let ct = if type_of(h) == "map" && "content-type" in h { h["content-type"] } else { "" };
      let ok = up.status >= 200 && up.status < 300
        && stridx(tolower(cd), "filename=\"gwcheck.opt\"") >= 0
        && stridx(loc, "login.jsp") < 0
        && stridx(b, "login.jsp") < 0;
      #{ hit: ok, cd: cd, ct: ct }
    store_as: v

  - id: report
    action: match
    source: v.cd
    pattern: "(?i)filename=\"gwcheck\\.opt\""
    condition: "v.hit == true"
    on_match:
      finding:
        title: "Novell GroupWise admin console FileUploadServlet reachable without authentication (CVE-2014-0600)"
        confidence_delta: 0.55
        qod: 75
        evidence: "Anonymous multipart POST /gwadmin-console/gwAdminConsole/fileUpload (poLibMaintenanceFileSave={{mark}}) was answered by the servlet itself: HTTP {{up.status}}, Content-Type: {{v.ct}}, Content-Disposition: {{v.cd}} — no redirect to login.jsp"
        remediation: "Upgrade Novell GroupWise 2014 to SP1 or later (KB 7015566), and restrict network access to the GroupWise Administration console (port 9710) to administrators."

Novell GroupWise Servlet Gateway ServletManager Default Credentials (HTTP)

CVECVE-2001-1195
Severityhigh · CVSS 7.5
Categorydefault-credentials — Default credentials
Serviceshttp, https
Detectionset_var, tcp_connect, script, match · highest QoD 97
Feedtests/vulnerabilities/novell-groupwise/CVE-2001-1195.yaml

The Novell GroupWise 5.5 and 6.0 Servlet Gateway installs its servlet manager (/servlet/ServletManager) with the built-in account servlet and password manager. The check logs in to that page with HTTP Basic servlet:manager and requires the authenticated servlet-manager page in an HTTP 200 reply ("ServletManager" and "Servlet information"). It then requests the same page with a random password and reports only when that one is refused, so the finding proves the default credential rather than a page that ignores the password. Nothing is changed on the server.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /servlet/ServletManager HTTP/1.0
  2. Parses / computes the next value with a Rhai script
  3. Parses / computes the next value with a Rhai script
  4. Raw TCP (TLS on HTTPS), sent verbatim: GET /servlet/ServletManager HTTP/1.0
  5. Parses / computes the next value with a Rhai script
  6. Checks login.banner for ^HTTP/1\.[01] 200 → finding QoD 97: Logged in to the Novell GroupWise Servlet Gateway servlet manager with the default credential servlet/manager: /servlet/ServletManager retu…

References:

Feed source — tests/vulnerabilities/novell-groupwise/CVE-2001-1195.yaml
# Novell GroupWise 5.5 / 6.0 Servlet Gateway — ServletManager default account
# servlet/manager (CVE-2001-1195).
#
# The Servlet Gateway shipped with GroupWise WebAccess protects its servlet
# administration page /servlet/ServletManager with HTTP Basic auth and a built-in
# account servlet / manager that installations rarely change. With it, anyone can
# manage the servlets the gateway runs.
#
# Ported from OpenVAS/Greenbone NVT pre2008/novell_groupwise_servletmanager_default_password.nasl
# (OID 1.3.6.1.4.1.25623.1.0.12122, GPL-2.0-only):
#   GET /servlet/ServletManager with `Authorization: Basic servlet:manager`; the reply
#   must contain "ServletManager" and "Servlet information" (the authenticated
#   servlet-manager page, a read-only post-login proof).
#
# Deviations from the NASL (stronger detection, stated in the PR):
#   * The login reply must be HTTP 200 (the NASL looks for the two words anywhere,
#     so a 401 page or a search page quoting them would be reported).
#   * Accept-any-password control: after the default login worked, the same page is
#     requested with servlet and a random password. If that also returns the manager
#     page, the server does not check the password (honeypot, broken or absent auth)
#     and the feed reports nothing. The control is only sent after the default login
#     succeeded, so a hardened gateway sees exactly one failed login.
#
# CVSS: NVD v2 7.5 (AV:N/AC:L/Au:N/C:P/I:P/A:P); NVD has no v3 score.
# Nothing is changed on the target.
uid: a7ec0642-f8df-48f7-bd07-61970e2fdb10
name: "Novell GroupWise Servlet Gateway ServletManager Default Credentials (HTTP)"
description: |
  The Novell GroupWise 5.5 and 6.0 Servlet Gateway installs its servlet manager
  (/servlet/ServletManager) with the built-in account servlet and password
  manager. The check logs in to that page with HTTP Basic servlet:manager and
  requires the authenticated servlet-manager page in an HTTP 200 reply
  ("ServletManager" and "Servlet information"). It then requests the same page
  with a random password and reports only when that one is refused, so the
  finding proves the default credential rather than a page that ignores the
  password. Nothing is changed on the server.
cves: [CVE-2001-1195]
cvss: 7.5
severity: high
category: default-credentials
confidence_base: 0.30
tags: [openvas-migrated, novell, groupwise, servlet-gateway, default-credentials, http]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2001-1195"
  - "OpenVAS/Greenbone NASL pre2008/novell_groupwise_servletmanager_default_password.nasl (GPL-2.0-only)"

steps:
  - id: init-authed
    action: set_var
    var_name: authed
    var_value: false
  - id: init-anycred
    action: set_var
    var_name: anycred
    var_value: false
  # Pre-init the stored results the scripts read: a failed connection leaves
  # store_as unset and an undefined variable would abort the test.
  - id: init-login
    action: set_var
    var_name: login
    var_value: {banner: null}
  - id: init-ctrl
    action: set_var
    var_name: ctrl
    var_value: {banner: null}

  # 1. Default login (servlet:manager) on the servlet-manager page.
  - id: login
    action: tcp_connect
    port: "{{port}}"
    send: "GET /servlet/ServletManager HTTP/1.0\r\nHost: {{target_host}}\r\nAuthorization: Basic c2VydmxldDptYW5hZ2Vy\r\n\r\n"
    store_as: login
  - id: login-check
    action: script
    code: |
      let b = login.banner;
      type_of(b) == "string"
        && ereg("^HTTP/1\\.[01] 200", b)
        && b.contains("ServletManager")
        && b.contains("Servlet information")
    store_as: authed

  # 2. Control — servlet with a random password must be refused.
  - id: control-auth
    action: script
    code: 'base64_encode("servlet:" + rand_hex(8))'
    store_as: bad_auth
    condition: "authed"
  - id: control
    action: tcp_connect
    port: "{{port}}"
    send: "GET /servlet/ServletManager HTTP/1.0\r\nHost: {{target_host}}\r\nAuthorization: Basic {{bad_auth}}\r\n\r\n"
    store_as: ctrl
    condition: "authed"
  - id: control-check
    action: script
    code: |
      let b = ctrl.banner;
      type_of(b) == "string"
        && ereg("^HTTP/1\\.[01] 200", b)
        && b.contains("Servlet information")
    store_as: anycred
    condition: "authed"

  - id: detect-default
    action: match
    source: login.banner
    pattern: '^HTTP/1\.[01] 200'
    condition: "authed && !anycred"
    on_match:
      finding:
        confidence_delta: 0.65
        qod: 97
        evidence: "Logged in to the Novell GroupWise Servlet Gateway servlet manager with the default credential servlet/manager: /servlet/ServletManager returned the authenticated page (ServletManager, Servlet information) while a random password was refused."
      stop: true

View these feeds on GitHub