Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2016-20104 Overview
CVE-2016-20104 is a path traversal vulnerability [CWE-22] affecting EyeLock nano NXT iris recognition devices running firmware versions 3.05.1193, 3.04.1108, 3.03.944, and 3.01.646. Unauthenticated remote attackers can read arbitrary files on the device by sending crafted GET requests to the /scripts/logdownload.php endpoint. The path parameter accepts directory traversal sequences such as ../../etc/passwd, which the underlying readfile() call returns without validation. The Shadowserver Foundation first observed exploitation evidence on 2023-10-19.
Critical Impact
Unauthenticated attackers can disclose sensitive local files including system credentials, configuration data, and biometric enrollment artifacts stored on the device.
Affected Products
- EyeLock nano NXT firmware 3.05.1193
- EyeLock nano NXT firmware 3.04.1108
- EyeLock nano NXT firmware 3.03.944 and 3.01.646
Discovery Timeline
- 2026-10-20 - CVE-2016-20104 published to NVD
- 2026-10-22 - Last updated in NVD database
Technical Details for CVE-2016-20104
Vulnerability Analysis
The EyeLock nano NXT exposes a PHP-based administrative interface that includes a log download script at /scripts/logdownload.php. The script accepts a path parameter supplied in the HTTP query string and passes the value directly to the PHP readfile() function. Because the parameter is not sanitized or constrained to a log directory, attackers can traverse the filesystem using ../ sequences and retrieve any file readable by the web server process.
An attacker reads arbitrary files by issuing a request such as GET /scripts/logdownload.php?path=../../etc/passwd. The device returns the file contents in the HTTP response body. This exposes operating system files, service configurations, and biometric device state.
Root Cause
The root cause is missing input validation on a user-controlled file path parameter. The logdownload.php handler does not canonicalize the supplied path, enforce a base directory prefix, or reject traversal metacharacters before invoking readfile(). This is a classic Path Traversal weakness tracked as [CWE-22].
Attack Vector
Exploitation requires only network reachability to the device's web interface. No authentication, user interaction, or elevated privileges are required. The attacker crafts a single HTTP GET request containing traversal sequences in the path parameter. Public exploitation tooling exists, including an Exploit-DB entry and a Nuclei template, which lowers the barrier to automated scanning. Refer to the Exploit-DB #40227 entry, the ZeroScience Advisory ZSL-2016-5356, and the VulnCheck advisory on EyeLock for technical details.
Detection Methods for CVE-2016-20104
Indicators of Compromise
- HTTP requests to /scripts/logdownload.php containing path= with ../ or URL-encoded %2e%2e%2f traversal sequences.
- Access attempts targeting sensitive files such as /etc/passwd, /etc/shadow, or EyeLock configuration paths via the log download endpoint.
- Unusual outbound responses from EyeLock nano NXT devices carrying file content payloads to external IP addresses.
Detection Strategies
- Deploy the Nuclei template for EyeLock nano LFD against internal device inventories to flag vulnerable firmware.
- Create web application firewall or IDS signatures that match logdownload.php requests with directory traversal patterns in the path query parameter.
- Correlate device web logs with network flow data to identify repeated anomalous file retrieval activity.
Monitoring Recommendations
- Monitor all HTTP access logs from EyeLock nano NXT management interfaces for requests to /scripts/.
- Alert on any external source attempting to reach biometric device administrative endpoints, which should be segmented from untrusted networks.
- Track response sizes from logdownload.php and flag responses that deviate from expected log file formats.
How to Mitigate CVE-2016-20104
Immediate Actions Required
- Remove EyeLock nano NXT devices from any network segment reachable by untrusted hosts and place them behind a management VLAN with strict ACLs.
- Block external access to /scripts/logdownload.php at the perimeter or upstream reverse proxy until the vendor confirms a fix.
- Audit device web server logs for prior exploitation attempts and treat any ../ traversal pattern as an incident.
Patch Information
No vendor patch is referenced in the available advisories. The VulnCheck advisory and ZeroScience advisory ZSL-2016-5356 list the affected firmware versions but do not identify a fixed release. Contact EyeLock support to confirm whether a remediated firmware build is available for your deployment.
Workarounds
- Restrict management interface access to a hardened jump host using firewall rules that drop HTTP traffic from all other sources.
- Deploy a reverse proxy or WAF rule that rejects any request to logdownload.php containing .., %2e%2e, or absolute path references in the path parameter.
- If the log download functionality is not required operationally, remove or rename /scripts/logdownload.php on the device filesystem to eliminate the exposed endpoint.
# Example WAF rule (ModSecurity) blocking traversal on the vulnerable endpoint
SecRule REQUEST_URI "@contains /scripts/logdownload.php" \
"id:1002016,phase:1,deny,status:403,\
chain,msg:'CVE-2016-20104 EyeLock nano NXT path traversal attempt'"
SecRule ARGS:path "@rx (\.\./|%2e%2e%2f|%2e%2e/)" "t:lowercase,t:urlDecodeUni"
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

