TELESTAR — 2 vulnerability checks

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

← All products · Feeds on GitHub

Magic AirMusic internet radio web control without authentication

CVECVE-2019-13474
Severitycritical · CVSS 9.8
Categoryexposure — Exposure
Serviceshttp, https
Detectionscript, set_var, http_request, match · highest QoD 75
Feedtests/vulnerabilities/telestar/CVE-2019-13474.yaml

Tests internet radios running the Magic AirMusic web interface (TELESTAR Bobs Rock Radio, Dabman D10 / i30 Stereo, Imperial i110-i600 and rebranded models) for the missing access control on their remote-control commands (CVE-2019-13474). The test sends unauthenticated, read-only GET requests to /playinfo and /hotkeylist and reports the radio when one of them returns 200 with an AirMusic command reply (<result>OK</result>, <result>FAIL</result> or a <menu><item_total> list), while a random unknown command does not produce such a reply. Nothing is changed on the device. The same unauthenticated interface accepts commands that change the volume, rename the device or make it play an arbitrary stream.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. HTTP(S) request GET /{{bogus_cmd}}
  3. HTTP(S) request GET /playinfo
  4. HTTP(S) request GET /hotkeylist
  5. Parses / computes the next value with a Rhai script
  6. Checks v.cmd for ^/ → finding QoD 75: Magic AirMusic internet radio web control without authentication (CVE-2019-13474)

References:

Feed source — tests/vulnerabilities/telestar/CVE-2019-13474.yaml
# Magic AirMusic web control interface — missing access control (CVE-2019-13474).
#
# Internet radios built on the Magic AirMusic firmware (TELESTAR Bobs Rock Radio,
# Dabman D10 / i30 Stereo, Imperial i110…i600 and rebranded models) answer the
# remote-control commands of their web interface on port 80 (/playinfo, /hotkeylist,
# /stop, /setvol, /LocalPlay, /set_dname, /Sendkey, …) without any authentication.
# Anyone on the network can change the volume, rename the device or make it play an
# arbitrary stream.
#
# Ported from OpenVAS/Greenbone NVT 2019/magic/gb_magic_airmusic_missing_access_control.nasl
# (OID 1.3.6.1.4.1.25623.1.0.108651, GPL-2.0-only): GET /playinfo, /hotkeylist, then
# /stop; report on a 200 whose body holds "<result>OK</result>", "<menu><item_total>"
# or "<result>FAIL</result>".
#
# Deviations from the NASL (documented in the PR):
#   * /stop is not sent. It is the only command the NASL uses that acts on the
#     device (it stops playback); the feed stays read-only with /playinfo (current
#     playback state) and /hotkeylist (favourites list).
#   * Catch-all guard: a random non-existent command is requested first. A real
#     AirMusic radio answers it with <result><rt>INVALID_CMD</rt></result>; a server
#     that returns an OK / menu / FAIL document for any path (honeypot, generic XML
#     stub) is not reported.
uid: 345fe22e-c9e3-4870-ac87-c8e17cd3da0c
name: "Magic AirMusic internet radio web control without authentication (CVE-2019-13474)"
description: |
  Tests internet radios running the Magic AirMusic web interface (TELESTAR Bobs Rock
  Radio, Dabman D10 / i30 Stereo, Imperial i110-i600 and rebranded models) for the
  missing access control on their remote-control commands (CVE-2019-13474). The test
  sends unauthenticated, read-only GET requests to /playinfo and /hotkeylist and
  reports the radio when one of them returns 200 with an AirMusic command reply
  (<result>OK</result>, <result>FAIL</result> or a <menu><item_total> list), while a
  random unknown command does not produce such a reply. Nothing is changed on the
  device. The same unauthenticated interface accepts commands that change the volume,
  rename the device or make it play an arbitrary stream.
cves: [CVE-2019-13474]
cvss: 9.8
severity: critical
category: exposure
confidence_base: 0.30
tags: [telestar, imperial, dabman, airmusic, internet-radio, iot, missing-authentication]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2019-13474"
  - "https://seclists.org/fulldisclosure/2019/Sep/12"
  - "https://www.vulnerability-lab.com/get_content.php?id=2183"

