Code reuse exposes over 120 D-Link devices models to hacking

A vulnerability in a service shared by many D-Link products allows attackers to take over cameras, routers and other devices

A recently discovered vulnerability in a D-Link network camera that allows attackers to remotely take over the device also exists in more than 120 other D-Link products.

The vulnerability was initially discovered a month ago by researchers from security start-up firm Senrio in D-Link DCS-930L, a Wi-Fi enabled camera that can be controlled remotely through a smartphone app.

The flaw, a stack overflow, is located in a firmware service called dcp, which listens to commands on port 5978. Attackers can trigger the overflow by sending specifically crafted commands and then can execute rogue code on the system.

The Senrio researchers used the flaw to silently change the administrator password for the Web-based management interface, but it could also be used to install malware on the device.

It turns out that the dcp service is part of the agent that connects the device with the manufacturer's mydlink service. This is the cloud-based service that allows users to control their devices from outside their networks through a smartphone app and is not unique to DCS-930L cameras.

In fact, in a detailed report sent via email, Senrio said that D-Link investigated the issue and found that it affects over 120 different models of its various products, including cameras, routers, access points, modems and storage devices.

D-Link did not immediately respond to a request for comment.

Using the Shodan search engine, the Senrio researchers have identified over 400,000 D-Link devices that expose a Web interface to the Internet. Many of them are webcams.

It's not exactly clear how many of these devices are vulnerable, without D-Link publishing a full list of affected device models and firmware versions. However, there are some statistics available for D-Link DCS-930L: The researchers found around 55,000 such cameras on the internet and over 14,000 of them were running a firmware version that has this vulnerability.

The security of embedded devices has lagged behind that of personal computers. Basic flaws like stack and buffer overflows have largely disappeared from modern operating systems due to various mitigations added over the years, but they are still plaguing networking, IOT and industrial devices.

While years ago consumer embedded devices like routers, surveillance cameras and network attached storage boxes did not represent an attractive target for attackers, that has now changed.

Just recently researchers found over a hundred DDoS botnets made up primarily of compromised surveillance cameras. Attackers also hijacked the DNS settings of thousands of routers in recent years in order to inject rogue ads into users' traffic or to direct users to malicious websites.

Join the CSO newsletter!

Error: Please check your email address.

More about DCS

Show Comments

Featured Whitepapers

Editor's Recommendations

Solution Centres

Stories by Lucian Constantin

Latest Videos

  • 150x50

    CSO Webinar: The Human Factor - Your people are your biggest security weakness

    ​Speakers: David Lacey, Researcher and former CISO Royal Mail David Turner - Global Risk Management Expert Mark Guntrip - Group Manager, Email Protection, Proofpoint

    Play Video

  • 150x50

    CSO Webinar: Current ransomware defences are failing – but machine learning can drive a more proactive solution

    Speakers • Ty Miller, Director, Threat Intelligence • Mark Gregory, Leader, Network Engineering Research Group, RMIT • Jeff Lanza, Retired FBI Agent (USA) • Andy Solterbeck, VP Asia Pacific, Cylance • David Braue, CSO MC/Moderator What to expect: ​Hear from industry experts on the local and global ransomware threat landscape. Explore a new approach to dealing with ransomware using machine-learning techniques and by thinking about the problem in a fundamentally different way. Apply techniques for gathering insight into ransomware behaviour and find out what elements must go into a truly effective ransomware defence. Get a first-hand look at how ransomware actually works in practice, and how machine-learning techniques can pick up on its activities long before your employees do.

    Play Video

  • 150x50

    CSO Webinar: Get real about metadata to avoid a false sense of security

    Speakers: • Anthony Caruana – CSO MC and moderator • Ian Farquhar, Worldwide Virtual Security Team Lead, Gigamon • John Lindsay, Former CTO, iiNet • Skeeve Stevens, Futurist, Future Sumo • David Vaile - Vice chair of APF, Co-Convenor of the Cyberspace Law And Policy Community, UNSW Law Faculty This webinar covers: - A 101 on metadata - what it is and how to use it - Insight into a typical attack, what happens and what we would find when looking into the metadata - How to collect metadata, use this to detect attacks and get greater insight into how you can use this to protect your organisation - Learn how much raw data and metadata to retain and how long for - Get a reality check on how you're using your metadata and if this is enough to secure your organisation

    Play Video

  • 150x50

    CSO Webinar: How banking trojans work and how you can stop them

    CSO Webinar: How banking trojans work and how you can stop them Featuring: • John Baird, Director of Global Technology Production, Deutsche Bank • Samantha Macleod, GM Cyber Security, ME Bank • Sherrod DeGrippo, Director of Emerging Threats, Proofpoint (USA)

    Play Video

  • 150x50

    IDG Live Webinar:The right collaboration strategy will help your business take flight

    Speakers - Mike Harris, Engineering Services Manager, Jetstar - Christopher Johnson, IT Director APAC, 20th Century Fox - Brent Maxwell, Director of Information Systems, THE ICONIC - IDG MC/Moderator Anthony Caruana

    Play Video

More videos

Blog Posts

Market Place