Orange Livebox — 1 vulnerability check

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

← All products · Feeds on GitHub

Orange Livebox get_getnetworkconf.cgi Wi-Fi Credential Disclosure

CVECVE-2018-20377
Severitycritical · CVSS 9.8
Categoryexposure — Exposure
Serviceshttp, https
Detectiontcp_connect, script, match · highest QoD 75
Feedtests/vulnerabilities/orange-livebox/CVE-2018-20377.yaml

Requests /get_getnetworkconf.cgi without credentials and confirms that the Orange Livebox returns its Wi-Fi configuration in plain text (HTTP 200, `<html><body>Orange-<SSID><BR><key><BR>`). The SSID and the Wi-Fi key are not copied into the finding.

How noctis detects it

  1. Raw TCP (TLS on HTTPS), sent verbatim: GET /get_getnetworkconf.cgi HTTP/1.0
  2. Parses / computes the next value with a Rhai script
  3. Checks leak.redacted for <body>Orange-<redacted><BR><redacted><BR> → finding QoD 75: Unauthenticated GET /get_getnetworkconf.cgi returned HTTP 200 with the Livebox Wi-Fi configuration (SSID + Wi-Fi key) in plain text (… <BR>…

References:

Feed source — tests/vulnerabilities/orange-livebox/CVE-2018-20377.yaml
# Orange Livebox (Arcadyan ARV7519) — /get_getnetworkconf.cgi Wi-Fi credential disclosure (CVE-2018-20377)
#
# The CGI /get_getnetworkconf.cgi (admin web UI, usually port 8080) answers an
# unauthenticated GET with the Wi-Fi configuration in plain text — SSID, Wi-Fi
# key and security protocol, one value per `<BR>` line:
#   <html><body>Orange-XXXX<BR><wifi key><BR>...<BR></body></html>
# Affected: Arcadyan ARV7519 firmware before 00.96.00.96.613E (00.96.320S,
# 00.96.00.96.613, 00.96.00.96.609ES, 00.96.321S, 00.96.217).
#
# Ported from OpenVAS/Greenbone NASL 2018/orange/gb_orange_livebox_router_information_exposure.nasl
# (OID 1.3.6.1.4.1.25623.1.0.114055, GPL-2.0-only). Same request, same marker:
# `<html>\s*<body>\s*Orange-[0-9a-zA-Z_]+<BR>\s*[0-9a-zA-Z_]+<BR>` (case-insensitive, as NASL `=~`).
#
# Real exploitation, read-only: the feed actually retrieves the Wi-Fi credentials
# from an unauthenticated request — that IS the exploit. No value leaves the
# parse step: the finding carries a fully redacted copy of the page and only the
# number of disclosed fields (the match step copies its `source` into the
# finding, so it must never be resp.banner).
#
# Better than the NASL:
#   - no Livebox detection-VT (CPE) pre-gate: the NASL only runs where its
#     product detection succeeded first, so a Livebox it fails to fingerprint
#     (other HTML on `/`, reverse proxy) is missed although the CGI leaks;
#   - the NASL's second field is `[0-9a-zA-Z_]+`, so a Wi-Fi key holding any
#     other printable character (`-`, `.`, `!`, `@`, `<`, space…) makes it miss
#     the leak; here the second field is any run up to the next `<BR>` on the
#     line holding at least one non-blank character;
#   - the NASL checks the raw reply without the HTTP status; here an HTTP 200
#     is also required;
#   - HTTPS is covered via the auto-TLS of tcp_connect.
uid: 97990292-bed9-464c-9abe-1d173ac4d7f4
name: "CVE-2018-20377 — Orange Livebox get_getnetworkconf.cgi Wi-Fi Credential Disclosure"
description: |
  Requests /get_getnetworkconf.cgi without credentials and confirms that the
  Orange Livebox returns its Wi-Fi configuration in plain text (HTTP 200,
  `<html><body>Orange-<SSID><BR><key><BR>`). The SSID and the Wi-Fi key are not
  copied into the finding.
cves: [CVE-2018-20377]
cvss: 9.8
severity: critical
category: exposure
confidence_base: 0.30
tags: [orange, livebox, arcadyan, router, credential-disclosure, wifi, openvas]
services: [http, https]
author: noctis
version: "1.0.0"
references:
  - "https://nvd.nist.gov/vuln/detail/CVE-2018-20377"
  - "https://badpackets.net/over-19000-orange-livebox-adsl-modems-are-leaking-their-wifi-credentials/"
  - "https://github.com/zadewg/LIVEBOX-0DAY"
  - "OpenVAS/Greenbone NASL 2018/orange/gb_orange_livebox_router_information_exposure.nasl (OID 1.3.6.1.4.1.25623.1.0.114055, GPL-2.0-only)"

steps:
  # 1 — the unauthenticated request (verbatim, HTTP/1.0, TLS auto from the scheme).
  - id: probe
    action: tcp_connect
    port: "{{port}}"
    send: "GET /get_getnetworkconf.cgi HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
    timeout_secs: 10
    store_as: resp

  # 2 — parse the reply: HTTP 200 and the NASL marker (SSID `Orange-...` then a
  #     non-empty second field, each closed by `<BR>`). Only the field count and
  #     a fixed placeholder text (no byte of the reply, headers included) leave
  #     this step.
  - id: parse
    action: script
    code: |
      let out = #{ leaked: false, fields: 0, redacted: "" };
      if type_of(resp.banner) == "string" {
        let b = resp.banner;
        let ok200 = ereg("^HTTP/1\\.[01] 200", b);
        let m = eregmatch("<html>\\s*<body>\\s*Orange-[0-9a-zA-Z_]+<BR>\\s*[^\\r\\n]*?[^<\\s][^\\r\\n]*?<BR>", b, true);
        if ok200 && m.len() > 0 {
          out.leaked = true;
          // number of `<BR>`-terminated values in the disclosure (SSID, key, …),
          // counted in the body only
          let body = eregmatch("(?is)<body>(.*)", b);
          out.fields = split(tolower(body[1]), "<br>").len() - 1;
          // fixed text: no byte of the reply (headers included) reaches the finding
          out.redacted = "HTTP 200 <html><body>Orange-<redacted><BR><redacted><BR></body></html>";
        }
      }
      out
    store_as: leak

  # 3 — report on the REDACTED reply; no disclosed value reaches the finding.
  - id: confirm
    action: match
    condition: "leak.leaked == true"
    source: leak.redacted
    pattern: '<body>Orange-<redacted><BR><redacted><BR>'
    on_match:
      finding:
        confidence_delta: 0.55
        qod: 75
        evidence: "Unauthenticated GET /get_getnetworkconf.cgi returned HTTP 200 with the Livebox Wi-Fi configuration (SSID + Wi-Fi key) in plain text ({{leak.fields}} <BR> fields, values withheld) at {{target_host}}:{{port}}"
      stop: true

View these feeds on GitHub