steps:
  - id: mint
    action: script
    code: '"noctis" + rand_hex(12)'
    store_as: bogus_cmd

  # Pre-initialise every stored result a script reads (an undefined variable aborts
  # the whole test when a request fails).
  - id: init-ctl
    action: set_var
    var_name: ctl
    var_value: {status: 0, body: null}

  - id: init-play
    action: set_var
    var_name: play
    var_value: {status: 0, body: null}

  - id: init-hot
    action: set_var
    var_name: hot
    var_value: {status: 0, body: null}

  # Control: an unknown command. A real radio answers INVALID_CMD.
  - id: control
    action: http_request
    method: GET
    path: "/{{bogus_cmd}}"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    store_as: ctl

  - id: probe-playinfo
    action: http_request
    method: GET
    path: "/playinfo"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    store_as: play

  - id: probe-hotkeylist
    action: http_request
    method: GET
    path: "/hotkeylist"
    port: "{{port}}"
    tls_insecure: true
    follow_redirects: false
    store_as: hot

  - id: verdict
    action: script
    code: |
      let pat = "<result>OK</result>|<menu><item_total>|<result>FAIL</result>";
      let ctl_hit = type_of(ctl.body) == "string" && ctl.status == 200 && ereg(pat, ctl.body);
      let p = type_of(play.body) == "string" && play.status == 200 && ereg(pat, play.body);
      let h = type_of(hot.body) == "string" && hot.status == 200 && ereg(pat, hot.body);
      let cmd = if p { "/playinfo" } else { "/hotkeylist" };
      let reply = if p { eregmatch(pat, play.body) } else if h { eregmatch(pat, hot.body) } else { "" };
      let marker = if type_of(reply) == "array" && reply.len() > 0 { reply[0] } else { "" };
      #{ hit: (p || h) && !ctl_hit, cmd: cmd, marker: marker }
    store_as: v

  - id: report
    action: match
    source: v.cmd
    pattern: "^/"
    condition: "v.hit == true"
    on_match:
      stop: true
      finding:
        title: "Magic AirMusic internet radio web control without authentication (CVE-2019-13474)"
        confidence_delta: 0.50
        qod: 75
        evidence: "Unauthenticated GET {{v.cmd}} returned 200 with the AirMusic command reply {{v.marker}}; a random unknown command (/{{bogus_cmd}}) did not"
        remediation: "No vendor fix is known for most affected models. Keep the radio on an isolated network segment and block access to its web interface (TCP 80) from untrusted hosts, or replace the device."

TELESTAR internet radio undocumented Telnet root:password

CVECVE-2019-13473
Severitycritical · CVSS 9.8
Categorydefault-credentials — Default credentials
Servicestelnet
Detectionset_var, script, tcp_open, sleep, tcp_send, tcp_close, match · highest QoD 97
Feedtests/vulnerabilities/telestar/CVE-2019-13473.yaml

The undocumented Telnet service of a TELESTAR-DIGITAL internet radio (Bobs Rock Radio, Dabman D10 / i30 Stereo, Imperial i110-i600 and rebranded models) logged in the account root with the fixed password "password" and opened a BusyBox root shell, while a random password was rejected. An unauthenticated attacker on the network gets full control of the device and can use it as a foothold.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. Parses / computes the next value with a Rhai script
  3. Opens a persistent TCP/TLS socket
  4. Sends … on the open socket
  5. Parses / computes the next value with a Rhai script
  6. Sends {{tn_user}} on the open socket
  7. Sends {{tn_pass}} on the open socket
  8. Sends echo {{calc.expr}} on the open socket
  9. Sends on the open socket
  10. Parses / computes the next value with a Rhai script
  11. Parses / computes the next value with a Rhai script
  12. Parses / computes the next value with a Rhai script
  13. Opens a persistent TCP/TLS socket
  14. Sends {{tn_user}} on the open socket
  15. … and 6 more steps — see the feed source below

References:

Feed source — tests/vulnerabilities/telestar/CVE-2019-13473.yaml
# TELESTAR-DIGITAL internet radios — undocumented Telnet service with the
# fixed account root:password (CVE-2019-13473).
#
# Bobs Rock Radio, Dabman D10 / i30 Stereo and Imperial i110…i600 radios run a
# BusyBox telnetd on port 23 (greeting "(none) login: ") that logs root in with
# the password "password" and drops into a BusyBox ash root shell.
#
# Ported from OpenVAS/Greenbone NVT
# 2019/telestar_digital/gb_telestar_mult_inet_radio_undocumented_telnet_creds.nasl
# (OID 1.3.6.1.4.1.25623.1.0.108647, GPL-2.0-only): require "(none) login: " in
# the greeting, send "root", wait 3 s, expect "Password:", send "password",
# wait 3 s and require "BusyBox" + "built-in shell" in the answer.
#
# Deviations from the NASL (stronger detection, documented in the PR):
#   * Real command proof: once logged in, the shell runs the benign
#     `echo NOCTIS$((a+b))` (random a, b) and the feed requires the computed
#     sum, which never appears in what we send, so neither the telnetd echo of
#     the typed line nor any banner can produce it (QoD 97). The NASL's
#     banner-only evidence is kept as a fallback (QoD 75) for a shell whose
#     command output does not come back in time.
#   * Accept-any-password guard: after a successful login a second login with a
#     random password is made; when it also opens a shell (honeypot / broken
#     login) the feed reports nothing.
#   * Late greeting: a radio that greets after the first 500 ms read is still
#     recognised (wait, then read again) instead of being skipped.
#
# The NASL's 3 s pauses are kept: BusyBox login flushes type-ahead before the
# password prompt, so the password must only be sent once the prompt is shown.
# One wrong-password attempt (the control) is made only after the default login
# already worked. Nothing is changed on the device. category: default-credentials
# so operators can exclude credential logins.
uid: 82dff3a4-52bb-490f-93b3-05332fbf9d87
name: "TELESTAR internet radio undocumented Telnet root:password (CVE-2019-13473)"
description: |
  The undocumented Telnet service of a TELESTAR-DIGITAL internet radio (Bobs Rock
  Radio, Dabman D10 / i30 Stereo, Imperial i110-i600 and rebranded models) logged
  in the account root with the fixed password "password" and opened a BusyBox root
  shell, while a random password was rejected. An unauthenticated attacker on the
  network gets full control of the device and can use it as a foothold.
