CVE-2024-7715
📋 TL;DR
This critical vulnerability allows remote attackers to execute arbitrary commands on affected D-Link NAS devices through command injection in the photocenter_mgr.cgi component. It affects multiple D-Link NAS models that are no longer supported by the vendor. Attackers can exploit this without authentication to gain control of vulnerable devices.
💻 Affected Systems
- D-Link DNS-120
- DNR-202L
- DNS-315L
- DNS-320
- DNS-320L
- DNS-320LW
- DNS-321
- DNR-322L
- DNS-323
- DNS-325
- DNS-326
- DNS-327L
- DNR-326
- DNS-340L
- DNS-343
- DNS-345
- DNS-726-4
- DNS-1100-4
- DNS-1200-05
- DNS-1550-04
⚠️ Manual Verification Required
This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.
Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).
🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.
- Review the CVE details at NVD
- Check vendor security advisories for your specific version
- Test if the vulnerability is exploitable in your environment
- Consider updating to the latest version as a precaution
⚠️ Risk & Real-World Impact
Worst Case
Complete system compromise allowing attackers to install malware, exfiltrate data, pivot to internal networks, or use devices in botnets.
Likely Case
Remote code execution leading to data theft, ransomware deployment, or device takeover for malicious activities.
If Mitigated
Limited impact if devices are isolated from internet and internal networks with strict access controls.
🎯 Exploit Status
Exploit details are publicly available on GitHub. The vulnerability requires no authentication and has simple exploitation vectors.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: N/A
Vendor Advisory: https://supportannouncement.us.dlink.com/security/publication.aspx?name=SAP10383
Restart Required: No
Instructions:
No official patch available. Vendor recommends retiring and replacing affected devices.
🔧 Temporary Workarounds
Disable CGI endpoint via firewall
linuxBlock access to the vulnerable photocenter_mgr.cgi endpoint
iptables -A INPUT -p tcp --dport 80 -m string --string "/cgi-bin/photocenter_mgr.cgi" --algo bm -j DROP
iptables -A INPUT -p tcp --dport 443 -m string --string "/cgi-bin/photocenter_mgr.cgi" --algo bm -j DROP
Disable web interface entirely
allCompletely disable the web management interface if not needed
Disable via device administration interface or block ports 80/443
🧯 If You Can't Patch
- Immediately disconnect affected devices from internet and isolate from internal networks
- Replace affected devices with supported alternatives as soon as possible
🔍 How to Verify
Check if Vulnerable:
Check device model against affected list and verify web interface is accessible. Test with curl: curl -X POST 'http://[device_ip]/cgi-bin/photocenter_mgr.cgi' --data 'filter=$(id)'
Check Version:
Check device model via web interface or serial number against affected models list
Verify Fix Applied:
Verify device is no longer accessible from untrusted networks and web interface is disabled or protected
📡 Detection & Monitoring
Log Indicators:
- Unusual POST requests to /cgi-bin/photocenter_mgr.cgi
- Commands with shell metacharacters in filter parameter
- Unexpected process execution from web server
Network Indicators:
- HTTP POST requests to photocenter_mgr.cgi with suspicious filter parameters
- Outbound connections from NAS devices to unknown IPs
SIEM Query:
source="nas_logs" AND (uri="/cgi-bin/photocenter_mgr.cgi" OR (method="POST" AND uri CONTAINS "photocenter_mgr"))