###################################################################### # Exploit Title: Buffalo WZR-HP-G300NH2 CSRF Vulnerability # Author: Prayas Kulshrestha # E-mail: officialnlsprayas@gmail.com # Category: Hardware # Google Dork: N/A # Date: 06/10/2013 # Vendor: http://www.buffalotech.com # Model: WZR-HP-G300NH2 # Firmware Version: DD-WRT v24SP2-MULTI (10/31/11) std - build 17798 # Product: http://www.buffalo-asia.com/hongkong/products/product_details.php?id=466&name=WZR-HP-G300NH2 # Tested on: Windows 7 (ultimate) 64-bit ###################################################################### #Introduction ============== WZR-HP-G300NH2 is a high speed wireless LAN solution and complies with standard IEEE 802.11n 300 Mbps as well as High Power feature. Wired LAN also supports the Gigabit Ethernet that no matter in the wired or wireless transmission, WZR-HP-G300NH2 brings the high quality video era and realizes the comfortable wireless network environment. Wireless Security Supports WPA2-PSK (AES, TKIP), WPA-PSK (AES, TKIP), 128/64-bit WEP and sets the wireless security of each level respectively. USB2.0 port may be connected to Buffalo's USB external hard drive for network storage after simple setting. #Description of Vulnerability ============================= There is a CSRF vulnerability in the Buffalo WZR-HP-G300NH2 and any one easily change or manipulate the admin username and password. This is will POST request and any one can craft malicious html form with specially crafted POST request to the router and on execution of the form the router's user name and password can be changed to anything. #Exploit ========

# This is the PoC for the CSRF vulnerability in the buffalo router Powered by DD-WRT v24SP2-MULTI (10/31/11) std (SVN revision 17798)

## click below to see the magic

##

    ==========
    Save this as anything.htm and this will change the router's user name and password.
    username:root
    password:hacked

    #Greetz to : All Indian Hackers.