Qualys Security Advisory QSA-2017-02-22

February 22, 2017

Insecure CrossDomain.XML in D-Link DCS Series Cameras

Synopsis

D-Link DCS series network cameras have a weak/insecure CrossDomain.XML file which allows sites hosting malicious flash object to access and/or change device's settings.

Reference: http://us.dlink.com/product-category/home-solutions/view/network-cameras/

CVE: http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=2017-7852

Vendor Response: In 2016 D-Link phased in CSRF mitigation on all CGI on the cameras so an injection like this would not be allowed authenticated or unauthenticated. Please refer to the tracking table at the bottom of this report which includes the H/W Revision and firmware when this CSRF mitigation was enabled.

Vulnerability Details

Lab Setup:

Vulnerable/Tested Version:

DCS-933L running firmware version 1.03 is affected. However, the latest firmware for this device and as well as other devices like DCS-5030L, DCS-5020L, DCS-2530L, DCS-2630L, DCS-930L, DCS-932L, DCS-932LB1 etc. have same file containing weak or improper configurations.

Note: It seems that all DCS series network cameras have same file containing weak or improper configurations but this has not been checked on all models.

Vulnerability: Insecure CrossDomain.XML file vulnerability

An unauthenticated, remote attacker could host a malicious Flash file on his website that makes requests to the victim's device without having credentials.

Risk Factor: High

Impact:

If a victim is logged in to the camera's web console and visits a malicious site hosting a malicious Flash file from another tab in the same browser, the malicious flash file can send requests to the victim's DCS series Camera without knowing the credentials. An attacker can host a malicious Flash file which can retrieve Live Feeds or information from victims DCS series Camera, add new admin users or make other changes to the device.

CVSS Score: AV: N/AC: L/AU: N/C:C/I: N/A:C

Proof-of-Concept

The following steps outline a proof-of-concept for exploiting this vulnerability:

  1. Build a Flash file using Flex SDK which would access Advance.htm from the target device and send the response to an attacker's site.
  2. Download this file and copy it to the WebRoot of http://Maliciousxxxx.com.
  3. Log into the Camera's web admin console and then visit http://Maliciousxxxx.com/FlashMe2.swf.

The process involves:

  • A Flash object sending a GET request to http://CameraIP/advanced.htm.
  • The Flash object then sending the received response from the Camera to the attacker's site.

This allows requesting other pages and retrieving sensitive information, such as Live Video feeds. It can also be used to add an admin user to the device. A publically available CrossDomain.XML Hacking Proof-of-Concept tool was used for this demonstration.

The following screenshots illustrate the process:

  • Screenshots show there are no other users on the device initially.
  • Demonstration of a request to add user 'admin1'.
  • Confirmation that user 'admin1' was added successfully.

Tracking Table

D-Link ModelH/W versionFW version
DCS-2132LBv2.12.00
DCS-2330LAv1.13.00
DCS-2310LBv2.03.00
DCS-5029LAv1.12.00
DCS-5222LBv2.12.00
DCS-6212LAv1.00.12
DCS-7000LAv1.04.00
DCS-2132LAv1.08.01
DCS-2136LAv1.04.01
DCS-2210LAv1.03.01
DCS-2230LAv1.03.01
DCS-2310LAv1.08.01
DCS-2332LAv1.08.01
DCS-6010LAv1.15.01
DCS-7010LAv1.08.01
DCS-2530LAv1.00.21
DCS-930LAv1.15.04
DCS-930LBv2.13.15
DCS-932LAv1.13.04
DCS-932LBv2.13.15
DCS-934LAv1.04.15
DCS-942LAv1.27
DCS-942LBv2.11.03
DCS-931LAv1.13.05
DCS-933LAv1.13.05
DCS-5009LAv1.07.05
DCS-5010LAv1.13.05
DCS-5020LAv1.13.05
DCS-5000LAv1.02.02
DCS-5025LAv1.02.10
DCS-5030LAv1.01.06

Potential Mitigation per CWE

Avoid using wildcards (*) in the cross-domain.xml policy file. Any domain matching a wildcard expression is implicitly trusted and can perform two-way interaction with the target server.

For Flash, modify crossdomain.xml to use meta-policy options such as 'master-only' or 'none' to reduce the possibility of an attacker planting extraneous cross-domain policy files on a server.

Adobe Recommendation: http://www.adobe.com/devnet/flashplayer/articles/cross_domain_policy.html

Credits

The discovery and documentation of this vulnerability were conducted by Kapil Khot, Qualys Vulnerability Signature/Research Team.

Contact

For more information about the Qualys Security Research Team, visit their website at http://www.qualys.com or send email to research@qualys.com.

Legal Notice

The information contained within this advisory is Copyright (C) 2017 Qualys Inc. It may be redistributed provided that no fee is charged for distribution and that the advisory is not modified in any way.

PDF preview unavailable. Download the PDF instead.

qsa-2017-02-22 Microsoft Word 2016 Microsoft Word 2016

Related Documents

Preview D-Link Vigilance Outdoor Dome Camera Quick Installation Guide
This Quick Installation Guide from D-Link provides essential steps for setting up and configuring Vigilance Outdoor Dome Cameras (DCS-4612EK, DCS-4614EK, DCS-4618EK). It covers hardware overview, package contents, system requirements, mounting, waterproofing, and software installation for optimal security camera performance.
Preview D-Link DCS-2802KT-EU Wire-Free Camera Kit User Manual | Setup & Guide
Comprehensive user manual for the D-Link DCS-2802KT-EU Wire-Free Camera Kit. Learn how to set up, install, and use the mydlink app for remote monitoring, motion detection, and storage management.
Preview D-Link Vigilance Outdoor Dome Camera Quick Installation Guide
Quick installation guide for D-Link Vigilance Outdoor Dome Camera models DCS-4612EK, DCS-4614EK, and DCS-4618EK, covering setup, mounting, and configuration.
Preview D-Link Vigilance Outdoor Dome Camera Quick Installation Guide
Get started with your D-Link Vigilance Outdoor Dome Camera (DCS-4614EK, DCS-4618EK) using this comprehensive Quick Installation Guide. Learn about hardware features, package contents, system requirements, setup wizard installation, camera configuration, mounting procedures, and waterproofing your installation. Visit dlink.com/support for more resources.
Preview D-Link 2020 Product Catalogue: Comprehensive Networking Solutions
Discover the D-Link 2020 Product Catalogue, featuring a wide range of networking equipment including switches, routers, wireless access points, surveillance cameras, and more, designed for both home and business users.
Preview D-Link DCS-8627LH Quick Installation Guide
Get started with your D-Link DCS-8627LH Wi-Fi camera. This guide provides essential information on system requirements, step-by-step setup instructions using Smart Bluetooth or QR Code, and answers to frequently asked questions to help you quickly install and configure your device.
Preview D-Link Full HD Pan & Tilt Wi-Fi Camera DCS-8525LH Quick Start Guide
A quick start guide for the D-Link Full HD Pan & Tilt Wi-Fi Camera, model DCS-8525LH. Includes setup instructions, minimum requirements, troubleshooting, and support information.
Preview D-Link DCS-4701E Vigilance HD Outdoor PoE Mini Bullet Camera Quick Installation Guide
A quick installation guide for the D-Link DCS-4701E Vigilance HD Outdoor PoE Mini Bullet Camera, covering hardware overview, configuration, mounting, and waterproofing.