Edimax — 1 vulnerability check

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

← All products · Feeds on GitHub

Edimax Router Default Web Credentials (admin/1234)

CVECVE-2004-1791
Severityhigh · CVSS 7.5
Categorydefault-credentials — Default credentials
Serviceshttp, https
Detectionset_var, tcp_connect, match, script · highest QoD 97
Feedtests/vulnerabilities/edimax/CVE-2004-1791.yaml

Edimax broadband routers (BR6228nS, BR6228nC, BR6428n, BR6258n, BR-6574N and AR-6004) protect their web interface with HTTP Basic auth and a realm that advertises the factory account "Default: admin/1234". The check requests the root page, confirms the 401 challenge carries that realm, verifies a random account is refused, then logs in as admin with password 1234 and confirms the device accepts it (HTTP 200 or a redirect to the management page).

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET / HTTP/1.0
  2. Checks gate.banner for (?is)^HTTP/1\.[01] 401\b.*WWW-Authenticate\s*:\s*Basic realm="[^"\r\n…
  3. Parses / computes the next value with a Rhai script
  4. Raw TCP (TLS on HTTPS), sent verbatim: GET / HTTP/1.0
  5. Parses / computes the next value with a Rhai script
  6. Raw TCP (TLS on HTTPS), sent verbatim: GET / HTTP/1.0
  7. Checks login.banner for (?i)^HTTP/1\.[01] (200|30[1237])\b → finding QoD 97: Logged in to the Edimax router web interface with the default credential admin/1234: the 401 challenge advertised 'Default: admin/1234', a …

References:

Feed source — tests/vulnerabilities/edimax/CVE-2004-1791.yaml
# Edimax broadband routers (BR6228nS/nC, BR6428n, BR6258n, BR-6574N, AR-6004) —
# the web interface ships with the default account admin/1234 (CVE-2004-1791).
#
# Ported from OpenVAS/Greenbone NVT 2025/edimax/gb_routers_http_default_credentials.nasl
# (OID 1.3.6.1.4.1.25623.1.0.114987, GPL-2.0-only):
#   1. Product gate: GET / answers 401 with a Basic realm that advertises
#      "Default: admin/1234".
#   2. GET / with Authorization admin:1234 must answer 200 or 30x.
#
# Deviation from the NASL (stronger detection, stated in the PR):
#   * Accept-any-password control: GET / with a random account/password is sent
#     first. If it is not refused with 401, the server does not check
#     credentials (honeypot, broken auth) and the feed reports nothing — the
#     NASL would report the default login.
#
# Nothing is changed on the device.
uid: 5d0a3f6c-8b1e-4c27-9a54-e7c2b61f0d38
name: "Edimax Router Default Web Credentials (admin/1234)"
description: |
  Edimax broadband routers (BR6228nS, BR6228nC, BR6428n, BR6258n, BR-6574N and
  AR-6004) protect their web interface with HTTP Basic auth and a realm that
  advertises the factory account "Default: admin/1234". The check requests the
  root page, confirms the 401 challenge carries that realm, verifies a random
  account is refused, then logs in as admin with password 1234 and confirms the
  device accepts it (HTTP 200 or a redirect to the management page).
cves: [CVE-2004-1791]
cvss: 7.5
severity: high
category: default-credentials
confidence_base: 0.30
tags: [openvas-migrated, edimax, router, default-credentials, http]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2004-1791"
  - "OpenVAS/Greenbone NASL 2025/edimax/gb_routers_http_default_credentials.nasl (GPL-2.0-only)"

steps:
  - id: init-product
    action: set_var
    var_name: product
    var_value: false
  - id: init-anycred
    action: set_var
    var_name: anycred
    var_value: true
  - id: init-ctrl
    action: set_var
    var_name: ctrl
    var_value: {banner: null}
  - id: init-login
    action: set_var
    var_name: login
    var_value: {banner: null}

  # 1. Product gate — Basic realm advertising the default account.
  - id: gate-probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET / HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    store_as: gate
  - id: gate-match
    action: match
    source: gate.banner
    pattern: '(?is)^HTTP/1\.[01] 401\b.*WWW-Authenticate\s*:\s*Basic realm="[^"\r\n]*Default: admin/1234'
    on_match:
      set_vars:
        product: true

  # 2. Control — a random account must be refused with 401.
  - id: control-auth
    action: script
    code: 'base64_encode("noctis" + rand_hex(6) + ":" + rand_hex(10))'
    store_as: bad_auth
    condition: "product"
  - id: control
    action: tcp_connect
    port: "{{port}}"
    send: "GET / HTTP/1.0\r\nHost: {{target_host}}\r\nAuthorization: Basic {{bad_auth}}\r\n\r\n"
    store_as: ctrl
    condition: "product"
  - id: control-check
    action: script
    code: |
      let b = ctrl.banner;
      !(type_of(b) == "string" && ereg("^HTTP/1\\.[01] 401", b))
    store_as: anycred
    condition: "product"

  # 3. Default login admin:1234 (base64 YWRtaW46MTIzNA==).
  - id: login-probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET / HTTP/1.0\r\nHost: {{target_host}}\r\nAuthorization: Basic YWRtaW46MTIzNA==\r\n\r\n"
    store_as: login
    condition: "product && !anycred"
  - id: detect-default
    action: match
    source: login.banner
    pattern: '(?i)^HTTP/1\.[01] (200|30[1237])\b'
    condition: "product && !anycred"
    on_match:
      finding:
        confidence_delta: 0.65
        qod: 97
        evidence: "Logged in to the Edimax router web interface with the default credential admin/1234: the 401 challenge advertised 'Default: admin/1234', a random account was refused, and admin:1234 was accepted."

View these feeds on GitHub