CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2017 · Dlink

CVE-2017-8412
Dlink Dcs-1130 Firmware vulnerability

An issue was discovered on D-Link DCS-1100 and DCS-1130 devices. The device has a custom binary called mp4ts under the /var/www/video folder. It seems that this binary dumps the HTTP VERB in the system logs. As a part of doing that it retrieves the HTTP VERB sent by the user and uses a vulnerable sprintf function at address 0x0000C3D4 in the function sub_C210 to copy the value into a string and then into a log file. Since there is no bounds check being performed on the environment variable at address 0x0000C360 this results in a stack overflow and overwrites the PC register allowing an attacker to execute buffer overflow or even a command injection attack.

Affected products

Dcs-1130 Firmware, Dcs-1100 Firmware. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Dlink Dcs-1130 Firmware runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

More vulnerabilities in Dlink products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.