Verizon Fios — 1 vulnerability check
noctis ships 1 vulnerability check for Verizon Fios, covering 3 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Verizon Fios Quantum Gateway G1100 /api Password Salt Disclosure
| CVE | CVE-2019-3916, CVE-2019-3915, CVE-2019-3914 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | exposure — Exposure |
| Services | http, https |
| Detection | set_var, http_request, script, match · highest QoD 75 |
| Feed | tests/vulnerabilities/verizon-fios/fios-g1100-password-salt-disclosure.yaml |
Sends an unauthenticated GET /api to the Fios Quantum Gateway web interface and confirms that the reply is the gateway's JSON status object (requirePassword, maxUsers, denyState...) and that it discloses the `passwordSalt` of the administrator password (firmware before 02.02.00.13). The salt lets an attacker crack or replay a captured login. The salt itself is not copied into the finding.
How noctis detects it
- HTTP(S) request
GET /api - Parses / computes the next value with a Rhai script
- Checks
leak.redactedfor^\{"passwordSalt":"<redacted>"\}$→ finding QoD 75: Verizon Fios Quantum Gateway Password Salt Disclosure (CVE-2019-3916)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2019-3916
- https://nvd.nist.gov/vuln/detail/CVE-2019-3915
- https://nvd.nist.gov/vuln/detail/CVE-2019-3914
- https://www.tenable.com/security/research/tra-2019-17
Feed source — tests/vulnerabilities/verizon-fios/fios-g1100-password-salt-disclosure.yaml
# Verizon Fios Quantum Gateway (G1100) < 02.02.00.13 — unauthenticated
# password salt disclosure on /api (CVE-2019-3916), same firmware as the login
# replay (CVE-2019-3915) and authenticated command injection (CVE-2019-3914).
#
# Firmware 02.01.00.05 answers an unauthenticated GET /api with HTTP 401 and a
# JSON status object that holds the salt of the admin password hash
# (`"passwordSalt":"<uuid>"`, next to requirePassword, maxUsers, denyState...).
# With it, a sniffed salted SHA-512 login can be cracked offline or replayed.
# Fixed in firmware 02.02.00.13 (Tenable TRA-2019-17).
#
# Credit: detection logic adapted from the OpenVAS/Greenbone NVT
# 2019/verizon/gb_verizon_fios_router_mult_vuln.nasl
# (OID 1.3.6.1.4.1.25623.1.0.142241, GPL-2.0-only): GET /api, pattern
# `"passwordSalt":"[a-f0-9-]+"`.
#
# Proof: reading the salt without credentials IS the CVE-2019-3916 exploit,
# read-only (QoD 75). The other two CVEs are not exercised: CVE-2019-3915
# needs a sniffed login and CVE-2019-3914 needs an admin session; they are
# listed because the same firmware fixes all three.
#
# Deviations from the NASL (stronger detection, documented in the PR):
# * no product-detection pre-gate: a gateway whose `/` page is not
# fingerprinted (reverse proxy, other UI language) is still checked;
# * the reply must be a JSON object (body starts with `{`, optional BOM) that
# also holds at least one G1100 status field (requirePassword, maxUsers,
# denyState, denyTimeout, doSetupWizard, isWireless), so an HTML page
# quoting the string or another product's JSON does not count; the salt
# must start with a hex digit (a run of dashes does not count); whitespace
# around `:` and upper-case hex digits are accepted;
# * the salt value never reaches the finding: the match runs on a fixed
# placeholder, the evidence only gives its length and which companion
# G1100 status fields were present.
uid: a60abb16-0d3c-4745-a722-2ebc23125272
name: "Verizon Fios Quantum Gateway G1100 /api Password Salt Disclosure"
description: |
Sends an unauthenticated GET /api to the Fios Quantum Gateway web interface
and confirms that the reply is the gateway's JSON status object
(requirePassword, maxUsers, denyState...) and that it discloses the
`passwordSalt` of the administrator password (firmware before 02.02.00.13).
The salt lets an attacker crack or replay a captured login. The salt itself
is not copied into the finding.
cves: [CVE-2019-3916, CVE-2019-3915, CVE-2019-3914]
cvss: 7.5
severity: high
category: exposure
confidence_base: 0.30
tags: [verizon, fios, quantum-gateway, g1100, router, information-disclosure, password-salt]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2019-3916"
- "https://nvd.nist.gov/vuln/detail/CVE-2019-3915"
- "https://nvd.nist.gov/vuln/detail/CVE-2019-3914"
- "https://www.tenable.com/security/research/tra-2019-17"
- "OpenVAS/Greenbone NASL 2019/verizon/gb_verizon_fios_router_mult_vuln.nasl (OID 1.3.6.1.4.1.25623.1.0.142241, GPL-2.0-only)"
steps:
- id: init-api-r
action: set_var
var_name: api_r
var_value: {status: 0, body: ""}
# 1 — the unauthenticated request (the real gateway answers 401 + JSON).
- id: probe
action: http_request
method: GET
path: "/api"
port: "{{port}}"
headers:
Accept: "application/json, text/plain, */*"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: api_r
# 2 — parse: a JSON object holding "passwordSalt":"<hex/uuid>". Only the
# salt length, the companion field names and a fixed placeholder leave
# this step.
- id: parse
action: script
code: |
let out = #{ leaked: false, salt_len: 0, fields: "", redacted: "" };
if type_of(api_r.body) == "string" && api_r.status != 0 {
let b = api_r.body;
let is_obj = ereg("^\\x{FEFF}?\\s*\\{", b);
let m = eregmatch("\"passwordSalt\"\\s*:\\s*\"([A-Fa-f0-9][A-Fa-f0-9-]*)\"", b);
if is_obj && m.len() > 1 {
// the G1100 status object always carries these companion fields:
// a JSON reply with a salt but none of them is another product
let seen = "";
for f in ["requirePassword", "maxUsers", "denyState", "denyTimeout", "doSetupWizard", "isWireless"] {
if b.contains("\"" + f + "\"") {
seen = if seen == "" { f } else { seen + "," + f };
}
}
if seen != "" {
out.leaked = true;
out.salt_len = strlen(m[1]);
out.fields = seen;
out.redacted = "{\"passwordSalt\":\"<redacted>\"}";
}
}
}
out
store_as: leak
# 3 — report on the fixed placeholder; the salt never reaches the finding.
- id: confirm
action: match
condition: "leak.leaked == true"
source: leak.redacted
pattern: '^\{"passwordSalt":"<redacted>"\}$'
on_match:
finding:
title: "Verizon Fios Quantum Gateway Password Salt Disclosure (CVE-2019-3916)"
description: "An unauthenticated GET /api returned a JSON object holding the salt of the administrator password hash. The gateway runs firmware older than 02.02.00.13, which is also affected by the login replay (CVE-2019-3915) and the authenticated command injection (CVE-2019-3914)."
remediation: "Update the Fios Quantum Gateway G1100 firmware to 02.02.00.13 or later, and reach its web interface over HTTPS only."
confidence_delta: 0.55
qod: 75
evidence: "GET /api without credentials returned HTTP {{api_r.status}} with a JSON passwordSalt of {{leak.salt_len}} characters (value withheld); G1100 status fields present: {{leak.fields}}"
stop: true