D-Link DSP-W215/DIR-505/DIR-505L 1.01b06 www/my_cgi.cgi do_hnap HNAP Request memory corruption

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
9.0$0-$5k0.00

A vulnerability, which was classified as critical, was found in D-Link DSP-W215, DIR-505 and DIR-505L 1.01b06 (Router Operating System). Affected is the function do_hnap of the file www/my_cgi.cgi. The manipulation as part of a HNAP Request leads to a memory corruption vulnerability. CWE is classifying the issue as CWE-119. The product performs operations on a memory buffer, but it can read from or write to a memory location that is outside of the intended boundary of the buffer. This is going to have an impact on confidentiality, integrity, and availability. CVE summarizes:

Stack-based buffer overflow in the do_hnap function in www/my_cgi.cgi in D-Link DSP-W215 (Rev. A1) with firmware 1.01b06 and earlier, DIR-505 with firmware before 1.08b10, and DIR-505L with firmware 1.01 and earlier allows remote attackers to execute arbitrary code via a long Content-Length header in a GetDeviceSettings action in an HNAP request.

The weakness was presented 05/15/2014 by Craig as Hacking the D-Link DSP-W215 Smart Plug as confirmed blog post (Website). The advisory is available at devttys0.com. This vulnerability is traded as CVE-2014-3936 since 06/02/2014. The exploitability is told to be easy. It is possible to launch the attack remotely. The exploitation doesn't require any form of authentication. Technical details and a public exploit are known.

A public exploit has been developed by metasploit and been published immediately after the advisory. The exploit is shared for download at pastebin.com. It is declared as highly functional. As 0-day the estimated underground price was around $25k-$100k.

Upgrading eliminates this vulnerability.

The vulnerability is also documented in the databases at X-Force (93637), Exploit-DB (34064), SecurityFocus (BID 67651†) and Secunia (SA58728†).

Productinfo

Type

Vendor

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB CVSS-B Score: 🔍
VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 10.0
VulDB Meta Temp Score: 9.0

VulDB Base Score: 10.0
VulDB Temp Score: 9.0
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Memory corruption
CWE: CWE-119
CAPEC: 🔍
ATT&CK: 🔍

Local: No
Remote: Yes

Availability: 🔍
Access: Public
Status: Highly functional
Author: metasploit
Download: 🔍

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-Dayunlockunlockunlockunlock
Todayunlockunlockunlockunlock

MetaSploit ID: dlink_hnap_bof.rb
MetaSploit Name: D-Link HNAP Request Remote Buffer Overflow
MetaSploit File: 🔍

Exploit-DB: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

0-Day Time: 🔍
Exploit Delay Time: 🔍

Timelineinfo

05/15/2014 🔍
05/15/2014 +0 days 🔍
05/15/2014 +0 days 🔍
05/21/2014 +6 days 🔍
06/02/2014 +12 days 🔍
06/02/2014 +0 days 🔍
06/06/2014 +4 days 🔍
07/14/2014 +38 days 🔍
06/30/2024 +3639 days 🔍

Sourcesinfo

Vendor: dlink.com

Advisory: Hacking the D-Link DSP-W215 Smart Plug
Researcher: Craig
Status: Confirmed
Confirmation: 🔍

CVE: CVE-2014-3936 (🔍)
X-Force: 93637 - D-Link DSP-W215 do_hnap buffer overflow, High Risk
SecurityFocus: 67651 - DIR-505 and DIR-505L Stack Buffer Overflow Vulnerability
Secunia: 58728 - D-Link DSP-W215 HNAP "GetDeviceSettings" Buffer Overflow Vulnerability, Moderately Critical

scip Labs: https://www.scip.ch/en/?labs.20161013

Entryinfo

Created: 06/06/2014 10:27 AM
Updated: 06/30/2024 02:47 PM
Changes: 06/06/2014 10:27 AM (50), 04/03/2019 08:16 AM (26), 06/30/2024 02:47 PM (16)
Complete: 🔍
Cache ID: 18:21D:40

Discussion

No comments yet. Languages: en.

Please log in to comment.

Might our Artificial Intelligence support you?

Check our Alexa App!