IoT RCE, a Study With Disney
Lilith Wyatt (Research Engineer · Cisco Talos)
BruCON 0x0A · Day 3
Overview
In this insightful talk from BruCON, Lilith Wyatt, a Research Engineer on the vulnerability development team at Cisco Talos, delves into the security vulnerabilities discovered in the Disney Circle device. Marketed as a parental control solution designed to protect children online, the Disney Circle ironically exhibited a wide array of critical security flaws, including multiple avenues for remote code execution (RCE). Wyatt, along with her colleague Claudio Bozzato, undertook a comprehensive reverse engineering and vulnerability research project on the device, uncovering 23 distinct vulnerabilities.

Key moments
- 0:00 Introduction to Talos and Disney Circle project
- 2:30 Why IoT devices are attractive vulnerability targets
- 7:00 Disney Circle overview, ARP poisoning, 23 vulnerabilities
- 10:00 Technical deep dive: use after realloc vulnerability
- 18:00 SSL certificate validation bypass with TLD extension attack
- 24:30 Novel 4-byte command injection via Wi-Fi SSID
- 32:50 Cloud routing vulnerability and connecting to any device
- 46:00 Live demo attempt of a command injection exploit
IoT RCE, a Study With Disney
Speakers: Lilith Wyatt, Research Engineer, Cisco Talos
Conference: BruCON
YouTube: https://www.youtube.com/watch?v=X-FQ9NySBX4
Overview
In this insightful talk from BruCON, Lilith Wyatt, a Research Engineer on the vulnerability development team at Cisco Talos, delves into the security vulnerabilities discovered in the Disney Circle device. Marketed as a parental control solution designed to protect children online, the Disney Circle ironically exhibited a wide array of critical security flaws, including multiple avenues for remote code execution (RCE). Wyatt, along with her colleague Claudio Bozzato, undertook a comprehensive reverse engineering and vulnerability research project on the device, uncovering 23 distinct vulnerabilities.
The presentation serves as a stark case study on the often-overlooked security posture of Internet of Things (IoT) devices, particularly those aimed at consumer markets where ease of use often trumps robust security implementations. Wyatt highlights the critical importance of secure development practices, even for seemingly innocuous home devices. By dissecting the Disney Circle's weaknesses, from memory management issues to flawed SSL certificate validation and creative command injection vectors, the talk provides valuable lessons for both IoT developers and security professionals striving to secure the ever-expanding landscape of connected devices.
Background
▶ Watch: Introduction to Talos and Disney Circle project (0:00)
The proliferation of IoT devices has introduced a new frontier for cybersecurity, often characterized by immature security practices and a rush to market. Wyatt emphasizes that IoT is a "very fresh field" where devices are generally "not as hard and as your current 64-bit windows implementations." These devices typically feature 32-bit (more common) or 64-bit ARM or MIPS processors, external sensors, and communicate via Wi-Fi, ZigBee, or Bluetooth. Common security pitfalls in the IoT space include asynchronous communications, a severe lack of reliable firmware update mechanisms (often due to the cost or lack of established methods), auto-configuration for ease of setup (targeting "grandma grandpa" users), exposed network ports, and buggy code.
Wyatt illustrates these issues with examples such as the Mirai botnet, which leveraged default credentials to compromise millions of devices. She contrasts "doing it wrong" with "doing it right." The Foscam IP security camera, for instance, was found to have over 30 remote code execution vulnerabilities by her colleague Claudio, demonstrating a severe lack of security. Conversely, the Amazon Key Cloud Cam is praised for its robust design, particularly its outbound-only, encrypted communication model, which significantly limits attack surface; it only allows Bluetooth connections during initial setup. This highlights the need for industry standards and best practices to elevate the baseline security of IoT products. The Disney Circle, unfortunately, fell into the "doing it wrong" category, presenting a compelling, albeit concerning, example of these systemic issues.
Key Findings
▶ Watch: Disney Circle overview, ARP poisoning, 23 vulnerabilities (7:00)
The research into the Disney Circle uncovered a total of 23 vulnerabilities, many of which led to remote code execution. While not all were assigned CVEs, the sheer volume and severity of the findings were significant, especially for a device designed to enhance family safety. The vulnerabilities spanned several categories, with a notable prevalence of command injection and memory management issues.
Key findings discussed in detail include:
- Use-After-Realloc Vulnerability: A memory corruption bug found in the device's Apache web server, allowing for unauthenticated access to sensitive user data.
- SSL Attribute Parsing Flaws: Exploiting a deprecated OpenSSL function and a flawed substring check (
strstr) to bypass certificate validation and conduct man-in-the-middle attacks against critical cloud communications. This was dubbed the TLD Extension Attack. - Wi-Fi SSID Command Injections: A series of vulnerabilities related to how the device processed Wi-Fi SSIDs, leading to both insecure access point setup and novel command injection vectors, including a 4-byte payload RCE and a drive-by denial-of-service.
- Cloud Routing Vulnerability: A critical design flaw in the remote parental control mechanism, allowing an attacker to enumerate and potentially connect to any Disney Circle device globally by leveraging predictable authentication tokens.
- SMS Vulnerability: An unauthenticated request that could trigger an SMS message to the device owner.
These vulnerabilities collectively painted a picture of a product with fundamental security shortcomings, undermining its stated purpose of child protection.
Technical Deep Dive
▶ Watch: SSL certificate validation bypass with TLD extension attack (18:00)
The technical depth of the vulnerabilities discovered in the Disney Circle illustrates various classes of software flaws, from low-level memory issues to application logic and network protocol weaknesses.
Use-After-Realloc Vulnerability (CVE-2018-4033)
This vulnerability stemmed from the improper handling of memory reallocations. Wyatt provides a primer on heap memory management, contrasting malloc, calloc, and free with realloc. A key insight is that realloc does not guarantee that the returned pointer will be the same as the original; if the memory chunk needs to be moved (e.g., to a larger contiguous space or a different memory region like mmap), a new pointer is returned, and the old memory chunk is freed. If a program fails to update all pointers referencing the original memory location, a dangling pointer is created, leading to a Use-After-Free (UAF) or, in this case, a Use-After-Realloc condition.
The specific bug was found in the device's Apache web server running on port 80. An unauthenticated attacker could send a specially crafted HTTP request. The server's handling of the Access-Control-Allow-Origin HTTP header involved a realloc operation where the original pointer was not correctly updated after the memory chunk was moved. This allowed an attacker to trigger a UAF condition, leading to the leakage of sensitive data, including phone numbers, addresses, emails, and potentially passwords, from a private user credential database. The vulnerability was exacerbated by the server's use of non-standard C++ memory allocation routines, which added to the complexity of exploitation.
SSL Attribute Parsing and TLD Extension Attack (CVE-2018-4032, CVE-2018-4034, CVE-2018-4035)
The Disney Circle relied on SSL certificates for secure communication, but its validation logic was critically flawed. The device utilized the deprecated OpenSSL function X509_NAME_oneline to parse certificate attributes. This function concatenates all certificate fields (e.g., Common Name, Organization, Organizational Unit) into a single, null-terminated C string. The device then performed a simple strstr check to see if the string meetcircle.com was present within this single line.
Initially, attackers might consider embedding meetcircle.com within another attribute, such as CN.meetcircle.com or O=CN.meetcircle.com. However, the Disney Circle implemented certificate pinning, hardcoding trust in certificates signed by Comodo and Entrust. These Certificate Authorities (CAs) would not sign such clearly malicious certificates, or if they did, they would overwrite other attributes, preventing the strstr match.
Wyatt and Bozzato devised the TLD Extension Attack. Recognizing that strstr only checks for the presence of the substring, they registered valid domains that contained meetcircle.com as a substring, but with an extended Top-Level Domain (TLD), such as meetcircle.company or meetcircle.ninja. Since these are legitimate TLDs, a trusted CA would sign a certificate for meetcircle.company. When this certificate was parsed by X509_NAME_oneline, the resulting string would contain meetcircle.com as a substring, satisfying the strstr check. This allowed them to successfully man-in-the-middle (MitM) three different SSL connections:
- Blue Coat DNS filtering: Intercepting all DNS queries made by children, which were sent to Blue Coat servers for filtering. This could be abused to whitelist malware domains.
- Our Client Link: Immediately upon the first connection, administrator credentials (MAC address - random blob - date of token creation) were sent over this SSL link, allowing an attacker to gain root access to the device.
- Go Client Link: Another SSL connection for device management.
Wi-Fi SSID Shenanigans (CVE-2018-4036, CVE-2018-4037, CVE-2018-4038)
The device's Wi-Fi handling presented multiple vulnerabilities:
- Insecure Access Point Setup: The Disney Circle was designed for "plug and play" ease of use. If the device was disconnected from its configured Wi-Fi network, it would attempt to reconnect to the last known SSID without re-validating the password or checking for encryption. An attacker could de-authenticate the device, then set up a rogue access point with the same SSID. The Circle would connect to it, allowing the attacker to capture the device and potentially extract the SSID password.
- 4-byte Command Injection via SSID: This was a highly creative RCE vector. When the device scanned for Wi-Fi networks, it would process SSIDs for display to the user. An attacker could broadcast a specially crafted SSID that contained a command injection payload. The SSID length was limited to 32 bytes, and the payload had to bypass internal parsing validation, leaving only a 4-byte window for the actual injection.
Claudio Bozzato crafted the payload: ";nc *;".
The full injected string would eventually be processed by a shell script. The nc (netcat star) command was executed in a specific directory containing two files: run and supervised. Due to globbing in Linux, expanded to run supervised.
The command became nc run supervised.
ncattempted to resolverunas a hostname. If the attacker controlled the local DNS (e.g., by being on the same network),runcould resolve to the attacker's IP address.supervisedwas then interpreted as the port. However,busybox nc(a common embedded netcat variant) would default to port 0 if the port argument was not a valid number.
By controlling the local network, the attacker could redirect traffic from destination port 0 to any other port using iptables rules, effectively establishing a reverse shell with a mere 4-byte command injection payload.
- Drive-by Denial-of-Service (DoS) via SSID: Another SSID parsing flaw, this time during the
iw infocommand output processing via anawkscript. An attacker could broadcast an SSID crafted aschannel: some_string # signal. This would bypass validation and inject a 16-byte payload into a variable used in asetstatement within a script.
The specific payload X/:BS (where X is a placeholder) would create an infinite loop in the shell script. When a Disney Circle device drove by or scanned for this SSID, it would parse the malicious SSID, get stuck in the infinite loop during boot-up, and effectively be bricked or rendered inoperable, leading to a denial-of-service for any affected device.
Cloud Routing Vulnerability (CVE-2018-4039)
The remote parental control feature, allowing parents to monitor children's activity from anywhere, relied on a complex cloud routing mechanism. Wyatt details how this functionality was implemented:
- NAT Traversal (Beaconing): The Disney Circle device would periodically send a UDP ping message outbound to
remote.meetcircle.co. This "beaconing" behavior, similar to attacker techniques like Cobalt Strike, punches a hole through the home's NAT/firewall, allowing inbound connections via a subsequent "pong" message. The first 16 bytes of the ping message contained the device's MAC address. - SSL Tunnel: Once a parent's phone initiated a connection, the cloud server would send a "connect" message through this pinhole. The Circle would then establish an outbound SSL connection to the cloud, which acted as a pipeline between the parent's phone and the device. This custom protocol also carried sensitive data, including admin credentials immediately upon the first connection (as mentioned in the SSL section).
- Flawed Authentication and Routing: The phone stored a PKCS12 blob in a SQLite database for authentication. Initially, Wyatt suspected strong cryptographic ties. However, it was discovered that the system did not actually depend on the SSL certificate for device validation. Instead, the critical piece for both authentication and routing was a specific authentication token embedded in the request. This token was generated from the device's MAC address, a random blob, and the date of creation.
Crucially, only the first few bytes of the MAC address (the Organizational Unique Identifier, OUI) were used for routing. Since the OUI is specific to the manufacturer (Circle) and thus identical for all Disney Circle devices, this reduced the entropy of the routing mechanism to just three bytes. An attacker could easily iterate through these few bytes, effectively enumerating and connecting to any Disney Circle device globally, bypassing any firewalls due to the beaconing mechanism. This allowed for universal remote access to any device with a predictable token.
SMS Vulnerability
As a final, minor finding, Wyatt noted an unauthenticated request that could trigger an SMS message to the device owner. This could be used for harassment or to cause concern, though it didn't directly lead to RCE.
Demo / Proof of Concept
▶ Watch: Novel 4-byte command injection via Wi-Fi SSID (24:30)
Lilith Wyatt attempted a live demonstration during the talk to showcase the exploitation of one of the command injection vulnerabilities. The specific bug targeted was one that allowed for injection into a script responsible for pulling firmware updates. The intended proof of concept involved:
- Triggering the command injection: Making the Disney Circle reach out to an attacker-controlled server.
- Grabbing a certificate: Installing an SSH certificate onto the device.
- Gaining SSH access: Using the installed certificate to establish an SSH connection and achieve root access.
Unfortunately, the live demo encountered technical difficulties, likely due to the device having been previously exploited and its state not being fully reset, or issues with the network setup. While the live demonstration did not fully succeed, Wyatt confirmed that the exploit had worked reliably in testing ("it did work a long time ago"). The core idea was to leverage the command injection to manipulate the device's firmware update process, ultimately installing an SSH key for persistent root access.
Defensive Implications
▶ Watch: Live demo attempt of a command injection exploit (46:00)
The Disney Circle case study offers critical lessons for both IoT manufacturers and consumers regarding device security:
- For IoT Manufacturers and Developers:
- Secure Memory Management: Implement robust memory allocation and deallocation practices. Always ensure all pointers are updated after
reallocoperations to prevent dangling pointers and Use-After-Free vulnerabilities. Consider using safer alternatives or wrappers. - Input Validation is Paramount: Rigorously validate all user-supplied input, especially from external sources like Wi-Fi SSIDs or network requests. Assume all input is malicious.
- Avoid Deprecated Functions: Do not use deprecated functions, especially in security-critical contexts like SSL/TLS certificate parsing. These functions are often deprecated for known security flaws or poor design.
- Robust Certificate Validation: Implement comprehensive certificate validation beyond simple
strstrchecks. Utilize proper hostname validation, chain of trust verification, and consider certificate pinning carefully and correctly. Ensure the entire certificate, not just a substring, is validated against expected values. - Separate Authentication and Routing: Authentication tokens should be cryptographically strong and unique, and should never double as routing identifiers. Routing should be handled by network infrastructure, not by sensitive authentication credentials.
- Secure Remote Access: If remote access is necessary, design it with security in mind. Avoid "beaconing" patterns that create persistent firewall holes. Implement strong, unique, and non-predictable authentication for every device.
- Secure Firmware Updates: Ensure firmware update mechanisms are cryptographically signed, verified, and impervious to injection attacks. This is a common vector for persistent compromise.
- Adopt Established Standards: Where possible, leverage established, well-vetted security standards and protocols rather than rolling custom solutions, which frequently introduce new vulnerabilities.
- Principle of Least Privilege: Devices should only have the necessary permissions and network access to perform their functions. Outbound-only connections, as seen in the Amazon Key Cloud Cam, can significantly reduce attack surface.
- For Consumers:
- Be Skeptical of "Smart" Devices: Understand that convenience often comes at the cost of security. Research the security track record of IoT device manufacturers.
- Network Segmentation: Isolate IoT devices on a separate VLAN or guest network to limit their ability to interact with other sensitive devices on your home network if compromised.
- Regular Updates: Ensure all IoT devices are updated with the latest firmware. If a device does not offer clear, consistent update mechanisms, it's a red flag.
- Change Default Credentials: Always change default usernames and passwords immediately after setup.
- Consider Alternatives: If a device's security model seems weak or questionable, consider non-smart alternatives or more reputable brands.
Key Takeaways
- IoT Security is Immature: Many IoT devices, particularly consumer-grade ones, suffer from fundamental security flaws due to prioritizing ease-of-use and speed-to-market over robust security.
- Deprecated Functions are Dangerous: Using outdated or deprecated library functions (e.g.,
X509_NAME_oneline) can introduce critical vulnerabilities, especially in security-sensitive contexts like SSL/TLS. - Creative Exploitation Bypasses Controls: Simple string matching for certificate validation can be bypassed by ingenious techniques like the TLD Extension Attack, even with certificate pinning in place.
- Input Validation is Crucial Everywhere: Seemingly innocuous inputs, like Wi-Fi SSIDs, can be leveraged for sophisticated command injection attacks, even with severe length and character restrictions.
- Authentication & Routing Must Be Robust: Using predictable or easily enumeratable tokens for both authentication and routing can lead to universal compromise, allowing attackers to access any device globally.
- Vendor Collaboration is Key: Despite the severe findings, the Disney Circle team was responsive and cooperative in fixing the vulnerabilities, highlighting the importance of responsible disclosure.
About the Speaker(s)
Lilith Wyatt is a Research Engineer on the vulnerability development team at Cisco Talos. In this role, she focuses on reverse engineering and finding zero-day vulnerabilities in third-party software, excluding Cisco's own products. Wyatt is known for her work in breaking various systems, including those from Microsoft, Apple, Oracle, VMware, Zabbix, and Monero. She emphasizes the collaborative nature of her team, crediting her team lead, Claudio Bozzato, for his embedded systems expertise and contributions to the Disney Circle project. Wyatt is dedicated to responsible disclosure, working with vendors to patch vulnerabilities before public release.