cves: [CVE-2019-13473]
cvss: 9.8
severity: critical
category: default-credentials
confidence_base: 0.30
tags: [telestar, imperial, dabman, internet-radio, iot, telnet, busybox, default-credentials, backdoor, intrusive]
services: [telnet]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2019-13473"

vars:
  tn_user: "root"
  tn_pass: "password"

steps:
  # ---------------------------------------------------------------- set-up
  - id: init-gate
    action: set_var
    var_name: gate
    var_value: false

  - id: init-sh-proof
    action: set_var
    var_name: sh_proof
    var_value: false

  - id: init-nasl-markers
    action: set_var
    var_name: nasl_markers
    var_value: false

  - id: init-ctl-shell
    action: set_var
    var_name: ctl_shell
    var_value: false

  - id: init-late
    action: set_var
    var_name: late
    var_value: {response: ""}

  # Random control password — never "password".
  - id: control-password
    action: script
    store_as: ctl_pw
    code: |
      "noctis" + rand_str(14)

  # Benign shell proof: the sum is computed by the device's shell and never
  # appears in the request.
  - id: calc
    action: script
    store_as: calc
    code: |
      let a = rand_int(100000, 999999);
      let b = rand_int(100000, 999999);
      #{
        expr: "NOCTIS$((" + a.to_string() + "+" + b.to_string() + "))",
        token: "NOCTIS" + (a + b).to_string()
      }

  # ------------------------------------------------------ greeting / gate
  - id: open
    action: tcp_open
    handle: tn
    port: "{{port}}"
    read_banner: true
    timeout_secs: 10
    store_as: conn

  # No login prompt within the first read (nothing at all, or only telnetd's
  # IAC negotiation while /bin/login is still starting on a slow radio): wait
  # and read again (a zero-byte write only triggers the read).
  - id: late-banner-wait
    action: sleep
    condition: "conn.connected == true && (type_of(conn.banner) != \"string\" || strstr(conn.banner, \"login:\") == \"\")"
    duration_ms: 3000

  - id: late-banner
    action: tcp_send
    handle: tn
    condition: "conn.connected == true && (type_of(conn.banner) != \"string\" || strstr(conn.banner, \"login:\") == \"\")"
    send: ""
    timeout_secs: 10
    store_as: late

  - id: gate-check
    action: script
    condition: "conn.connected == true"
    store_as: gate
    code: |
      let g = "";
      if type_of(conn.banner) == "string" { g += conn.banner; }
      if type_of(late.response) == "string" { g += late.response; }
      // the engine trims trailing whitespace off the greeting: no space after ":"
      strstr(g, "(none) login:") != ""

  # ------------------------------------------------- default-account login
  - id: send-user
    action: tcp_send
    handle: tn
    condition: "gate == true"
    send: "{{tn_user}}\r\n"
    timeout_secs: 10
    store_as: r_user

  - id: wait-password-prompt
    action: sleep
    condition: "gate == true"
    duration_ms: 3000

  - id: send-pass
    action: tcp_send
    handle: tn
    condition: "gate == true"
    send: "{{tn_pass}}\r\n"
    timeout_secs: 10
    store_as: r_pass

  - id: wait-shell
    action: sleep
    condition: "gate == true"
    duration_ms: 3000

  - id: send-cmd
    action: tcp_send
    handle: tn
    condition: "gate == true"
    send: "echo {{calc.expr}}\r\n"
    timeout_secs: 10
    store_as: r_cmd

  - id: wait-output
    action: sleep
    condition: "gate == true"
    duration_ms: 1500

  # An empty line flushes whatever the shell printed after the previous read.
  - id: flush
    action: tcp_send
    handle: tn
    condition: "gate == true"
    send: "\r\n"
    timeout_secs: 10
    store_as: r_tail

  - id: close
    action: tcp_close
    handle: tn

  - id: collect
    action: script
    condition: "gate == true"
    store_as: tn_out
    code: |
      let out = "";
      for r in [r_user, r_pass, r_cmd, r_tail] {
        if type_of(r.response) == "string" { out += r.response; }
      }
      out

  - id: check-shell-proof
    action: script
    condition: "gate == true"
    store_as: sh_proof
    code: |
      strstr(tn_out, calc.token) != ""

  # The NASL's own success markers (BusyBox shell banner after the password).
  - id: check-nasl-markers
    action: script
    condition: "gate == true"
    store_as: nasl_markers
    code: |
      strstr(tn_out, "BusyBox") != "" && strstr(tn_out, "built-in shell") != ""

  # ---------------------------------------- control: random password login
  # Only when the default login looked successful, to rule out a service that
  # opens a shell for any password.
  - id: ctl-open
    action: tcp_open
    handle: ctl
    port: "{{port}}"
    condition: "sh_proof == true || nasl_markers == true"
    read_banner: true
    timeout_secs: 10
    store_as: ctl_conn

  - id: ctl-user
    action: tcp_send
    handle: ctl
    condition: "sh_proof == true || nasl_markers == true"
    send: "{{tn_user}}\r\n"
    timeout_secs: 10
    store_as: c_user

  - id: ctl-wait-password-prompt
    action: sleep
    condition: "sh_proof == true || nasl_markers == true"
    duration_ms: 3000

  - id: ctl-pass
    action: tcp_send
    handle: ctl
    condition: "sh_proof == true || nasl_markers == true"
    send: "{{ctl_pw}}\r\n"
    timeout_secs: 10
    store_as: c_pass

  - id: ctl-wait-shell
    action: sleep
    condition: "sh_proof == true || nasl_markers == true"
    duration_ms: 3000

  - id: ctl-cmd
    action: tcp_send
    handle: ctl
    condition: "sh_proof == true || nasl_markers == true"
    send: "echo {{calc.expr}}\r\n"
    timeout_secs: 10
    store_as: c_cmd

  - id: ctl-wait-output
    action: sleep
    condition: "sh_proof == true || nasl_markers == true"
    duration_ms: 1500

  - id: ctl-flush
    action: tcp_send
    handle: ctl
    condition: "sh_proof == true || nasl_markers == true"
    send: "\r\n"
    timeout_secs: 10
    store_as: c_tail

  - id: ctl-close
    action: tcp_close
    handle: ctl

  - id: ctl-check
    action: script
    condition: "sh_proof == true || nasl_markers == true"
    store_as: ctl_shell
    code: |
      let out = "";
      for r in [c_user, c_pass, c_cmd, c_tail] {
        if type_of(r.response) == "string" { out += r.response; }
      }
      strstr(out, calc.token) != "" || strstr(out, "built-in shell") != ""

  # ---------------------------------------------------------------- findings
  - id: finding-shell
    action: match
    source: tn_out
    pattern: "NOCTIS[0-9]+"
    condition: "sh_proof == true && ctl_shell == false"
    on_match:
      finding:
        title: "TELESTAR internet radio Telnet root:password login (CVE-2019-13473)"
        description: "The undocumented Telnet service logged in '{{tn_user}}' with the fixed password '{{tn_pass}}' and the BusyBox root shell computed `echo {{calc.expr}}` = {{calc.token}}, while a random password was rejected."
        remediation: "Update the radio firmware to a release that disables the undocumented Telnet service from TELESTAR-DIGITAL, and block TCP/23 to the device; isolate IoT devices on a separate network."
        confidence_delta: 0.65
        qod: 97
        evidence: "Telnet root:password login + shell `echo {{calc.expr}}` returned {{calc.token}}: {{tn_out}}"
      stop: true

  # NASL-equivalent fallback: shell banner after the default login, command
  # output not captured.
  - id: finding-banner
    action: match
    source: tn_out
    pattern: "built-in shell"
    condition: "sh_proof == false && nasl_markers == true && ctl_shell == false"
    on_match:
      finding:
        title: "TELESTAR internet radio Telnet root:password login (CVE-2019-13473)"
        description: "The undocumented Telnet service logged in '{{tn_user}}' with the fixed password '{{tn_pass}}' and printed the BusyBox shell banner, while a random password was rejected. The shell's command output was not captured."
        remediation: "Update the radio firmware to a release that disables the undocumented Telnet service from TELESTAR-DIGITAL, and block TCP/23 to the device; isolate IoT devices on a separate network."
        confidence_delta: 0.50
        qod: 75
        evidence: "Telnet root:password login, BusyBox shell banner: {{tn_out}}"

View these feeds on GitHub