D-Link DIR-3040 — 1 vulnerability check
noctis ships 1 vulnerability check for D-Link DIR-3040, covering 5 CVEs; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
D-Link DIR-3040 syslog disclosure via /messages without authentication
| CVE | CVE-2021-21816, CVE-2021-21817, CVE-2021-21818, CVE-2021-21819, CVE-2021-21820 |
|---|---|
| Severity | medium · CVSS 4.3 |
| Category | exposure — Exposure |
| Services | http, https |
| Detection | tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/dlink-dir3040/CVE-2021-21816.yaml |
Requests /messages without credentials and reports when the DIR-3040 returns its timestamped system log, which leaks the information behind CVE-2021-21816 to 21820.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET /messages HTTP/1.0 - Checks
resp.bannerfor(?im)^HTTP/1\.[01] 200[\s\S]*^[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9…→ finding QoD 75: D-Link DIR-3040 served its timestamped system log at /messages without authentication
References:
Feed source — tests/vulnerabilities/dlink-dir3040/CVE-2021-21816.yaml
uid: b32daf3c-4dae-4a05-a674-f52d29d0c926
name: "CVE-2021-21816 — D-Link DIR-3040 syslog disclosure via /messages without authentication (CVSS 4.3)"
description: "Requests /messages without credentials and reports when the DIR-3040 returns its timestamped system log, which leaks the information behind CVE-2021-21816 to 21820."
cves: [CVE-2021-21816, CVE-2021-21817, CVE-2021-21818, CVE-2021-21819, CVE-2021-21820]
cvss: 4.3
severity: medium
category: exposure
confidence_base: 0.3
tags: [dlink, dir3040, info-disclosure]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2021-21816"
- "OpenVAS NASL 2021/dlink/gb_dlink_mult_vuln_jul21.nasl (GPL-2.0-only)"
# Ported from OpenVAS/Greenbone NASL 2021/dlink/gb_dlink_mult_vuln_jul21.nasl (GPL-2.0-only, Greenbone Community Feed).
# Faithful: request the exact NASL URL, then confirm BOTH the response status line and the
# plugin's confirming marker — a bare 200 with no marker does not fire (non-trivial negative).
steps:
- id: probe
action: tcp_connect
port: "{{port}}"
send: "GET /messages HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: resp
- id: detect
action: match
source: resp.banner
pattern: '(?im)^HTTP/1\.[01] 200[\s\S]*^[0-9]+-[0-9]+-[0-9]+ [0-9]+:[0-9]+:[0-9]+ syslog: '
on_match:
finding:
confidence_delta: 0.5
qod: 75
evidence: "D-Link DIR-3040 served its timestamped system log at /messages without authentication"
stop: true