Ibm Gcm — 1 vulnerability check
noctis ships 1 vulnerability check for Ibm Gcm, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
IBM GCM16/GCM32 Global Console Manager avctalert.php key Reflected Cross-Site Scripting
| CVE | CVE-2014-3080 |
|---|---|
| Severity | medium · CVSS 4.3 |
| Category | xss — XSS |
| Services | http, https |
| Detection | script, http_request, set_var, match · highest QoD 75 |
| Feed | tests/vulnerabilities/ibm-gcm/CVE-2014-3080.yaml |
Tests IBM GCM16 and GCM32 Global Console Manager KVM switches (firmware before 1.20.20.23447) for the reflected cross-site scripting in the key parameter of avctalert.php. The feed first checks that the login page belongs to a GCM switch, then requests avctalert.php?key=<script>alert(/marker/)</script>, where the marker is random for each scan, and reports the switch when that exact script element comes back unescaped in a 200 reply. A control request sending the same payload to a random, absent .php script must not reflect it, so a server that echoes any parameter is not reported. The script is harmless and only reaches the scanner.
How noctis detects it
- Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /login.php - HTTP(S) request
GET /avctalert.php?key=%3Cscript%3Ealert(/{{sc.marker}}/)%3C/script%3E - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /{{sc.marker}}.php?key=%3Cscript%3Ealert(/{{sc.marker}}/)%3C/script%3E - Parses / computes the next value with a Rhai script
- Checks
hitfor^reflected$→ finding QoD 75: IBM GCM16/GCM32 Global Console Manager avctalert.php key Reflected Cross-Site Scripting (CVE-2014-3080)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2014-3080
- https://www.securityfocus.com/bid/68950
- http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004819
Feed source — tests/vulnerabilities/ibm-gcm/CVE-2014-3080.yaml
# IBM GCM16 / GCM32 Global Console Manager avctalert.php key reflected XSS — CVE-2014-3080
#
# Firmware before 1.20.20.23447 of the IBM GCM16 and GCM32 KVM switches prints
# the key parameter of avctalert.php, and the query string of kvm.cgi, in the
# page without escaping (NVD: "multiple cross-site scripting vulnerabilities
# ... via (1) the query string to kvm.cgi or (2) the key parameter to
# avctalert.php"). The feed covers the unauthenticated avctalert.php vector;
# the sibling CVE-2014-3081 / CVE-2014-3085 (prodtest.php / systest.php)
# need a login and are not part of this feed.
#
# Detection (benign — the injected script only names a random marker and is
# shown to nobody but the scanner): the login page must carry the GCM brand
# (">GCM"), then GET /avctalert.php?key=<script>alert(/<marker>/)</script>
# and look for that exact, unescaped script element in a 200 reply (QoD 75).
#
# Improvements over the reference check:
# - random marker per scan instead of the fixed alert(document.cookie), so
# a page that always shows a fixed script is not reported;
# - a control request sends the same payload to a random, absent .php
# script: a server that reflects it there too is a generic parameter
# reflector, not a GCM, and is not reported (fail-closed: no control
# reply, no finding).
#
# CVSS: CVE-2014-3080 v2 4.3 (NVD has no v3 score).
#
# Ported from OpenVAS/Greenbone NVT 2014/gb_ibm_global_console_manager_mult_xss_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.804775, GPL-2.0-only).
uid: 22932e30-a0ab-4da6-b0c2-437b9275014d
name: "IBM GCM16/GCM32 Global Console Manager avctalert.php key Reflected Cross-Site Scripting (CVE-2014-3080)"
description: |
Tests IBM GCM16 and GCM32 Global Console Manager KVM switches (firmware
before 1.20.20.23447) for the reflected cross-site scripting in the key
parameter of avctalert.php. The feed first checks that the login page
belongs to a GCM switch, then requests
avctalert.php?key=<script>alert(/marker/)</script>, where the marker is
random for each scan, and reports the switch when that exact script element
comes back unescaped in a 200 reply. A control request sending the same
payload to a random, absent .php script must not reflect it, so a server
that echoes any parameter is not reported. The script is harmless and only
reaches the scanner.
cves: [CVE-2014-3080]
cvss: 4.3
severity: medium
category: xss
confidence_base: 0.30
tags: [ibm, gcm, gcm16, gcm32, kvm, console-manager, xss, reflected-xss, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2014-3080"
- "https://www.securityfocus.com/bid/68950"
- "http://www-01.ibm.com/support/docview.wss?uid=ssg1S1004819"
# OpenVAS/Greenbone NASL 2014/gb_ibm_global_console_manager_mult_xss_vuln.nasl (GPL-2.0-only)
steps:
- id: gen-marker
action: script
code: |
let m = "noctis" + oob_token.sub_string(0, 8) + oob_token.sub_string(9, 4);
#{ marker: m, want: "<script>alert(/" + m + "/)</script>" }
store_as: sc
- id: login-page
action: http_request
method: GET
path: "/login.php"
port: "{{port}}"
tls_insecure: true
timeout_secs: 15
store_as: login_r
- id: init-probe-r
action: set_var
var_name: probe_r
var_value: {status: 0, body: ""}
- id: init-ctrl-r
action: set_var
var_name: ctrl_r
var_value: {status: 0, body: ""}
- id: init-hit
action: set_var
var_name: hit
var_value: ""
- id: init-ctrl-clean
action: set_var
var_name: ctrl_clean
var_value: false
- id: probe
action: http_request
method: GET
path: "/avctalert.php?key=%3Cscript%3Ealert(/{{sc.marker}}/)%3C/script%3E"
port: "{{port}}"
tls_insecure: true
timeout_secs: 15
condition: 'login_r.status == 200 && login_r.body.contains(">GCM")'
store_as: probe_r
- id: check
action: script
code: |
let body = if type_of(probe_r.body) == "string" { probe_r.body } else { "" };
if probe_r.status == 200 && body.contains(sc.want) { "reflected" } else { "" }
store_as: hit
- id: control
action: http_request
method: GET
path: "/{{sc.marker}}.php?key=%3Cscript%3Ealert(/{{sc.marker}}/)%3C/script%3E"
port: "{{port}}"
tls_insecure: true
timeout_secs: 15
condition: 'hit != ""'
store_as: ctrl_r
- id: control-check
action: script
condition: 'hit != ""'
code: |
let body = if type_of(ctrl_r.body) == "string" { ctrl_r.body } else { "" };
ctrl_r.status != 0 && !body.contains(sc.want)
store_as: ctrl_clean
- id: report
action: match
source: hit
pattern: "^reflected$"
condition: "ctrl_clean == true"
on_match:
finding:
title: "IBM GCM16/GCM32 Global Console Manager avctalert.php key Reflected Cross-Site Scripting (CVE-2014-3080)"
description: "An unauthenticated request to avctalert.php with the key parameter set to a script element carrying a random marker returned that script element unescaped in the page, while an absent script on the same switch did not reflect it. The GCM firmware (before 1.20.20.23447) does not escape the parameter: an attacker can send an administrator a link that runs any script in the console manager's origin, for example to steal the session cookie."
remediation: "Upgrade the IBM GCM16/GCM32 firmware to 1.20.20.23447 or later and do not expose the management interface to untrusted networks."
confidence_delta: 0.50
qod: 75
evidence: "/avctalert.php?key=<script>alert(/{{sc.marker}}/)</script> was reflected unescaped: {{sc.want}}; the same payload sent to an absent script (/{{sc.marker}}.php) was not"
stop: true