Skip to content

Latest commit

 

History

History
29 lines (14 loc) · 911 Bytes

firewallv6.md

File metadata and controls

29 lines (14 loc) · 911 Bytes

D-Link SetIPv6FirewallSettings CMD Injection

Product: D-Link DIR-878(Refer: http://www.dlink.com.cn/home/product?id=2961&hid=27)

Version: The latest firmware -- 1.12(Download Link: http://support.dlink.com.cn/ProductInfo.aspx?m=DIR-878)

Vulnerability Type: Command Injection

Institution: 360 ESG / Legendsec Information Technology(Beijing)Inc.

Vulnerability Description

A command Injection vulnerability allows attackers to execute arbitrary OS commands via a crafted /HNAP1 POST request. This occurs when any HNAP API function triggers a call to the twsystem function with untrusted input from the request body for the SetIPv6FirewallSettings API function (need authentication).

In /lib/librcm.so binary.

FIREWALL_IPv6_FILTER_run method:

POC