header-logo
Suggest Exploit
vendor:
My Cloud Mirror
by:
Kacper Szurek
7,5
CVSS
HIGH
Remote Code Execution and Authentication Bypass
78
CWE
Product Name: My Cloud Mirror
Affected Version From: 2.11.153
Affected Version To: 2.11.156
Patch Exists: YES
Related CWE: N/A
CPE: N/A
Metasploit: N/A
Other Scripts: N/A
Tags: N/A
CVSS Metrics: N/A
Nuclei References: N/A
Nuclei Metadata: N/A
Platforms Tested: N/A
2017

WD My Cloud Mirror 2.11.153 RCE and Authentication Bypass

It’s possible to execute arbitrary commands using login form because `exec()` function is used without `escapeshellarg()`. It's possible to bypass login form because function only check if `$_COOKIE['username']` and `$_COOKIE['isAdmin']` exist.

Mitigation:

Update to version 2.11.157
Source

Exploit-DB raw data:

# Exploit Title: WD My Cloud Mirror 2.11.153 RCE and Authentication Bypass
# Date: 24.01.2017
# Software Link: https://www.wdc.com
# Exploit Author: Kacper Szurek
# Contact: https://twitter.com/KacperSzurek
# Website: https://security.szurek.pl/
# Category: local
 
1. Description

It’s possible to execute arbitrary commands using login form because `exec()` function is used without `escapeshellarg()`.

It's possible to bypass login form because function only check if `$_COOKIE['username']` and `$_COOKIE['isAdmin']` exist.

https://security.szurek.pl/wd-my-cloud-mirror-211153-rce-and-authentication-bypass.html

2. Proof of Concept

For RCE simply use as username:

a" || your_command_to_execute || "

For authentication bypass set COOKIES:

username=1; isAdmin=1

and then visit for example php/users.php