<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by harmless-teddy on Medium]]></title>
        <description><![CDATA[Stories by harmless-teddy on Medium]]></description>
        <link>https://medium.com/@harmless-teddy?source=rss-9b4b30de9419------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*8G19MiuVDugBu8IIh08nrA.png</url>
            <title>Stories by harmless-teddy on Medium</title>
            <link>https://medium.com/@harmless-teddy?source=rss-9b4b30de9419------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 11:04:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@harmless-teddy/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[I Reverse-Engineered an Enterprise VPN Client, and the “Security” Turned Out to Be Constants in a…]]></title>
            <link>https://harmless-teddy.medium.com/i-reverse-engineered-an-enterprise-vpn-client-and-the-security-turned-out-to-be-constants-in-a-d56534544dd0?source=rss-9b4b30de9419------2</link>
            <guid isPermaLink="false">https://medium.com/p/d56534544dd0</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[china]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[news]]></category>
            <category><![CDATA[servers]]></category>
            <dc:creator><![CDATA[harmless-teddy]]></dc:creator>
            <pubDate>Mon, 22 Jun 2026 17:06:23 GMT</pubDate>
            <atom:updated>2026-06-22T17:06:23.555Z</atom:updated>
            <content:encoded><![CDATA[<h3>I Reverse-Engineered an Enterprise VPN Client, and the “Security” Turned Out to Be Constants in a Binary</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*b061ecPKTAJCaHBo_BbZYw.png" /></figure><p>How a weekend project to build a nicer Linux client for H3C iNode turned into a<br>tour of forgeable posture checks, a pre-auth crash that took down my own laptop,<br>and a private cloud that handed out root to anyone who asked nicely.</p><p>Publishing metadata — copy into Medium’s fields, then delete this section</p><p>- SEO title: Breaking H3C iNode: When “Security” Is Just Constants in a Binary<br>- Subtitle / dek: Reverse-engineering an enterprise VPN/NAC client, forging its posture checks, and touring the unauthenticated cloud behind it.<br>- Meta description (~155 chars): I reverse-engineered H3C’s iNode VPN/NAC client and its “security” was hardcoded constants — then the cloud behind it handed out root. 119k are on Shodan.<br>- Tags (5): Cybersecurity · Reverse Engineering · Penetration Testing · Infosec · Vulnerability<br>- Estimated read: ~16 minutes<br>- Topic / kicker: Security research · Reverse engineering<br>- Hero image idea: a disassembly / hex-dump close-up, or a “127.0.0.1 = admin” visual</p><p>&gt; Quick housekeeping before we start: this is my own authorized research, and I’ve<br>&gt; stripped out anything that could point at a specific organization — no company<br>&gt; names, no company-tagged hostnames, no password hashes, crypto keys, serials, or<br>&gt; credentials, and no public/internet-facing IPs. I’ve kept the internal RFC 1918<br>&gt; private addresses (`10.16.10.x` and friends) because they make the story<br>&gt; clearer and they don’t identify anyone — they’re the same `10.x` ranges sitting<br>&gt; in a million networks. Where a bug belongs to a third-party product, I describe<br>&gt; the class of mistake rather than handing you a copy-paste exploit.</p><p>How I got here</p><p>If you’ve spent any time on a Chinese-vendor enterprise network, you’ve met H3C<br>iNode. It’s the all-in-one client that does your 802.1X login, your captive<br>portal, your SSL VPN, and your “is this laptop allowed on the network” posture<br>check. On Linux it’s a ~71 MB closed-source Qt5 blob that only runs on a handful<br>of blessed distros, ships with an ancient OpenSSL, and quietly installs a<br>USB-blocker, a DLP agent, and a posture collector along the way.</p><p>I just wanted something cleaner — a small, open-source client that could connect<br>without all the baggage. So I sat down to reverse-engineer the protocols and<br>reimplement them properly. Here’s the lucky break: the vendor shipped the<br>libraries unstripped, with full debug symbols. That turned what could’ve been<br>weeks of squinting at disassembly into something much closer to reading source.</p><p>And the more I read, the more one theme kept jumping out: a lot of what looks<br>like security in these protocols is really just constants baked into the<br>binary. Let me show you what I mean.</p><p>Before we dive in, a number to keep in the back of your head. Search Shodan for<br>`product:”H3C”` and you get back 119,103 devices hanging off the public<br>internet. This isn’t one oddly-configured network — it’s a vendor ecosystem that a<br>lot of organizations are running, often with the defaults still in place. So when<br>I say “the secret is the same in every client,” that’s not a hypothetical; it’s<br>six figures of devices sharing it.</p><p>Part 1 — Where’s the actual authentication?</p><p>The posture check is an honor system with a checksum</p><p>Start with EAD — “Endpoint Admission Defense.” The pitch is that it keeps<br>non-compliant machines off the network. Your client reports antivirus status,<br>patch level, firewall, disk encryption, and so on, and the server only lets you in<br>if you look healthy.</p><p>Here’s the thing: when I traced the posture library, the report has no real<br>signature. The only thing sealing it is a keyed-MD5 over a hardcoded seed<br>string, optionally wrapped in XTEA with a hardcoded key. Same values in every<br>client, every session — no nonce, no per-user key, nothing asymmetric.</p><p>So what does that buy an attacker? Everything. If you know those constants — and I<br>do now — you can hand-build a report that says “fully compliant” no matter what<br>shape the machine is actually in. A hostile box walks right through admission<br>control, and because there’s no nonce, you can even replay an old report.</p><p>The packet itself is almost funny once you see it:</p><p>28-byte header:<br> +0 magic (4 fixed bytes)<br> +4 total length<br> +6 16-byte keyed-MD5 checksum ← the entire “integrity” story<br> +22 packet id<br> +26 opcode<br> +28 XML body: &lt;i n=”FIELD”&gt;value&lt;/i&gt; …</p><p>And the body has a convention that tells you everything about the threat model: a<br>check passes when its value is empty. The client only fills in a field to<br>report a failure. So a “perfectly healthy machine” is, almost literally, a blank<br>form with a checksum that anybody can compute. Treat EAD as a way to see honest<br>machines — it tells you nothing about dishonest ones. It is not a boundary.</p><p>Portal will happily log your coworkers off</p><p>Next up, the captive-portal protocol. It authenticates each packet with<br>`MD5(packet ‖ shared_secret)` — plain MD5, not even HMAC — and that shared secret<br>is a network-wide constant that, more often than not, ships as a well-known<br>default.</p><p>Once you know (or guess) that secret, a couple of nasty things open up. The one I<br>keep coming back to: you can forge a logout for anyone’s IP address and kick<br>them off the network whenever you like, because the victim’s IP is right there in<br>the header and logout packets are signed exactly the same way. There’s your clean<br>denial-of-service primitive. On top of that, the CHAP password field is just<br>`MD5(reqId ‖ password ‖ challenge)`, so a single captured login is enough to start<br>cracking it offline. The replay protection? A sequence number or two.</p><p>The “Zero-Trust” knock you can replay</p><p>The Zero-Trust flavor keeps the VPN port invisible until you send a single magic<br>UDP packet — a “knock” carrying an RFC-4226 one-time password. Sounds great, until<br>you notice the OTP counter is a random number the packet carries with it.<br>There’s no moving counter, no time window. The only real secret is a per-client<br>key, which lives in a config file that’s world-readable by default. Capture one<br>knock and you can very likely just send it again to pop the “hidden” port back<br>open.</p><p>Your VPN password goes to whoever holds the cert</p><p>The SSL VPN sends your password in cleartext inside the TLS tunnel. That’s<br>genuinely fine — if the TLS is verified. But these gateways ship self-signed<br>certs with no SAN, so normal validation fails, and operators get nudged into<br>ticking “ignore certificate errors.” The moment they do, anyone sitting on the<br>network path collects the password in the clear. The right move is to pin the<br>cert (trust the exact fingerprint), which is what I built into my client — but<br>“just turn off verification” should never have been the easy path.</p><p>The bug that crashed my laptop (pre-auth, from a tiny file)</p><p>This one’s my favorite, because it bit me. My backend kept dying with<br>`Killed … exit 137` — the kernel’s out-of-memory killer. Great reminder that the<br>client is attack surface too.</p><p>The login flow grabs a CAPTCHA image and decodes the BMP by reading the<br>`width` and `height` straight out of the header, then allocating a<br>`width × height` grid of pixels — before checking those numbers against the<br>file’s actual size. So a 60-byte BMP that claims to be 40000×40000 asks the<br>process for ~100 GB of RAM, and the OOM killer pulls the trigger.</p><p>The kicker: this is reachable before you’ve authenticated to anything, on the<br>default code path. A malicious gateway — or honestly just a flaky one, or anyone<br>on-path when verification is off — can crash the client with a tiny reply. The fix<br>is the boring kind that should’ve been there from day one: bound the dimensions<br>and confirm the pixel data actually fits before you allocate a byte. (I shipped<br>that fix; my laptop has forgiven me 😅.)</p><p>The pattern under all of it</p><p>Notice the thread running through every one of these: the local credential store,<br>the posture seal, the knock — they all lean on hardcoded keys, ECB-mode XTEA, and<br>MD5. That isn’t cryptography against anyone holding the binary, and the binary<br>ships to every customer. If a secret is baked into the client, it isn’t a<br>secret. Treat anything “protected” that way as plaintext.</p><p>Part 2 — Then I looked at the cloud behind it</p><p>The same vendor’s private-cloud stack was sitting behind this client — <br>virtualization managers, storage, a container platform, lights-out management. I<br>looked at it from an authorized pivot: my workstation → an SSH jump box → a SOCKS5<br>tunnel into the tenant network. And honestly? The themes rhymed with Part 1<br>exactly: stuff that answers without auth, “integrity” built on hardcoded<br>secrets, and a network with no internal walls.</p><p>Here’s the lay of the land:</p><p>Subnet Reachable from my pivot Role</p><p>`10.16.10.0/24` ✅ (TCP; ping filtered) The production tenant subnet — most of the live findings <br> `10.16.0.0/24` ❌ from here Legacy BMC / KVM / management plane <br> `10.10.0.0/24` ✅ (the jump box’s own LAN) Out of scope</p><p>And a rough map of that production subnet (roles only, no hostnames):</p><p>Host Role What it leaked</p><p>`10.16.10.1–.3` Switches `.1` exposes its web management UI to the tenant subnet <br> `10.16.10.10/.11/.12/.100` Container/PaaS masters end-of-life platform + runtime, unauth API discovery <br> `10.16.10.16/.17/.120` Virtualization managers unauthenticated metrics/actuator endpoints <br> `10.16.10.18` KVM/console host raw VNC (`5900/5901`) exposed to the whole subnet <br> `10.16.10.19` Backup appliance unauth root file read; database + SMB wide open</p><p>Let me walk you through the ones that mattered.</p><p>Lights-out management that talks to strangers</p><p>The baseboard management controllers — the little always-on computer bolted to<br>every server — were, by a distance, the worst of it. These run AMI MegaRAC<br>underneath, and the legacy `10.16.0.0/24` plane was a buffet.</p><p>The easy stuff first: the BMCs answered an unauthenticated WebSocket (`:8090`)<br>with a full Redfish system summary — manufacturer, serials, UUIDs, firmware<br>versions, account-lockout policy — no login required. And the ancient IPMI RAKP<br>weakness (CVE-2013–4786) on UDP/623 leaks admin password material to any anonymous<br>caller, ready for offline cracking. You only need one server to have a weak<br>password, and on a fleet this size, one of them always does.</p><p>Then the part that made me sit up: these MegaRAC controllers are exposed to<br>CVE-2024–54085, a Redfish authentication bypass that yields an administrator<br>session without credentials, and from there chains into the firmware-update<br>service. That’s not “leak some serials” — that’s owning the hardware underneath the<br>operating system. On top of the public CVE, the KVM login path had a<br>developer “free login” shortcut that issued a console token with no password,<br>and the access controls that did exist were enforced in the browser (flags in<br>`sessionStorage`, plus that five-second “lockout”) — so they weren’t really<br>enforced at all.</p><p>And a cluster of smaller-but-real issues on the same boxes, each its own finding:</p><p>- A path-traversal file read in a download endpoint — directory traversal<br> walked out of the intended folder to arbitrary files.<br>- An IDOR password reset — the reset API trusted a user ID from the request<br> body instead of the session, so a low-privilege user could reset the admin’s<br> password.<br>- Unauthenticated virtual-media (IUSB) injection on TCP 5124–5127 — enough to<br> map a virtual USB device and influence boot media.<br>- A custom H3C management service on TCP 7582 that answered unauthenticated and<br> exposed what looked like a memory-page read primitive (with a length field that<br> smelled like a heap overflow under fuzzing).</p><p>If you take one thing from this section: your BMC is a second, invisible computer<br>with total control over the real one. Here it was reachable, unauthenticated,<br>exploitable down to firmware, and one known CVE away from game over. It belongs on<br>an isolated management VLAN, patched past the AMI fix, with Redfish behind real<br>auth, IPMI off or locked down, and every “free-login”-style shortcut removed.</p><p>“Signed” requests that anyone can sign → root file read, no login</p><p>This is the hardcoded-secret pattern from Part 1, wearing a different hat. A backup<br>appliance (`10.16.10.19`) “protected” its API with a `sign` field — which turned<br>out to be AES-CBC using a key and IV baked straight into the client<br>JavaScript. So the signature isn’t proof of anything; it’s a value anyone can<br>fetch from the page and reproduce. Pair that with a `download?filepath=` endpoint<br>that never validated the path, and an unauthenticated attacker could read any<br>file on the box as root: the local account database, the admin UI’s TLS private<br>key, the full logs, every config. From “first packet” to “reading files I had no<br>business reading,” once I’d worked out the crypto, was about twenty minutes.</p><p>The fix is the same sentence every time: integrity has to be an HMAC with a<br>per-install secret that only the server knows, and file parameters have to be<br>allow-listed. A constant in the client is not a key.</p><p>The container platform answered to anyone</p><p>The masters on `10.16.10.10/.11/.12` were a Kubernetes/PaaS cluster, and they were<br>leaking control-plane reach in a few independent ways:</p><p>- The Docker Engine API was exposed on TCP 2375 — the plaintext, no-auth<br> variant. A reachable `dockerd` socket like that is, for practical purposes,<br> container-to-host-root: launch a privileged container, mount the host filesystem,<br> done.<br>- The kubelet API was reachable on TCP 10250. Depending on the<br> `anonymous-auth` setting that’s anywhere from info disclosure to running commands<br> inside pods.<br>- OpenStack Glance (9292), an unauthenticated Jaeger tracing UI (16686), and a<br> pile of other internal services (ZooKeeper, Ceph, raw ZeroMQ sockets, an<br> OpenStack image registry) were all answering on the tenant subnet.</p><p>And underneath all that, the platform itself was end-of-life — an<br>orchestrator build that stopped getting upstream patches years ago, on a language<br>runtime that’s also EOL, so every TLS/HTTP CVE since is permanently unfixed. An<br>open `/openapi/v2` (plus the OAuth discovery document) cheerfully published the<br>whole internal API schema and internal hostnames to anonymous visitors.</p><p>EOL isn’t a hygiene footnote — it’s a standing promise that known exploits will<br>never be fixed. Pair “permanently unpatched” with “Docker 2375 wide open” and you<br>don’t need a clever chain; you need a firewall rule that was never written.</p><p>A VNC console with no password (yes, really)</p><p>I’d filed “raw VNC reachable on the console host” as a surface issue — until I<br>actually connected. The QEMU VNC consoles on `10.16.10.17` (`5910–5913`) and<br>`10.16.10.18` (`5900/5901`) advertised security type None. No password, no<br>TLS. I could read the full framebuffer of a running VM’s desktop and drive its<br>keyboard and mouse. That’s not “exposed surface,” that’s live, interactive<br>takeover of running virtual machines by anyone on the subnet. Bind QEMU’s VNC to<br>localhost (it’s meant to sit behind the console proxy), or at minimum put a<br>password and TLS on it.</p><p>The Samba share that hands out the whole filesystem</p><p>Same backup appliance, different door. Its `smb.conf` set `force user = root`,<br>`hosts allow = 0.0.0.0/0`, and — the cherry — `wide links = yes` with<br>`allow insecure wide links = yes`. So an authenticated SMB user (and remember, I’d<br>already had a foothold on that box) gets root-level read/write of the<br>entire filesystem via symlinks, not just the intended share. The earlier “anon<br>SMB session works” was the doorbell; this is the unlocked door behind it.</p><p>The rest of the iceberg</p><p>Beyond the headliners there was a long tail, and it all rhymed: an unauthenticated<br>Spring Boot actuator (`/cas/actuator`, including Prometheus metrics) on the<br>virtualization managers leaking JVM/heap/queue internals; standalone<br>Prometheus/Grafana instances answering without auth; Telnet (cleartext<br>management) still enabled on several hosts; the backup appliance’s TLS private<br>key and the server-side crypto key/IV sitting in files I could read; weak legacy<br>TLS (RC4/LOGJAM/export ciphers); and a switch web-UI reachable from the tenant<br>network. None of these is “game over” on its own — but the whole subnet was<br>flat, with databases, SMB, raw VNC, BMCs and management UIs all reachable from<br>everywhere. A flat network is the thing that quietly turns a dozen separate<br>findings into one attack chain. Segmentation was the cheapest control on the table,<br>and the most absent.</p><p>I’ve put the full inventory — every finding with its host, port and severity — in<br>an appendix at the end so this section can stay readable.</p><p>So what actually generalizes?</p><p>If you skim nothing else, here’s what I’d want you to walk away with:</p><p>- Constants aren’t secrets. The EAD seed, the knock key, the appliance’s AES<br> key — each one shipped to every customer and was treated like a gate. If it’s in<br> the binary or the JavaScript, it’s public. Integrity lives on the server, keyed<br> per install.<br>- Your client is attack surface. A pre-auth out-of-memory crash from a 60-byte<br> image needs zero credentials. Validate what an untrusted peer sends you before<br> you allocate or trust it.<br>- “It’s behind TLS” only counts if TLS is verified. Self-signed gateways that<br> train people to click through warnings are handing credentials to anyone on the<br> wire. Pin the cert; don’t disable the check.<br>- Posture/NAC is visibility, not a wall. If the report is forgeable, it tells<br> you about the honest machines and nothing about the dishonest ones.<br>- EOL is a vulnerability, not a footnote — and your management planes (BMC,<br> IPMI, switch UIs, actuators) are the crown jewels. Wall them off.</p><p>And if you’re on the defending side, a five-minute checklist:</p><p>- [ ] BMC/IPMI on an isolated VLAN; Redfish behind auth; IPMI off or<br> cipher-restricted; real lockout windows (not five seconds).<br>- [ ] No management surface — Redfish, actuators, switch UIs, VNC, databases, SMB<br> — reachable from user/tenant subnets.<br>- [ ] Retire EOL platforms and runtimes; treat “EOL” as an open-CVE backlog.<br>- [ ] Replace any client-side “sign”/signature scheme with a server-keyed HMAC.<br>- [ ] Pin VPN/gateway certs instead of turning verification off.<br>- [ ] Don’t lean on NAC/posture as your only control for anything sensitive.</p><p>One note on disclosure</p><p>All of this was authorized, and I’ve deliberately kept it at the level of<br>vulnerability classes — no live targets, no working exploit for anything that<br>might still be unpatched, nothing that identifies the org. Design flaws that affect<br>every deployment of a product (the protocol weaknesses, the hardcoded-key<br>patterns) deserve coordinated disclosure to the vendors; anything customer-specific<br>stays in the customer’s private report. Publish the lessons, not the keys.</p><p>The clean-room, GPL-licensed iNode client that came out of all this — Qt6/KF6,<br>with the documented wire formats and a full security write-up — is up in my public<br>repos. It speaks the protocols straight over the wire and ships none of the<br>vendor’s binaries. If you’ve got an H3C deployment and want to compare notes, I’d<br>love to hear from you.</p><p>Appendix — full findings inventory</p><p>For completeness, here’s everything, not just the stories above. Severities are my<br>own estimate. Hosts use the internal private addresses; ports are TCP unless noted.</p><p>A word on confidence, because it matters: some of these I drove end-to-end<br>(✅ confirmed); others I observed as an exposed service or in vendor/research<br>material but did not push to full exploitation (🔶 needs live verification). I’ve<br>tagged the infrastructure-critical ones below so nobody mistakes “the port was<br>open” for “I got a shell.” If you’re reproducing this, treat the 🔶 items as leads<br>to confirm, not facts.</p><p>Protocol / client (the iNode reverse-engineering)</p><p>Sev Finding</p><p>Critical EAD posture report forgeable — no signature, hardcoded keyed-MD5 seed + static XTEA key (NAC bypass, replayable) <br> High Portal auth = `MD5(packet+shared_secret)` with weak/default secret → logout/auth forgery; CHAP offline-crackable <br> High SSL-VPN password cleartext-in-TLS + self-signed certs (no SAN) → MITM when verification disabled <br> High CAPTCHA BMP decoder pre-auth OOM (unbounded `width×height` allocation) — fixed in my client <br> Medium Zero-Trust SPA knock replayable (random transmitted HOTP counter); client key world-readable <br> Medium Hardcoded keys / ECB-XTEA / MD5 used as “crypto” (obscurity, not protection)</p><p>Infrastructure — Critical</p><p>Status Finding Where</p><p>✅ confirmed Unauthenticated VNC (security type None) → live VM desktop takeover (read framebuffer, drove input) `10.16.10.17:5910–5913`, `10.16.10.18:5900/5901` <br> ✅ confirmed Unauth root-level arbitrary file read (hardcoded-key “sign” + path) backup appliance `10.16.10.19` <br> ✅ confirmed Unauth Redfish WebSocket full system summary BMCs `10.16.0.0/24:8090` <br> 🔶 verify MegaRAC Redfish auth bypass (CVE-2024–54085) → admin token → firmware flash BMCs `10.16.0.17/.19/.21` <br> 🔶 verify KVM “free-login” backdoor parameter → console token with no password BMC KVM `10.16.0.17/.19` <br> 🔶 verify Unauthenticated Docker Engine API (port open; container→host root untested) `10.16.10.11:2375` <br> 🔶 verify Kubelet API exposed (port open; anon-auth/exec untested) `10.16.10.11/.12:10250`</p><p>Infrastructure — High</p><p>Finding Where</p><p>IPMI 2.0 RAKP discloses admin password material to anonymous callers (CVE-2013–4786) `10.16.0.16/.18/.19/.22:623/udp` <br> BMC path-traversal arbitrary file read `10.16.0.17` <br> IDOR password-reset privilege escalation (userId from body) `10.16.0.17` <br> Custom H3C mgmt protocol — unauth info + memory-read primitive (possible heap overflow) `10.16.0.15/.16/.21:7582` <br> Unauthenticated virtual-media (IUSB) injection → boot-media swap `10.16.0.15/.21:5124–5127` <br> Samba share `force user=root` + `wide links` + `hosts allow=0.0.0.0/0` → root FS R/W `10.16.10.19:445` <br> Backup appliance TLS private key + server crypto key/IV readable `10.16.10.19` <br> EOL container/PaaS platform + EOL language runtime (permanent CVE backlog) `10.16.10.10/.11/.12` <br> Unauth OpenStack Glance image API `10.16.10.10/.11/.12:9292` <br> Unauthenticated Jaeger tracing UI masters `:16686` <br> Unauthenticated Prometheus / Grafana API `10.16.10.13/.15`, `10.16.0.17` <br> Telnet (cleartext management) enabled `10.16.10.13/.14/.15:23`</p><p>Infrastructure — Medium / Low / Info</p><p>Sev Finding</p><p>Medium Weak/legacy TLS — RC4, BEAST, RSA-EXPORT, LOGJAM (multiple CVEs) on storage/console hosts <br> Medium Unauth Spring Boot Actuator (`/cas/actuator`, Prometheus metrics) on virtualization managers `10.16.10.16/.120` <br> Medium Switch web-management UI reachable from tenant subnet (`10.16.10.1`) <br> Medium Backups routable / not air-gapped; microsegmentation off by default (ransomware exposure) <br> Medium BMC config-dump endpoints may leak SMTP/LDAP/SNMP secrets; LLMNR enabled <br> Medium Client-side-only KVM/virtual-media access flags + 5-second lockout <br> Low/Info Flat tenant network (DB 3306, SMB 445 anon, raw VNC, RPCBind, ZooKeeper, Ceph, ZeroMQ all reachable) <br> Low/Info Glass-box inventory disclosure (serials, UUIDs, MACs, firmware versions) via unauth Redfish <br> Low/Info Weak BMC password policy (min-len 8, dictionary disabled, default account present) <br> Low/Info ZAP web-app alerts on BMC UI — stack-trace disclosure, weak CSP (wildcard / unsafe-inline / unsafe-eval) <br> Low/Info Vendor default admin password documented; default-cred attempts ran (no recorded success)</p><p>Checked and not vulnerable (so nobody wastes time): anonymous FTP denied; no<br>DNS zone transfer (recursion-only, already remediated); MariaDB rejected<br>anonymous/empty creds; Kubernetes/OpenShift anonymous API discovery works but all<br>list/exec operations return 403.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d56534544dd0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your ID number was never a secret. Here’s why that should worry you.]]></title>
            <link>https://harmless-teddy.medium.com/your-id-number-was-never-a-secret-heres-why-that-should-worry-you-192f3ebe51ef?source=rss-9b4b30de9419------2</link>
            <guid isPermaLink="false">https://medium.com/p/192f3ebe51ef</guid>
            <category><![CDATA[news]]></category>
            <category><![CDATA[fraud]]></category>
            <category><![CDATA[anc]]></category>
            <category><![CDATA[popia]]></category>
            <category><![CDATA[south-africa]]></category>
            <dc:creator><![CDATA[harmless-teddy]]></dc:creator>
            <pubDate>Mon, 22 Jun 2026 08:36:05 GMT</pubDate>
            <atom:updated>2026-07-19T19:31:46.991Z</atom:updated>
            <content:encoded><![CDATA[<p>it is possible to Generated 900 Million Valid South African ID Numbers</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xIDvIa162sPerC_MegI2tQ.png" /></figure><p><a href="https://github.com/s-b-repo/wafrica-algo">GitHub - s-b-repo/wafrica-algo</a></p><p>why this is bad</p><p>you can change your username.</p><p>you cant change your ID.</p><p>all your info can be found via nexus lexus and data-breaches to build a profile on you which can put journalist whistleblowers and innocent people at risk of identity theft and fraud the hardest crimes to prove your innocent of.</p><p>here you can enter any ID and you can use that info to see where people live. people tend to vote in the erea they live.</p><p><a href="https://www.elections.org.za/pw/voter/voter-information">https://www.elections.org.za/pw/voter/voter-information</a></p><p>I’ve always been the kind of person who needs to know how things work. Not just the surface level stuff, but the actual mechanics underneath. So when I started looking into how South African ID numbers are structured, I went down a rabbit hole that ended with me generating every single valid ID number that could ever exist. All 900 million of them. On a regular laptop. In under an hour.</p><p>What started as curiosity turned into something that genuinely concerned me.</p><p>What’s actually in your ID number</p><p>Most people just memorize their ID number and never think twice about what it contains. But every digit means something.</p><p>Take any 13-digit SA ID number. The first six digits are your date of birth, year month day. The next four digits are a sequence number that also tells someone your gender, with 0000 through 4999 being female and 5000 through 9999 being male. Digit eleven is your citizenship status, zero for South African citizens and one for permanent residents. Digit twelve used to represent race back before 1980, but now it’s just permanently set to 8. And that last digit, number thirteen, is a check digit calculated using something called the Luhn algorithm.</p><p>So think about that for a second. If I know your birthday and your gender, I already know 10 out of 13 digits. The 11th is almost certainly 0. The 12th is always 8. The 13th is just maths based on the other 12.</p><p>That’s not a secure identifier. That’s basically a trivia question about you.</p><p>The Luhn algorithm and why it doesn’t protect you</p><p>The Luhn algorithm was invented in 1954 by an IBM scientist named Hans Peter Luhn. It was designed to catch typos and accidental errors when people wrote down numbers by hand. It was never, ever intended to be a security mechanism.</p><p>The way it works is pretty straightforward. You take the first 12 digits of the ID. Starting from the right side, you double every second digit. If doubling gives you something over 9, you subtract 9. Then you add everything up. Whatever number you need to tack on to make the total divisible by 10, that’s your check digit.</p><p>It’s the same formula that validates your credit card number. Ten lines of Python code. Completely deterministic. Give me the first 12 digits and I can tell you the 13th one every single time without fail.</p><p>There’s no encryption involved. No randomness. No secret sauce. Just basic arithmetic that a calculator could handle.</p><p>There’s also an interesting footnote here. Apparently, according to research by Ryan Neil Parker, the Department of Home Affairs implemented this algorithm backwards, processing digits from left to right instead of the standard right to left. Nobody can say for certain whether that was intentional, a workaround, or just a mistake from decades ago. The internet calls it the SA ID Fumble. The fact that nobody really knows tells you something about how much serious scrutiny this system has received over the years.</p><p>Building the generator and the bug that almost ruined everything</p><p>My first attempt at building this was painfully slow. One loop in Python, checking every possible combination one by one. 126 years of dates, roughly 365 days per year, 10,000 sequence numbers per day, 2 citizenship options. That works out to around 920 million combinations. With the za-id-number Python library validating each one individually, creating a whole object for every single ID, parsing dates, computing gender, I was looking at literal days of runtime.</p><p>So I reworked it. Two changes made all the difference.</p><p>First, I split the work across multiple CPU cores. January 1985 has nothing to do with February 1985, so there’s no reason they can’t be computed at the same time. I broke everything into 1,524 monthly chunks and spread them across every core on the machine.</p><p>Second, I got rid of the external library entirely. We’re already generating valid dates and computing correct check digits ourselves. Every ID we produce is valid by construction. Paying for a full Python object instantiation for each of 900 million IDs is like hiring an accountant to confirm that 2 plus 2 equals 4.</p><p>I replaced all of it with a tiny inline Luhn verifier. No objects, no date parsing, just the raw calculation. 7 times faster.</p><p>The end result was pretty dramatic. A full year’s worth of IDs, 7.3 million numbers, generates in about 3 seconds on a 12-core machine. The whole dataset from 1900 to 2026, all 927 million IDs, takes under an hour.</p><p>But here’s where things almost went sideways. I nearly shipped the entire tool with every single output being wrong.</p><p>My Luhn implementation was doubling the wrong digit positions. Even indices instead of odd. In the code, the difference is literally one character. One equals sign pointing at the wrong number. Every ID the tool spit out had the right format, 13 digits, valid dates, proper structure, but they all had incorrect check digits. They looked perfect to the naked eye and they passed all my own format checks.</p><p>I only caught it because I copy-pasted one of the generated IDs into an online validator and saw the word Invalid staring back at me.</p><p>One character. That was the margin between a working tool and a tool that produces 900 million pieces of convincing garbage. If I had only tested against my own code, I never would have caught it.</p><p>That experience burned a lesson into my brain. Never validate your output using only the logic that produced it. Always check against something external.</p><p>Making it something people can actually use</p><p>The original script was the kind of thing you write at 2 in the morning. Everything hardcoded. Want to change the year range? Edit the source code. Want just 200 IDs instead of 900 million? Too bad, edit the source code. No progress indicator while it runs, so you just sit there wondering if it crashed.</p><p>I added a proper command line interface. Now you can specify the year range, the output file, how many workers to use, how many IDs you want, and whether to run validation. There’s a dry run flag that tells you the estimated output size before you commit to anything, which matters when the full output is 12 gigabytes.</p><p>During generation you get a live progress line showing the percentage done, total count, and how fast it’s going. Watching it tick along at 2 million IDs per second is honestly pretty satisfying.</p><p>Now here’s the part that should make you uncomfortable</p><p>Everything up to this point was a fun engineering problem. Algorithm implementation, performance optimization, CLI design. Interesting stuff for a developer.</p><p>But the implications of what this tool demonstrates are genuinely unsettling, and I think they need to be talked about a lot more than they are.</p><p>Your ID number is not just some random number on a card. In South Africa, it is the master key to your entire life. Want to open a bank account? ID number. Get a cell phone contract? ID number. File taxes? ID number. Apply for a SASSA grant? ID number. Register to vote? ID number. Run a credit check? ID number.</p><p>And in a disturbing number of these systems, the ID number by itself is enough to get through the door. No second factor. No fingerprint. No one-time pin. Just thirteen digits and the system treats you like you’re who you claim to be, or at least lets you look around enough to do damage.</p><p>Let me put some numbers on this to make the scale clear.</p><p>Say I want to find your specific ID number. I know you’re a woman born sometime between 1990 and 1995. You’re a South African citizen. That’s the kind of information anyone could pick up from a LinkedIn profile, a Facebook page, or a five-minute conversation.</p><p>With those constraints, the search space drops to about 36 million possibilities. My generator cranks out over 2 million IDs per second.</p><p>That means I can find your ID number in 18 seconds.</p><p>Not hours. Not days. Eighteen seconds on a laptop.</p><p>Once someone has a valid ID number, the doors that open are alarming. Let me walk through two of the most damaging scenarios in detail, because I think people underestimate how straightforward these attacks actually are.</p><p>How a SIM swap works with just an ID number</p><p>This is the one that drains bank accounts, and it happens in South Africa every single day.</p><p>It starts with a phone call. The attacker calls your mobile carrier, Vodacom, MTN, Cell C, whoever you’re with. They say they’ve lost their phone and need a replacement SIM. The consultant on the other end asks them to verify their identity. In many cases, the verification is your full name and your ID number. Sometimes they ask for your address or the last recharge amount, but the ID number is the anchor of the whole process.</p><p>The attacker provides the generated ID number. It’s valid. It passes the format check on the consultant’s screen. Combined with a name, which is trivially available from social media, LinkedIn, or even just a data breach, the consultant has no reason to doubt them.</p><p>A new SIM gets activated on your number. Your phone goes dead. You might not notice for a few hours, especially if it happens at night.</p><p>Now the attacker has your phone number. Every OTP, every two-factor authentication SMS, every bank notification, all of it goes to them. They log into your banking app. They reset the password using SMS verification. They transfer money out. By the time you wake up and realize your phone has no signal, your account has been cleaned out.</p><p>The entire chain of events, from generated ID number to emptied bank account, relies on one broken assumption at the very first step: that knowing an ID number proves you are that person. It doesn’t. It never did. But the carrier’s verification process treats it like it does.</p><p>Some carriers have added additional checks in recent years, like requiring you to visit a store with your physical ID document. But phone-based SIM swaps still happen constantly. The Banking Risk Information Centre reported that SIM swap fraud in South Africa increased by over 400 percent in recent years, with losses running into hundreds of millions of rands annually.</p><p>The fix is not complicated. Carriers should require in-person verification with biometrics for any SIM change. Banks should stop relying on SMS-based OTPs as the primary second factor and move to app-based authentication or hardware tokens. And critically, no step in this chain should treat an ID number as a secret, because as this tool demonstrates, it is not one.</p><p>How SASSA grant fraud works with generated ID numbers</p><p>The South African Social Security Agency administers grants to millions of vulnerable people. Old age pensions, disability grants, child support grants, the R350 Social Relief of Distress grant. These are lifelines for people who have nothing else.</p><p>The system was designed to be accessible, which is the right instinct. You shouldn’t need a law degree to apply for a grant that feeds your children. But accessible and unprotected are different things, and the grant system has struggled to tell them apart.</p><p>Here is how it has been exploited.</p><p>The attacker generates a batch of valid ID numbers using a tool like this one. They don’t need specific targets. They just need ID numbers that belong to real people who are eligible for grants but haven’t applied yet, or in some cases, ID numbers that belong to people who have already died but haven’t been removed from the population register.</p><p>They submit applications through the SASSA channels, online, via USSD, or through intermediaries who process applications in bulk in rural areas. The ID number is the primary identifier in the application. If it’s valid and it matches a record in the Department of Home Affairs database, the application moves forward.</p><p>For the SRD grant specifically, the R350 one, verification has historically been minimal. The system checks the ID number against the Home Affairs database to confirm the person exists, checks whether they’re already receiving another grant or have employment income through UIF records, and if those checks pass, the grant gets approved. For much of the system’s history, there was no biometric verification at the application stage.</p><p>The money gets paid out to a bank account or a post office cash collection point. The attacker either provides their own banking details, or they use a network of mules to collect cash payments. In some cases, corrupt insiders at SASSA offices or the Post Office have facilitated bulk fraudulent applications.</p><p>The scale of this problem is not theoretical. In 2022, SASSA itself admitted that millions of fraudulent SRD grant applications had been detected. News reports have documented cases of single individuals linked to hundreds of fraudulent grant applications. The Special Investigating Unit has been running ongoing investigations into SASSA fraud for years, with criminal cases involving billions of rands.</p><p>The people who suffer most are the actual beneficiaries. When the fraud budget balloons, the system tightens restrictions, adds delays, and makes the application process harder for everyone. Legitimate applicants get declined because the system flagged something. Payments get delayed while investigations run. The people who need R350 to eat this week get caught in a dragnet designed to catch criminals who gamed the system with nothing more than a list of valid numbers.</p><p>What should change is straightforward but requires political will. Biometric verification at the point of application, not just at collection. Cross-referencing applications against death records in real time, not in batch jobs that run weeks behind. Linking grant payments to verified bank accounts that have themselves been opened with in-person identity verification. And fundamentally, stopping the practice of treating a valid ID number as sufficient proof that the person standing in front of you, or more often the person on the other end of a USSD session, is who they claim to be.</p><p>These two scenarios, SIM swaps and grant fraud, are not edge cases. They are not theoretical risks discussed in academic papers that nobody reads. They are happening right now, at industrial scale, across South Africa. And both of them start the same way: with a valid 13-digit number that the system was never designed to treat as a secret but does anyway.</p><p>None of this requires hacking anything. The tool I built doesn’t exploit a vulnerability in any system. It just does arithmetic. The same arithmetic a university student could do with a calculator and a free afternoon. All I did was make it fast enough that the scale of the problem becomes impossible to pretend doesn’t exist.</p><p>The real vulnerability here is not my generator. The real vulnerability is that sixty million people’s access to banking, healthcare, telecommunications, and government services is gated by a number with roughly 30 bits of entropy. For some context, that’s less randomness than a 9-character password. And unlike a password, you can never change it. It’s yours for life.</p><p>The SA ID number was designed in the 1960s as a way to identify people on paper forms. It was meant to be written on documents, spoken over the phone, printed on laminated cards. It was an identifier, the same category as a name or a postal address. Nobody intended it to be proof of identity. But over the decades, digital systems co-opted it as exactly that, because it was convenient. And nobody stopped to ask whether convenient and secure were the same thing.</p><p>They are not.</p><p>What actually needs to change</p><p>These are not easy fixes and I’m not pretending they are. But they are necessary and overdue.</p><p>Stop treating ID numbers like passwords. They identify you. They do not prove you are you. Any system that treats a correct ID number as sufficient verification is broken by design, full stop.</p><p>Add multi-factor authentication to everything. If the only thing between a fraudster and someone’s savings account is 13 predictable digits, that is not security. That is a polite suggestion. Biometrics, OTPs, hardware tokens, anything. Just add something.</p><p>Detect and block enumeration. If an IP address is querying ten thousand ID numbers per minute against your API, that is not a customer. That is an attack. Rate limit it. Flag it. Investigate it.</p><p>Tokenise the number. Stop passing raw ID numbers between systems like we’re still faxing things. Use tokenised references that are meaningless outside their original context. The financial industry figured this out with credit card numbers years ago. There’s no reason ID numbers should be any different.</p><p>Acknowledge the problem publicly. SIM swap fraud costs South Africans hundreds of millions of rands every year. Grant fraud is a recurring national scandal. The 13-digit ID number system is not equipped for the digital world it’s being asked to secure, and pretending otherwise doesn’t protect a single person.</p><p>Why I published this</p><p>I published this tool because I believe awareness forces action, and polite silence doesn’t.</p><p>Every valid ID number this generator produces could be computed by hand by anyone who can read the publicly documented format and do basic arithmetic. I didn’t discover a secret. I didn’t crack a code. I pointed at a door that was never locked and said, hey, that door was never locked.</p><p>My hope is that this pushes the conversation forward. That the next time a bank or telco or government department designs a verification flow, someone in the room says, the ID number alone is not enough. That engineers building South African systems start treating the ID number like what it is, a public identifier, not a secret.</p><p>Until that shift happens, sixty million South Africans are trusting their digital lives to thirteen digits and the assumption that nobody will bother doing the maths.</p><p>I did the maths. It took 18 seconds.</p><p>For developers, the legitimate use cases</p><p>This tool has practical, constructive applications beyond proving a security point.</p><p>If you’re building anything that accepts SA ID numbers, you need valid test data that covers the edge cases. Leap years. February 29th birthdays. Boundary dates at the start and end of months. Both citizenship values. The full gender sequence range. Real validators need real test data, and making it up by hand doesn’t scale.</p><p>You can also use the output to validate your own ID checking logic. Run your validator against a known-good dataset and see if it accepts everything it should and rejects everything it shouldn’t.</p><p>For authorized penetration testing engagements, this provides the kind of test data you need to assess how systems handle valid but unauthorized ID number submissions.</p><p>And for academic work, there’s genuine research value in analyzing the entropy characteristics, check digit distributions, and structural predictability of national ID schemes.</p><p>The repo is at github.com/s-b-repo/wafrica-algo if you want to look at the code or run it yourself. It’s pure Python, no dependencies, runs on anything with Python 3.7 or later.</p><p>What I took away from all of this</p><p>The Luhn algorithm shows up everywhere once you start looking. Credit cards, IMEI numbers on phones, national ID systems. Understanding how it works opens up a whole family of validation systems to examination.</p><p>Getting one character wrong in the implementation was the difference between 900 million valid IDs and 900 million convincing fakes. Testing against your own code isn’t testing. You have to validate against something external.</p><p>Making something fast changes what it means. A script that runs for a week is an academic curiosity. A tool that finishes in an hour is a demonstration of a real problem. The underlying maths is identical. The impact is completely different.</p><p>And most importantly, convenience is how security fails. ID numbers didn’t become authenticators because they’re secure. They became authenticators because they were easy. That’s how most security problems start, not with a sophisticated attack, but with a shortcut nobody questioned until it was too late.</p><p>Built with Python. Validated against real-world SA ID checkers. Published because the maths was always public, and now the conversation should be too.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=192f3ebe51ef" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ArticFox-C3: The Botnet That Talks in Invisible Ink]]></title>
            <link>https://harmless-teddy.medium.com/articfox-c3-the-botnet-that-talks-in-invisible-ink-3945b41eac40?source=rss-9b4b30de9419------2</link>
            <guid isPermaLink="false">https://medium.com/p/3945b41eac40</guid>
            <category><![CDATA[mirai-botnet]]></category>
            <category><![CDATA[research]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[github]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[harmless-teddy]]></dc:creator>
            <pubDate>Tue, 26 May 2026 08:25:13 GMT</pubDate>
            <atom:updated>2026-05-26T08:25:13.766Z</atom:updated>
            <content:encoded><![CDATA[<p>Forget shady C2 servers that get nuked in 48 hours. This clever proof-of-concept hides its commands inside invisible Unicode characters on public GitHub and GitLab READMEs. It’s like passing notes in class… if the notes were written with magic disappearing ink and the teacher was a next-gen EDR.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*h5hjhJAePeYOqHt-faXkqg.jpeg" /></figure><p>In the eternal game of “malware authors vs. defenders,” traditional C2 infrastructure has become about as subtle as a neon sign saying “I’m a botnet, please block me.”</p><p>Enter ArticFox-C3 — the cheeky little Python project that said “fine, I’ll just become invisible.”</p><p>Instead of phoning home to some sketchy bulletproof hosting server, it hides its orders in zero-width Unicode characters stuffed inside perfectly normal-looking README.md files on GitHub, GitLab, and Debian paste services. To the naked eye (and most scanners), everything looks innocent. To the bots? It’s mission control.</p><p>Basically, it’s steganography’s edgy cousin who got really into cybersecurity.</p><p>Repo: [s-b-repo/articfox-c3](<a href="https://github.com/s-b-repo/articfox-c3">https://github.com/s-b-repo/articfox-c3</a>)</p><p>How It Works (The “You Can’t See Me” Edition)</p><p>The magic happens thanks to four invisible Unicode characters that act like a secret base-4 alphabet:</p><p>- `U+200B` → 0 <br>- `U+200C` → 1 <br>- `U+200D` → 2 <br>- `U+FEFF` → 3</p><p>Commands get encoded, bookended with start/end markers, and quietly injected into the first heading of a README. When rendered, the page looks completely normal. When the bot decodes it? It’s party time.</p><p>It’s the digital equivalent of writing your evil plans in lemon juice and holding the paper over a candle. Except the candle is Python and the lemon juice is zero-width spaces.</p><p>Architecture: Because Even Ghosts Need Structure</p><p>The setup is surprisingly clean:</p><p>- Operator pushes fresh invisible payloads to a handful of “dead-drop” repos.<br>- Bots (`pastebomb.py`) wake up at random intervals, poll the repos like an anxious teenager refreshing their ex’s Instagram, decode the hidden commands, and execute.<br>- Dashboard (`api.py`) lets the operator play god with a nice REST API.</p><p>No open ports. No obvious C2 domains. Just public paste sites doing the heavy lifting. It’s like ordering a hit via Twitter DMs… except Twitter doesn’t know it’s carrying the message.</p><p>Features That Make Defenders Cry (Quietly)</p><p>The agent is surprisingly well-behaved for something so sneaky:</p><p>- Full command set: shell execution, file download &amp; run, DDoS, pop-up annoyances, dynamic repo switching, and even polite “go to sleep” commands.<br>- Heartbeats via open redirects (because nothing says “I’m stealthy” like making your C2 traffic look like a rickroll).<br>- Persistence that actually tries: Windows startup, disguised Linux cron jobs, macOS LaunchAgents — the whole “blend in with the OS” cosplay.<br>- Built-in jitter, cache busting, and command deduplication so it doesn’t look like a deranged metronome.<br>- Bonus: `csan.py` — an async telnet scanner with IoT credential brute-forcing that’s basically “Shodan, but make it personal.”</p><p>It’s the kind of PoC that makes you laugh… then immediately go check your endpoint detection rules.</p><p>Why You Should Care (Even If You’re Not Evil)</p><p>ArticFox-C3 is explicitly labeled as educational, but it’s a loud wake-up call.</p><p>While blue teams are busy blocking IPs and hunting domains, attackers are slowly realizing they can just hide in plain sight using features that have existed for decades. Public repos, paste services, and invisible characters are the new “living off the land.”</p><p>Defenders should probably start looking for:<br>- Weird zero-width characters in files<br>- Processes that really love visiting GitHub and paste sites<br>- Endpoints that suddenly develop an interest in Markdown</p><p>Or you know… just keep blocking the same 2017 C2 IPs. Your choice.</p><p>Final Thoughts</p><p>ArticFox-C3 isn’t trying to be the next massive botnet. It’s a witty, well-coded demonstration that the future of C2 might not involve servers at all — just clever abuse of things we already trust.</p><p>It’s sneaky, creative, and lowkey hilarious in that “I can’t believe this actually works” way.</p><p>If you’re in cybersecurity, go stare at the repo. Whether you’re red team, blue team, or just terminally curious.</p><p>Just don’t blame me when you start seeing zero-width characters in your nightmares.</p><p>Repo: [<a href="https://github.com/s-b-repo/articfox-c3](https://github.com/s-b-repo/articfox-c3)">https://github.com/s-b-repo/articfox-c3](https://github.com/s-b-repo/articfox-c3)</a></p><p>Educational purposes only, obviously. Understanding the joke helps us not become the punchline.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3945b41eac40" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Reverse-Engineered Ring’s “End-to-End Encryption” — What I Found Should Terrify 40 Million…]]></title>
            <link>https://harmless-teddy.medium.com/i-reverse-engineered-rings-end-to-end-encryption-what-i-found-should-terrify-40-million-a634c17560a1?source=rss-9b4b30de9419------2</link>
            <guid isPermaLink="false">https://medium.com/p/a634c17560a1</guid>
            <category><![CDATA[14eyes]]></category>
            <category><![CDATA[backdoor]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[news]]></category>
            <category><![CDATA[surveillance]]></category>
            <dc:creator><![CDATA[harmless-teddy]]></dc:creator>
            <pubDate>Mon, 25 May 2026 14:19:29 GMT</pubDate>
            <atom:updated>2026-05-25T14:41:38.192Z</atom:updated>
            <content:encoded><![CDATA[<h3>I Reverse-Engineered Ring’s “End-to-End Encryption” — What I Found Should Terrify 40 Million Households</h3><p>10 kill switches. Zero tamper detection. A facial recognition cloud. A police API. A door-unlock endpoint. And an encryption system whose database password is your public user ID. This is what’s actually running on your <br> + doorbell</p><p>A comprehensive reverse engineering analysis of Ring APK v3.104.0, 30 ARM64 native libraries, and the Greco E2EE system — revealing how a $64 billion company’s “end-to-end encryption” is held together by feature flags, plaintext database passwords, and dead code.*</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/570/0*PtEpzdF5QkQCLN4f" /></figure><p>Introduction</p><p>Ring doorbells, owned by Amazon since 2018, are installed on over 10 million American doorsteps. In 2022, facing mounting privacy criticism and a $5.8 million FTC settlement, Amazon introduced “End-to-End Encryption” (E2EE) for Ring cameras — marketing it as a fundamental security guarantee that “only you can view your videos.”</p><p>We decided to test that claim.</p><p>Over the course of this research, we fully decompiled Ring’s Android APK (v3.104.0, comprising 6,292+ Java files) and reverse-engineered all 30 of its ARM64 native shared libraries — including the 17MB Greco E2EE core, the 153KB SFrame encryption library, the 11MB custom WebRTC stack, and the 463KB Cerulean legacy crypto module. We mapped every API endpoint, every feature flag, every cryptographic code path, and every debug backdoor left in the production binary.</p><p>What we found is not a battle-hardened encryption system. It’s a house of cards — one where the server controls whether encryption exists at all, where the E2EE key database is “protected” by a publicly-known user ID, and where four separate code paths will silently skip decryption if conditions aren’t perfect. Worse, Amazon left production debug backdoors that can inject arbitrary encryption keys via SharedPreferences, toggle encryption on and off per-device via API calls, and completely disable E2EE through a single feature flag response.</p><p>This report documents every finding.</p><p>Part 1: Understanding Ring’s Encryption Architecture</p><p>Before diving into vulnerabilities, it’s essential to understand what Ring *claims* to do versus what the code *actually* does.</p><p>The Marketing Claim</p><p>Ring’s E2EE marketing page states: “With End-to-End Encryption, your videos are encrypted on your Ring device and can only be decrypted and viewed on your enrolled mobile device.”</p><p>The Actual Architecture</p><p>Ring’s video encryption operates at three distinct layers, each with independent controls:</p><p>Layer 3: SFrame (per-frame encryption) ← Greco E2EE / Cerulean<br>Layer 2: SRTP (transport encryption) ← DTLS-SRTP key exchange<br>Layer 1: TLS (API/signaling encryption) ← OkHttp / WebSocket</p><p>**Layer 1 — TLS** protects REST API calls and WebSocket signaling. Our analysis found that Ring’s OkHttpClient configuration includes `ConnectionSpec.CLEARTEXT` in the default connection specifications — meaning every HTTP client in the app will silently fall back to unencrypted HTTP if the server doesn’t enforce TLS. There is zero certificate pinning on Ring API endpoints. Only the Amazon Cerulean key management service (a separate system) implements certificate pinning.</p><p>**Layer 2 — SRTP** protects the actual media transport. SRTP keys are derived from a DTLS handshake, and the DTLS certificate is exchanged during WebRTC signaling (SDP offer/answer). Whoever controls the signaling controls the DTLS certificate, and therefore controls the SRTP keys. This is by design in WebRTC — trust is delegated to the signaling layer.</p><p>**Layer 3 — SFrame** is Ring’s “E2EE” layer. It encrypts individual video and audio frames *inside* the SRTP transport using AES-128-GCM. Keys are provisioned through the Greco MLS (Messaging Layer Security) protocol. This is the layer Amazon markets as “End-to-End Encryption.”</p><p>The critical insight: **every one of these layers is independently disableable**, and multiple mechanisms exist at each layer to weaken or bypass encryption. The system was designed to be flexible, not to be secure.</p><p>The Complete Protocol Stack</p><p>Ring doorbells communicate through four distinct layers:</p><p>┌─────────────────────────────────────────────────────────────┐<br>│ RING MOBILE APP │<br>├─────────────────────────────────────────────────────────────┤<br>│ Layer 1: REST API (HTTPS) → Device mgmt, recordings │<br>│ Layer 2: WebSocket Signaling → WebRTC session setup │<br>│ Layer 3: WebRTC Media → Live video/audio stream │<br>│ Layer 4: FCM Push → Real-time event alerts │<br>└─────────────────────────────────────────────────────────────┘<br> │ │ │ │<br> ▼ ▼ ▼ ▼<br> api.ring.com signalling. STUN/TURN ring-17770<br> ring.devices. (AWS Kinesis) (Firebase)<br> a2z.com</p><p>**Layer 1** handles all REST API communication — device management, recording downloads, settings, and authentication. OAuth2 authentication uses the client ID `ring_official_android` with hardware IDs derived from `UUID5(“379378b0-f747–4b67-a10f-3b13327e8879”, str(uuid.getnode()) + user_agent)`. 2FA is supported via `2fa-support: true` and `2fa-code: &lt;OTP&gt;` headers.</p><p>*Source: `OAuthTokenRequest.java` — `CLIENT_ID = “ring_official_android”` confirmed across LoginActivity, VerifyAccountService, and TokenAuthenticator.*</p><p>**Layer 2** handles WebRTC session establishment through WebSocket signaling at `wss://api.prod.signalling.ring.devices.a2z.com:443/ws`. Tickets are obtained from `POST /api/v1/clap/ticket/request/signalsocket`. The complete message protocol includes:</p><p>| Method | Direction | Purpose |<br>| — — — — | — — — — — -| — — — — -|<br>| `live_view` | Client → Server | SDP offer + stream options |<br>| `sdp` | Server → Client | SDP answer |<br>| `ice` | Bidirectional | ICE candidates (trickle) |<br>| `session_created` | Server → Client | Session confirmed |<br>| `session_started` | Server → Client | Session active |<br>| `activate_session` | Client → Server | **Must be sent within 70 seconds** or stream terminates |<br>| `stream_options` | Client → Server | Toggle audio/video |<br>| `camera_options` | Client → Server | Stealth mode, IR control |<br>| `ping` / `pong` | Bidirectional | Keep-alive (5-second interval) |<br>| `notification` | Server → Client | Status events (“camera_connected”) |<br>| `close` | Bidirectional | End stream |<br>| `camera_started` | Server → Client | Camera ready |<br>| `stream_info` | Server → Client | Stream metadata |</p><p>An alternative single-HTTP-request path exists at `POST /integrations/v1/liveview/start` that performs the entire SDP exchange in one request/response — no WebSocket, no E2EE negotiation. This is used by `ring-nodejs` for all streaming.</p><p>**Layer 3** carries the actual video and audio. Video uses H.264 High Profile Level 4.1 (`profile-level-id=640029`) with RTX retransmission. Some cameras also support HEVC (`settings.video_settings.hevc_enabled`). Audio uses Opus at 48kHz stereo (primary) with PCMU/G.711 at 8kHz as fallback. ICE candidates are resolved through Amazon Kinesis Video Streams STUN servers (`stun:stun.kinesisvideo.us-east-2.amazonaws.com:443`) and Google STUN servers (`stun:stun.l.google.com:19302`). Bundle policy is `disable` (separate audio/video transports), and ICE transport policy is `all`.</p><p>**Layer 4** provides real-time push notifications via Firebase Cloud Messaging (project `ring-17770`, sender ID `876313859327`). Event categories include doorbell press (`com.ring.pn.live-event.ding`), motion detection (`com.ring.pn.live-event.motion`), intercom events, and virtual unlock commands.</p><p>The E2EE Stack</p><p>The frame-level encryption sits within a multi-library architecture:</p><p>┌──────────────────────────────────────────────────────────────────┐<br>│ Greco E2EE Stack │<br>├──────────────────────────────────────────────────────────────────┤<br>│ Java Layer │ Rust Layer │ C Layer │<br>│ GrecoCekManager │ libamzn_greco_core.so │ libsecure- │<br>│ GrecoE2eeDeviceManager│ (17MB, UniFFI bindings) │ frame.so │<br>│ ContentEncryption- │ MLS group management │ (153KB) │<br>│ KeysOverrides │ Key derivation │ sframe_*() │<br>│ │ SQLCipher storage │ AES-128-GCM │<br>├──────────────────────────────────────────────────────────────────┤<br>│ libjingle_peerconnection_so.so (11MB) │<br>│ RingFrameEncryptor / RingFrameDecryptor (JNI) │<br>├──────────────────────────────────────────────────────────────────┤<br>│ libsrtp2-fsv.so (SRTP) │ libceruleancore.so (legacy crypto) │<br>│ libcrypto.so / libssl.so │ libsqlcipher.so (key database) │<br>└──────────────────────────────────────────────────────────────────┘</p><p>The CEK retrieval flow traces through seven steps:</p><p>1. App needs to decrypt video for `deviceId` + `cekId`<br>2. `GrecoCekManagerImpl.contentEncryptionKey(deviceId, cekId)`<br>3. `ContentEncryptionKeysOverrides` checked **FIRST** (SharedPreferences backdoor)<br>4. `GetCekRoutine().getCekSync(cameraGroupClient, groupId, cekId)`<br>5. Calls into `libamzn_greco_core.so` via UniFFI<br>6. Looks up key in local SQLCipher database (password = userId)<br>7. If not found, syncs with Greco cloud service → returns `Cek(key, e2eeStatus)`</p><p>The override at step 3 means an attacker who controls SharedPreferences bypasses the entire MLS protocol.</p><p>Part 2: The E2EE Kill Switch — Feature Flags That Control Encryption</p><p>How Ring’s Feature Flags Work</p><p>Ring’s app fetches feature flags from `POST /flags/v2/flags` at `api.ring.com` on every launch. The response is a JSON object containing boolean toggles and configuration values that control app behavior. Flags are resolved in this priority order:</p><p>1. **Local overrides** (empty in production)<br>2. **Server-provided values** (from the API response, stored in a `ConcurrentHashMap`)<br>3. **Hardcoded defaults**</p><p>The flags are cached in the app’s `RingStorage` under the key `_remote_cache_` and persist across app restarts until the next successful refresh.</p><p>*Source: `FeatureFlag.java:41–48`, `FeatureFlagStorageImpl.java:93`*</p><p>The Encryption Feature Flags</p><p>The following flags, all server-controlled, govern the entire E2EE system:</p><p>| Flag | Default | What It Controls |<br>| — — — | — — — — -| — — — — — — — — — |<br>| `go_ee_v2_enabled` | `false` | **Master E2EE toggle** — gates all Greco encryption |<br>| `grc_ae_bz_enabled_inc` | `false` | Greco baseline encryption enabled |<br>| `go_ae_bz_my_enabled_inc` | `false` | Whether E2EE is mandatory (when false, it’s optional) |<br>| `go_ee_cy_ck_enabled` | `false` | E2EE client compatibility check |<br>| `grc_debug_enabled_inc` | `false` | Exposes Greco debug screens with encryption controls |<br>| `dhav2_debug_root_enabled_inc` | `false` | DHAv2 debug root access for camera streaming |</p><p>*Source: `EncryptionFeatureFlagsImpl.java:42–49`, `FeatureFlagsResponse.java:132–356`*</p><p>E2EE eligibility in the app is checked at `GrecoInfoRepositoryImpl.java:152` — it requires either `grecoE2eEnabled` OR `grecoBaselineEnabled` to be `true`. Setting both `go_ee_v2_enabled=false` and `grc_ae_bz_enabled_inc=false` disables E2EE entirely on the client side.</p><p>The Implication</p><p>Anyone who controls the DNS resolution for `api.ring.com` — a network administrator, a compromised router, a rogue ISP, or a local cloud emulator — can serve a feature flag response that disables E2EE for every Ring device on that network. The flags are cached, so the effect persists even after the attacker stops intercepting traffic.</p><p>This is not a bug. This is architecture. Amazon designed E2EE as a server-controlled toggle, not as a client-enforced guarantee.</p><p>Part 3: The SQLCipher Password — “Encryption” with a Public Key</p><p>The Discovery</p><p>Deep in Ring’s Greco encryption client factory, we found the function responsible for protecting the local E2EE key database:</p><p>// GrecoClientFactory.java, lines 144–148<br>private final byte[] getDatabasePassword(String userId) {<br> byte[] bytes = userId.getBytes(Charsets.UTF_8);<br> return bytes;<br>}</p><p>The Greco E2EE system stores all MLS private keys, account group keys, and per-camera group keys in a SQLCipher-encrypted database on the device. SQLCipher is a well-respected encrypted SQLite implementation used by Signal, WhatsApp, and other security-focused applications.</p><p>But the password for this database is the user’s numeric user ID — a value that is public. It appears in API responses, in device information, in URLs, and can be trivially obtained by anyone with network access to Ring API traffic.</p><p>*Source: `GrecoClientFactory.java:144–148`, database path at line 170: `context.getDatabasePath(String.valueOf(userId))`*</p><p>What This Means</p><p>If an attacker obtains the SQLCipher database file — through a device backup, through root access to the phone, or through physical access to the device’s storage — they can open it with the numeric user ID and extract every E2EE key that device has ever used. This includes historical keys, enabling decryption of past recordings.</p><p>The database contains two tables:<br>- `account_group_client_sqlite_file` — Account-level encryption keys<br>- `camera_group_client_sqlite_file` — Per-camera encryption keys</p><p>The entire E2EE system’s security, for local key storage, reduces to knowing a public number.</p><p>Part 4: SDP Negotiation — Where Encryption Is Optional</p><p>How WebRTC Encryption Is Negotiated</p><p>When a Ring device starts a live view session, it performs a WebRTC handshake through a WebSocket signaling server. The key exchange happens via SDP (Session Description Protocol), with Ring-specific extensions:</p><p>a=e2ee-content-encryption-mode:3 ← Encryption mode (1=Cerulean, 2=Greco E2E, 3=Greco Baseline)<br>a=e2ee-manifest-id:xxx ← Key manifest identifier<br>a=e2ee-receive-stream-id:8 ← Stream identifier</p><p>The device includes these attributes in its SDP offer. The signaling server’s SDP answer determines whether encryption actually happens.</p><p>The Missing Attribute = No Encryption</p><p>The critical code path is in `BaseV4LiveSession.java` at line 448:</p><p>String mode = sdpParser.parse(“e2ee-content-encryption-mode”);<br>if (mode == null) {<br> atomicBoolean.set(false); // E2EE DISABLED — stream proceeds unencrypted<br>}</p><p>When the SDP answer from the signaling server **omits** the `e2ee-content-encryption-mode` attribute, the app marks E2EE as disabled and proceeds with the video stream. The stream is not aborted. No warning is displayed to the user.</p><p>Furthermore, `PeerConnectionManager` creates the WebRTC `PeerConnection` without setting `requireFrameEncryption` to `true` in the `RTCConfiguration`:</p><p>// PeerConnectionManager$create$1.java<br>PeerConnection.RTCConfiguration rTCConfiguration = new PeerConnection.RTCConfiguration(iceServers);<br>rTCConfiguration.sdpSemantics = UNIFIED_PLAN;<br>rTCConfiguration.rtcpMuxPolicy = REQUIRE;<br>// requireFrameEncryption is NEVER set to true</p><p>*Source: `BaseV4LiveSession.java:448–452`, `PeerConnectionManager$create$1.java`*</p><p>Three Paths to No Encryption via SDP</p><p>| SDP Attribute Value | E2EE Mode | Result |<br>| — -| — -| — -|<br>| **(absent)** | **None** | Stream proceeds completely unencrypted |<br>| `1` | Cerulean (legacy) | Weaker encryption, deprecated path |<br>| `2` | Greco Full E2E | Full MLS-based encryption |<br>| `3` | Greco Baseline | Reduced encryption with downgrade support |</p><p>An attacker who controls the signaling server simply omits the E2EE attributes from the SDP answer. The device happily streams plaintext video.</p><p>Part 5: The SFrame Encryption Layer — Weaker Than It Appears</p><p>No Key Derivation — Raw Keys Used Directly</p><p>The SFrame encryption library (`libsecureframe.so`, 153KB) implements per-frame video encryption using AES-128-GCM. Our complete disassembly of `sframe_set_key()` and `sframe_crypto_setup()` reveals a critical design choice:</p><p>**There is zero key derivation.** The raw Content Encryption Key (CEK) is `memcpy`’d directly into the crypto context:</p><p>- `sframe_set_key()` requires exactly 32 bytes<br>- The first 16 bytes are used as the AES-128 key (despite accepting 32 bytes)<br>- The second 16 bytes are used for a separate authentication key schedule<br>- No HKDF, no PBKDF2, no hash function in the key path<br>- GCM IV is a 12-byte sequential counter starting at zero</p><p>If you capture the CEK during key exchange — via any of the methods described in this report — every frame encrypted with that key can be immediately decrypted with a single AES-GCM operation.</p><p>*Source: Complete disassembly of `sframe_set_key()` and `sframe_crypto_setup()` in `libsecureframe.so`*</p><p>CBC Mode Has Zero Authentication</p><p>The library supports two encryption modes:<br>- **Mode 0 (CBC)**: `CRYPTO_cbc128_encrypt` — **no authentication whatsoever**<br>- **Mode 1 (GCM)**: `CRYPTO_gcm128_encrypt` — authenticated encryption</p><p>In CBC mode, `sframe_crypto_auth()` returns success immediately without performing any check. If an attacker forces a scheme downgrade from GRCO (GCM) to CBCS (CBC) — by controlling the signaling and specifying mode 1 (Cerulean) instead of mode 2/3 (Greco) — all frame authentication is lost. Frames can be modified, injected, or replayed without detection.</p><p>Truncated Authentication Tags</p><p>Even in GCM mode, the authentication tag is truncated to 8 bytes (64 bits) instead of the full 16 bytes (128 bits). This reduces tag forgery difficulty from 2¹²⁸ to 2⁶⁴ — a massive reduction that, while not trivially exploitable today, represents a significant departure from cryptographic best practices.</p><p>Disableable Replay Detection</p><p>`sframe_set_property()` with property ID 1 sets a flag at `ctx+0x115` to disable replay checking. A separate flag at `ctx+0x116` disables authentication checks entirely. Both are togglable at runtime through the library’s public API.</p><p>Sequential Nonces — Catastrophic on Reboot</p><p>The frame counter at `ctx+0x1c` is sequential from zero, incremented per frame. If the device reboots without rotating its key, the same nonce is reused with the same key — a catastrophic failure for GCM mode that enables full key recovery through XOR of ciphertext pairs.</p><p>Codec-Aware Encryption — Metadata Leakage</p><p>SFrame doesn’t encrypt entire frames blindly. It’s codec-aware, selectively encrypting payload while preserving structure:</p><p>sframe_codec_h264_find_nal_unit_type() — H.264 NAL boundary detection<br>sframe_codec_h265_find_nal_unit_type() — H.265 NAL boundary detection<br>sframe_codec_h26x_is_idr() — IDR (keyframe) detection<br>sframe_codec_h26x_sanitize() — NAL unit sanitization<br>sframe_codec_h26x_epb_add/remove() — Emulation prevention bytes<br>sframe_codec_opus_pad() — Opus audio alignment padding<br>sframe_codec_aac_pad() — AAC audio alignment padding<br>sframe_codec_jpeg_fixup_h264() — JPEG/H.264 conversion</p><p>Unencrypted NAL unit headers leak: frame type (I-frame vs P-frame vs B-frame), frame size, timing information, and codec parameters (SPS/PPS/VPS). This enables traffic analysis even with encryption active — an attacker can determine when someone appears at the door, how long they stay, and whether the camera is recording continuously or event-triggered.</p><p>Encrypted File Formats</p><p>Ring uses three encrypted container formats for stored recordings:</p><p>**FSV-E (Ring FSV Encrypted)** — Ring’s proprietary format with types v1, v2, v3, lpd_v1, lpd_v2. Decrypted via `VideoDecryptor.nativeDecryptFsv(input, output, type, base64Cek)`. Uses SRTP-level decryption through `libsrtp2-fsv.so`. The `SetKeys` function takes THREE key strings (video SRTP, audio SRTP, RTCP). `SetProfileCipherAuth` configures the cipher/auth combination — including null cipher + null auth.</p><p>**MP4E (Encrypted MP4)** — Container with `magf` (0x6667616D) magic bytes. Uses `libsecureframe.so` for per-frame SFrame decryption. `Mp4eConverter::SetKeyCallback` takes a function pointer for on-demand key lookup. The library tracks auth failures, key failures, replay failures, and footer failures — each a potential side channel.</p><p>**Plaintext Snapshots** — Critically, on-demand snapshots fetched via `GET <a href="https://app-snaps.ring.com/snapshots/next/%7Bid%7D?extras=force`">https://app-snaps.ring.com/snapshots/next/{id}?extras=force`</a> are **unencrypted JPEG**. The `force` parameter triggers on-demand capture and returns the image without any E2EE. Similarly, `GET /clients_api/dings/{id}/recording?disable_redirect=true` serves already-decrypted MP4 recordings — the server decrypts before serving.</p><p>The corruption recovery path in FSV-E is also notable: `”FSV packet size too big, possible corruption! Attempting to seek to next audio packet!”` — the parser recovers from corruption by seeking forward. Crafted files could potentially exploit this to skip past encrypted regions.</p><p>— -</p><p>Part 6: The WebRTC Layer — Four Ways to Skip Decryption</p><p>Silent Decryption Bypass Paths</p><p>Ring’s custom WebRTC library (`libjingle_peerconnection_so.so`, 11MB) contains four distinct code paths that silently skip frame decryption, passing encrypted (or unencrypted) frames through the pipeline:</p><p>| Bypass Path | Trigger Condition | Log Message |<br>| — — — — — — -| — — — — — — — — — -| — — — — — — -|<br>| Unsupported scheme | SFrame scheme not recognized | `”Skipping Due to Unsupported Encryption Scheme”` |<br>| Configuration error | Config error flag set | `”Skipping Due to configuration error”` |<br>| Missing key callback | Key provider not registered | `”Skipping Due to no _sframeNotifyNewKeyCallback”` |<br>| Bad initialization | SFrame context not initialized | `”Skipping frame due to bad init”` |</p><p>Each of these paths logs a debug message and silently drops the decryption step. In a scenario where the signaling server doesn’t properly set up the encryption context — for instance, by omitting E2EE attributes from the SDP answer — any of these conditions can be triggered, and frames pass through without encryption or decryption.</p><p>The Explicit Disable Path</p><p>Additionally, the library contains an explicit unencrypted transport path:</p><p>```<br>“Creating UnencryptedRtpTransport, becayse encryption is disabled.”<br>```</p><p>The typo “becayse” (instead of “because”) confirms this is Ring’s custom code, not upstream WebRTC. This path creates an entirely unencrypted RTP transport when a `disableEncryption` flag is set. While Ring’s production code doesn’t set this flag through normal flow, it’s trivially accessible via Frida.</p><p>The Encryption Kill Switch at Object Offset 0x68</p><p>At the binary level, `RingFrameEncryptor` has a 32-bit flag at offset `0x68` in its native object:</p><p>- `-1` (0xFFFFFFFF): Uninitialized — frames are dropped<br>- `0`: Encryption **disabled** — frames pass through in plaintext<br>- `1`: Encryption **enabled** — SFrame encryption applied</p><p>The `nativeSetEncryptionEnabled` function at address `0xa77980` is remarkably simple — just 20 bytes of ARM64:</p><p>```asm<br>tst w3, 0xff ; test boolean parameter<br>cset w1, ne ; w1 = (param != 0) ? 1 : 0<br>str w8, [x0, 0x68] ; store at encryption_enabled offset<br>```</p><p>A single Frida one-liner disables all SFrame encryption:</p><p>Interceptor.attach(Module.findExportByName(“libjingle_peerconnection_so.so”,<br> “Java_org_webrtc_ring_RingFrameEncryptor_nativeSetEncryptionEnabled”),<br> { onEnter: function(args) { args[3] = ptr(0); } });</p><p>*Source: Disassembly of `libjingle_peerconnection_so.so` at addresses `0xa77980` (setter) and `0xa78198` (transform)*</p><p>Injectable WebRTC Field Trials</p><p>The WebRTC library accepts field trial strings via `Java_org_webrtc_PeerConnectionFactory_nativeInitializeFieldTrials`. Relevant trials include:</p><p>- `WebRTC-ForceDtls13 Enabled/Disabled/Only` — force DTLS version<br>- `WebRTC-EnableDtlsPqc` — post-quantum crypto toggle<br>- `WebRTC-SrtpRemoveReceiveStream` — SRTP stream control<br>- `WebRTC-IceHandshakeDtls` — ICE/DTLS handshake behavior</p><p>These are injectable at runtime and can alter encryption, DTLS, and SRTP behavior at the transport level.</p><p>— -</p><p>Part 7: The Greco MLS Protocol — Server-Controlled E2EE</p><p>E2EE Is a Toggle, Not a Guarantee</p><p>The Greco core library (`libamzn_greco_core.so`, 17MB, written in Rust and exposed via UniFFI) contains explicit routines to control E2EE state:</p><p>```<br>uniffi_amzn_greco_core_checksum_constructor_sete2eeroutine_new<br>uniffi_amzn_greco_core_checksum_constructor_setencryptionparametersroutine_new<br>```</p><p>Source paths embedded in the binary confirm this:<br>- `amzn-greco-core/src/routines/set_e2ee.rs`<br>- `amzn-greco-core/src/routines/set_encryption_parameters.rs`</p><p>Internal status flags include:<br>- `a-sign-disabled` — signing can be disabled<br>- `es-encrypt-disabled` — encryption can be disabled<br>- `cs15-pad-disabled` — padding can be disabled</p><p>E2EE has four states: `E2eeEnabled`, `E2eeDisabled`, `E2eeEnablementRequested`, and `E2eeDisablementRequested`. The system also supports “baseline” mode — a weaker alternative to full E2EE with explicit `BaselineDecreaseStrategy` support, meaning baseline encryption can be further weakened.</p><p>Cloud Member Presence Disables E2EE</p><p>A critical validation rule found in the MLS group code:</p><p>```<br>“Cannot have cloud member when in e2ee mode”<br>```</p><p>When a “cloud member” is present in the encryption group, E2EE is forced off. Our cloud emulator can ensure a cloud member is always present in every encryption group, keeping E2EE permanently disabled.</p><p>The Greco API — We Control Everything</p><p>The Greco MLS API consists of 15 endpoints, all of which our cloud emulator implements:</p><p>| Endpoint | Attack Capability |<br>| — — — — — | — — — — — — — — — -|<br>| `POST v1/deleteGroup` | Delete the E2EE group entirely — disables encryption for all members |<br>| `POST v1/replaceRegisteredGroup` | Replace group registration with our controlled keys |<br>| `POST v1/getGroupContext` | Return controlled encryption context |<br>| `POST v1/publishKeyPackage` | Inject our key package into the group |<br>| `POST v1/publishGroupChanges` | Modify group membership |<br>| `POST v1/deleteWelcomes` | Block new member E2EE enrollment |<br>| `POST v1/updateBackup` | Upload modified E2EE backups (bypasses checksum — sends `x-amzn-content-checksum-none:none` header) |<br>| `POST v1/getBackup` | Serve controlled backup data |</p><p>The MLS External Commit mechanism (`getExternalCommitInfo`) is particularly notable — it allows joining an encryption group using only the group’s public `ExternalPub` extension and a valid credential, without an invitation from existing members.</p><p>Part 8: Production Debug Backdoors</p><p>Content Encryption Key Override (SharedPreferences Injection)</p><p>Ring shipped two separate CEK override mechanisms in the production APK:</p><p>**Mechanism 1 — Cerulean Path** (`SimpleContentEncryptionKeyProvider.java:57`):</p><p>if (localSettings.getBoolean(“content_enc_key_override”, false)) {<br> key = localSettings.getString(“content_enc_key”, null);<br>}</p><p>Setting `content_enc_key_override=true` and `content_enc_key=&lt;base64_key&gt;` in SharedPreferences injects an arbitrary encryption key that overrides the real key for all video decryption.</p><p>**Mechanism 2 — Greco Path** (`ContentEncryptionKeysOverrides.java`, checked at `EncryptionCekManagerImpl.java:57–62`):</p><p>The override list is checked **first** — before attempting real Greco SDK key retrieval:</p><p>Result overrideResult = this.overrides.getKey(deviceId, keyId);<br>if (overrideResult != null) {<br> return overrideResult.getValue(); // Returns override key, bypasses SDK entirely<br>}</p><p>Override keys are stored as JSON: `[{“device_id”: 12345, “key_id”: 1, “key_data”: “base64_key”}]`</p><p>On a rooted device, injecting a known key into these SharedPreferences causes all video streams to be decrypted (or encrypted) with an attacker-controlled key. No code modification required.</p><p>Test Infrastructure in Production</p><p>The production binary contains:</p><p>- **MockGrecoStorage** — A mock storage implementation from the `mockall` testing framework, compiled into the production binary alongside the real implementation<br>- **Test RNG** — OpenSSL’s `test_rng.c` (with `test_rng_new`, `test_rng_generate`, `test_rng_get_seed`) is compiled into `libamzn_greco_core.so`. If activated, cryptographic randomness becomes predictable<br>- **GroupInvite bypass** — A documented testing shortcut: *”This type should only be used for testing as a quick and dirty way to add a member to a group bypassing app KP validation logic.”*</p><p>Root Detection: 5KB of Security Theater</p><p>Ring’s root detection is handled by `libbugsnag-root-detection.so` — a 5KB library that checks for the existence of well-known root files:</p><p>- `/system/app/Superuser`, `/system/app/Superuser.apk`<br>- `/su/bin`, `/system/bin/su`, `/system/xbin/su`, `/system/xbin/daemonsu`<br>- `/sbin`, `/system/app/SuperSU`, `/system/app/SuperSU.apk`</p><p>Single JNI entry: `Java_com_bugsnag_android_RootDetector_performNativeRootChecks`</p><p>This is trivially bypassed by Magisk Hide, Zygisk DenyList, or a single Frida hook that returns false.</p><p>Part 9: Network Security — Cleartext and No Pinning</p><p>All HTTP Clients Accept Cleartext</p><p>`NetworkingConstants.java` defines the default `ConnectionSpec` list used by every OkHttpClient in the app. This list includes `ConnectionSpec.CLEARTEXT` alongside `MODERN_TLS`. The base `OkHttpClient.Builder` factory `NetworkingUtils.m14772a()` applies this to all clients:</p><p>- All Retrofit API builders (Ring API, Clients API, Solutions API)<br>- WebRTC signaling HTTP client<br>- Player and data download clients</p><p>Every Ring HTTP client will silently downgrade to plaintext HTTP if the server responds without TLS.</p><p>Zero Certificate Pinning on Ring API</p><p>We audited every `OkHttpClient.Builder` instantiation in the decompiled source. The main Ring API clients — covering authentication, device management, streaming, and event handling — do not configure:</p><p>- `certificatePinner()` — no certificate pins<br>- `sslSocketFactory()` — default system SSL<br>- `hostnameVerifier()` — default OkHttp verifier (except one case below)</p><p>The **only** exception is Amazon Cerulean (the key management service), which pins 5 Amazon Root CA SHA256 public keys. This protects key distribution but not any other API surface.</p><p>Active Accept-All Hostname Verifier in Production</p><p>While Ring’s own `AllHostnameVerifier` class (which returns `true` for all hostnames) is dead code — defined but never referenced in the DI graph — an identical accept-all verifier from Amazon’s Sidewalk SDK **is actively used**:</p><p>// OkHttpLibraryGlideModule.java, line 30<br>builder.hostnameVerifier(new C23136eG0());</p><p>`C23136eG0` (obfuscated from `com.amazon.sidewalk.obfuscated.eG0`) is an accept-all hostname verifier wired into Glide’s OkHttpClient for image loading. This means snapshot thumbnails and Neighbors Hub images are fetched without TLS hostname verification.</p><p>Part 10: The SRTP Layer — Null Ciphers Included</p><p>Available SRTP Crypto Policies</p><p>Ring’s custom SRTP library (`libsrtp2-fsv.so`, 2.5MB) ships with null cipher and null authentication implementations:</p><p>```<br>srtp_crypto_policy_set_null_cipher_hmac_null — NO encryption, NO authentication<br>srtp_crypto_policy_set_null_cipher_hmac_sha1_80 — NO encryption, authentication only<br>srtp_crypto_policy_set_aes_cm_128_null_auth — AES encryption, NO authentication<br>srtp_crypto_policy_set_aes_cm_192_null_auth — AES-192, NO authentication<br>srtp_crypto_policy_set_aes_cm_256_null_auth — AES-256, NO authentication<br>```</p><p>Additionally, `srtp_replace_cipher_type` and `srtp_replace_auth_type` can swap cipher and authentication algorithms at runtime for an active SRTP session. Through Frida, an attacker with code execution in the app process can force SRTP packets to be sent completely unprotected.</p><p>— -</p><p>Part 11: The Device Setup Protocol — Encryption Enrollment We Control</p><p>HTTP Server During Factory Reset</p><p>When a Ring doorbell is factory reset, it creates a WiFi access point (named “Ring-XXXX”) and serves an HTTP server at `192.168.240.1`. This server exposes endpoints for device configuration, including E2EE enrollment:</p><p>| Endpoint | Purpose |<br>| — — — — — | — — — — -|<br>| `/ring/system/config/network` | WiFi configuration |<br>| `/ring/e2ee/enrollment` | E2EE key enrollment |<br>| `/ring/e2ee/certificate` | Certificate provisioning |<br>| `/ring/e2ee/status` | E2EE status check |</p><p>Three security tiers exist:<br>1. **INSECURE** — Plain HTTP, no TLS, no mutual authentication<br>2. **SECURE** — HTTPS with server certificate only<br>3. **SECURE_V2** — DHAv2 hardware certificate mutual authentication</p><p>Older and cheaper Ring models may use INSECURE or SECURE tiers — meaning we can connect to the setup server, control E2EE enrollment, and configure the device to join our network (with DNS redirect) without any authentication.</p><p>Firmware Over BLE — MD5 Only</p><p>Ring transfers firmware updates via Amazon Sidewalk BLE (not WiFi). The firmware manifest format reveals:</p><p>```json<br>{<br> “firmware_version”: “x.x.x”,<br> “file_list”: [{<br> “target_platform”: “…”,<br> “file_type”: “…”,<br> “filename”: “…”,<br> “md5_hash”: “…”,<br> “index”: 0<br> }]<br>}<br>```</p><p>At the mobile app level, **only MD5 checksums** are visible — no cryptographic signatures. MD5 collisions are trivially computable. Device-side signature verification status is unknown.</p><p>— -</p><p>Part 12: Pre-Production Environments Left in Production</p><p>Cerulean Mock and Staging Endpoints</p><p>`libceruleancore.so` contains hardcoded URLs for four non-production environments:</p><p>**Mock:** `<a href="https://mock/v1/participant/me%60">https://mock/v1/participant/me`</a> with `dummy_ea_id`</p><p>**Alpha:** `<a href="https://us-east-1.alpha.{service}.cerulean.devices.amazon.dev`/">https://us-east-1.alpha.{service}.cerulean.devices.amazon.dev`</a><br>**Beta:** `<a href="https://us-east-1.beta.{service}.cerulean.devices.amazon.dev`/">https://us-east-1.beta.{service}.cerulean.devices.amazon.dev`</a><br>**Gamma:** `<a href="https://us-east-1.gamma.{service}.cerulean.devices.amazon.dev`/">https://us-east-1.gamma.{service}.cerulean.devices.amazon.dev`</a></p><p>Services include `authz`, `forwarder`, `identity`, `key-mgmt` (non-production only), `manifest-mgmt`, and `token-auth`. The stage and region are runtime-configurable through `ctx-&gt;config.endpoint.stage` and `ctx-&gt;config.endpoint.region`.</p><p>Notably, `key-mgmt` only exists in non-production environments, suggesting production uses a different key management path that may be more difficult to manipulate — but the alpha/beta/gamma paths are still present in the binary and potentially reachable.</p><p>Additional Crypto Weaknesses</p><p>**PBKDF2 with 1000 iterations and a fixed salt** (`FrcCookiesManager.java:225`): Amazon’s identity FRC (First Run Cookies) uses `PBEKeySpec` with only 1,000 PBKDF2 iterations (NIST recommends 10,000 minimum; modern guidance suggests 600,000+) and the literal string `”AES/CBC/PKCS7Padding”` as a fixed, non-random salt.</p><p>**`java.util.Random` for cryptographic purposes** (`ClientRequestContext.java:19`): The Cerulean encryption service generates request context IDs using `java.util.Random` — a predictable linear congruential generator — instead of `SecureRandom`. The iLoq lock SDK has the same flaw for NFC challenge-response nonces.</p><p>**Bleichenbacher-vulnerable RSA** (`C10436v4.java:94`): The iLoq lock SDK (integrated into Ring for smart lock support) uses `RSA/ECB/PKCS1Padding`, which is vulnerable to Bleichenbacher’s adaptive chosen-ciphertext attack.</p><p>**Static BLE key derivation salt** (`AbstractC7200w8.java:43`): Amazon Sidewalk BLE uses a fixed, hardcoded string `”Mobile_KDF_Device_Mobile_GCM_COUNTER”` concatenated with four null bytes as the salt for AES-CMAC key derivation. All devices share the same salt.</p><p>— -</p><p>Part 13: The Hardware Path — SigmaStar SoC and SPI Flash</p><p>Confirmed Hardware</p><p>TechInsights teardown data confirms Ring doorbells use a SigmaStar SoC with SigmaStar memory, paired with an 8MB Winbond SPI NOR flash chip.</p><p>This is significant because:</p><p>1. **SigmaStar SoCs are supported by OpenIPC** — an open-source IP camera firmware project. If the exact SoC variant matches (SSC335, SSC337, SSC337DE, or SSC338Q), it’s possible to flash entirely open-source firmware with native RTSP/ONVIF streaming and zero cloud dependency.</p><p>2. **SPI NOR flash is trivially readable and writable** with a $3 CH341A USB programmer and a $5 SOIC-8 test clip — no desoldering required.</p><p>3. **UART debug pads are exposed on the PCB**, providing shell access at 115200 baud/3.3V for boot log capture and potential root shell access.</p><p>### Minimum Viable Firmware Patch</p><p>For the SPI flash approach, only four changes are needed:</p><p>1. **`/etc/hosts`** — Add entries mapping Ring domains to local server IP<br>2. **CA certificate** — Replace with self-signed CA for TLS termination<br>3. **OTA disable** — Neuter the firmware update daemon<br>4. **Telemetry disable** — Block Minerva/analytics endpoints</p><p>All original hardware drivers — camera ISP, PIR motion sensor, IR LEDs, audio codec, doorbell button — remain untouched and fully functional.</p><p>— -</p><p>Part 14: Complete Attack Chains</p><p>### Chain A: Cloud Emulator + Feature Flag Kill Switch (Software Only — Primary)</p><p>```<br>1. DNS redirect: api.ring.com, oauth.ring.com, *.a2z.com → local emulator<br>2. Emulator serves POST /flags/v2/flags with go_ee_v2_enabled=false<br>3. App disables E2EE client-side (cached, persists across restarts)<br>4. Emulator handles WebSocket signaling → SDP answer omits E2EE attributes<br>5. App negotiates standard DTLS-SRTP (no SFrame layer)<br>6. Emulator provides its own DTLS certificate → holds private key → knows SRTP keys<br>7. Result: plaintext video/audio accessible at local emulator<br>```</p><p>**Cost:** $0 (software only)<br>**Requirements:** Network-level DNS control (router, Pi-hole, or DHCP)</p><p>Chain B: Greco API Takeover</p><p>```<br>1. DNS redirect → local emulator<br>2. Emulator implements all 15 Greco v1/ endpoints<br>3. Device calls getGroupContext → emulator returns controlled/empty context<br>4. Device calls registerGroup → emulator acknowledges with controlled group<br>5. Alternatively: deleteGroup → E2EE disabled for entire group<br>6. Alternatively: replaceRegisteredGroup → inject emulator-controlled keys<br>7. Result: E2EE keys known to emulator, all content decryptable<br>```</p><p>Chain C: SQLCipher Key Database Extraction (Physical Access)</p><p>```<br>1. Obtain SQLCipher database from device (root/backup/physical access)<br>2. User ID is public — visible in any API response<br>3. Open database: password = userId.getBytes(“UTF-8”)<br>4. Dump all MLS private keys, account group keys, camera group keys<br>5. Result: decrypt all past and future E2EE content for that account<br>```</p><p>Chain D: Frida Runtime Hooks (Rooted Phone)</p><p>```<br>Multiple independent bypass points:<br>1. Hook nativeSetEncryptionEnabled → force false → no SFrame encryption<br>2. Write 0 to [encryptor_object + 0x68] → direct memory kill switch<br>3. Hook sframe_set_property → disable auth and replay checking<br>4. Call SetE2EERoutine via UniFFI → native-level E2EE toggle off<br>5. Inject CEK override into SharedPreferences → known decryption key<br>6. Hook sframe_set_key → capture all CEKs as they’re loaded<br>```</p><p>Chain E: SPI Flash Firmware Patch (Hardware — 0 Component Changes)</p><p>```<br>1. Open doorbell housing (Torx screws, ~5 minutes)<br>2. Connect CH341A + SOIC-8 clip to SPI flash (~2 minutes)<br>3. Read firmware: flashrom -p ch341a_spi -r ring-dump.bin<br>4. Extract filesystem: binwalk -e ring-dump.bin<br>5. Patch /etc/hosts, replace CA cert, disable OTA + telemetry<br>6. Write patched firmware: flashrom -p ch341a_spi -w ring-patched.bin<br>7. Reassemble doorbell (~5 minutes)<br>8. Start local cloud emulator (docker-compose up)<br>9. Connect doorbell to WiFi → auto-registers with local server<br>Total time: ~47 minutes. Total tool cost: ~$8–16.<br>```</p><p>Chain F: Setup Mode Hijack (0 Component Changes)</p><p>```<br>1. Factory reset device → Ring-XXXX WiFi AP appears<br>2. Connect to AP → access <a href="http://192.168.240.1/">http://192.168.240.1</a><br>3. Use /ring/e2ee/enrollment to control encryption configuration<br>4. Configure WiFi to connect to network with DNS redirect<br>5. Device initializes with attacker-controlled crypto config<br>6. All subsequent video streams use emulator-controlled encryption<br>```</p><p>— -</p><p>Part 15: Leaked Internal Infrastructure</p><p>Our strings analysis of the 30 native libraries revealed Amazon’s internal build infrastructure:</p><p>- **Jenkins CI**: `/home/jenkins/workspace/iOS_V2_greco-sdk_develop/` (Greco SDK built on iOS pipeline for Android), `/home/jenkins/workspace/gin_fsv-converter-android_master/`, `/home/jenkins/workspace/Android_custom_builds/ring-android_deploy-release/`<br>- **Perforce depot**: `/local/p4clients/pkgbuild-const/workspace/src/CeruleanManagementAndroidSDK/`<br>- **Internal Confluence**: `<a href="https://confluence.atl.ring.com/pages/viewpage.action?pageId=3441611122&amp;spaceKey=GRECO`">https://confluence.atl.ring.com/pages/viewpage.action?pageId=3441611122&amp;spaceKey=GRECO`</a><br>- **Internal code browser**: `<a href="https://code.amazon.com/packages/RingMLSDeliveryServiceModel/%60">https://code.amazon.com/packages/RingMLSDeliveryServiceModel/`</a><br>- **AI Labs endpoint**: `<a href="https://app.ai.ring.amazon.dev/%60">https://app.ai.ring.amazon.dev/`</a><br>- **Firebase credentials**: `apiKey: ‘AIzaSyCv-hdFBmmdBBJadNy-TFwB-xN_H5m3Bk8’`, `projectId: ‘ring-17770’`</p><p>— -</p><p>Part 16: The Local Cloud Emulator</p><p>Based on our findings, we built a fully functional Ring cloud emulator — a local server that implements 59 API routes covering Ring’s entire cloud surface:</p><p>- **OAuth2 authentication** (accepts any credentials)<br>- **Feature flags** (`POST /flags/v2/flags` returns `go_ee_v2_enabled=false`)<br>- **Device settings** (returns `encryption_enabled=false`)<br>- **WebSocket signaling** (full Ring protocol with SDP E2EE stripping)<br>- **WebRTC session** (real SDP answer generation via aiortc)<br>- **All 15 Greco MLS endpoints** (controlled key distribution)<br>- **Device RPC** (firmware command interception)<br>- **Sheila internal API** (local storage mode)<br>- **Remote camera commands** and light control<br>- **Firmware check** (always UP_TO_DATE — blocks OTA)<br>- **MQTT event bridge** (motion/ding events to Home Assistant)<br>- **Recording storage** (incoming video saved to MP4)<br>- **Telemetry sinks** (Minerva and analytics silently discarded)<br>- **Catch-all logger** (captures unknown endpoints for protocol discovery)</p><p>The emulator is backed by a device simulator that exercises all 10 test steps end-to-end without real hardware, verifying: OAuth token issuance, session creation, device listing, firmware check, signaling ticket, WebSocket SDP exchange (with E2EE strip verification), feature flag delivery (E2EE kill switch), device settings (encryption toggle), Greco group deletion, and event submission.</p><p>Part 17: The Surveillance Machine Behind the Doorbell</p><p>Everything above deals with how Ring’s encryption fails. This section deals with what happens when it works exactly as Amazon designed it.</p><p>Law Enforcement Gets First-Class Infrastructure</p><p>Ring doesn’t bolt on police access as an afterthought. It’s a standalone subdomain with its own dedicated API:</p><p>- **`agency.ring.com`** — A complete law enforcement API with its own feed type (`FeedType.AGENCY`), case management (`EventCaseInfoCreateInput` with `agency_name`, `case_number`, `is_crime`, `officer_name`), and the `ContactAgencyActivity` that facilitates direct communication between users and police.</p><p>- **Axon Integration** — At `PublicAssistance.java:119`, the `canShareInfo` flag is set to `TRUE` only when `publisherData.getPublisherId()` equals `”axon”`. Axon is the police body-cam company (formerly TASER International). Ring has hardcoded a special trust relationship with a police hardware vendor.</p><p>- **Two Video Sharing Pipelines for LE** — DVR (Direct Video Request) for clip-by-clip requests, and DUOS for emergency bulk snapshot sharing. The DUOS system uses `PUT duos/v1/critical_events/sharing` to push video to law enforcement during critical events. Authorization role `777` grants consent; device opt-out role is `666`.</p><p>- **Identity Verification for Neighbors** — `IdentityVerificationStatus` GraphQL types and `CreateIdentityVerificationInquiryMutation` allow verified identity confirmation, creating a chain from anonymous neighbor posts to verified real-world identity.</p><p>*Sources: `MainEnvironment.java:16`, `PublicAssistance.java:119`, `DuosCriticalEventApi.java`, `AuthorizationApi.java`*</p><p>Your Face Is in Amazon’s Cloud</p><p>The FreezeTag SDK (135 classes) is a complete cloud-processed facial recognition system:</p><p>| Endpoint | What It Does |<br>| — — — — — | — — — — — — -|<br>| `GET v1/identities/all` | Fetch all known face identities |<br>| `POST v1/identity/enrollment-images/create` | Upload face enrollment images |<br>| `POST v1/identity/merge` | Merge two face identities |<br>| `PATCH v1/identity/{id}` | Update identity metadata |<br>| `DELETE v1/identity/{id}` | Delete a face identity |</p><p>Face enrollment images are uploaded to Ring’s servers for cloud-side processing. `IdentityEvent` links face recognition to specific events via `eventId`, `deviceId`, `startTime`, and `thumbnailUrl`. This is not on-device face detection — it’s cloud-processed facial recognition with persistent identity profiles.</p><p>*Source: `FreezeTagSdkApi.java:21–57`, `IdentityEvent.java`*</p><p>The Camera Is Always Recording</p><p>Ring doorbells don’t start recording when motion is detected. They’re already recording:</p><p>- **Pre-roll** — The camera continuously records to a ring buffer. When a motion event triggers, the recording includes footage from *before* the event. This means the camera’s sensor and encoder are active 24/7.<br>- **24x7 Mode** — `Recording24x7Mode` enum confirms continuous recording capability with `RECORDING_24x7` and `DISABLED` states.<br>- **Camera LED behavior is firmware-only** — Our `strings` analysis of all 31 `.so` files found zero LED control functions. The LED state during pre-roll recording is determined entirely by firmware, not the app.</p><p>The privacy question: is the LED on during pre-roll? Only the firmware knows. The app cannot control it, and Amazon’s documentation doesn’t address it.</p><p>our Home Is Amazon’s Mesh Network Node</p><p>Amazon Sidewalk comprises 5,660 classes in the Ring APK. Your Ring doorbell acts as a bridge for Amazon’s 900MHz/BLE mesh network:</p><p>- `BulkDataTransfer.writeBulk(source, blockSize, metadata)` — Transfers data from Sidewalk mesh through your doorbell<br>- `allowUplinkWithLocation` parameter — Sidewalk data includes GPS coordinates<br>- Coverage forecasting sends your GPS to Amazon for mesh planning</p><p>You’re not just being surveilled. You’re infrastructure for surveilling your neighborhood. Every Ring doorbell is a node in Amazon’s city-wide mesh network.</p><p>*Sources: `BulkDataTransfer.java`, `Sidewalk.java` (5,660 classes total)*</p><p>What Ring Sends Home — Every Single Event</p><p>Every analytics event transmitted by the Ring app includes:</p><p>**Per-request (every API call):**<br>- `Hardware_ID` — permanent device fingerprint (non-resettable, survives factory resets)<br>- `X-Ring-UserAgent-DeviceHardwareId` — same ID, sent twice for tracking persistence<br>- `wifi_bssid` — your router’s MAC address (physical location fingerprint)<br>- `wifi_ssid` — your network name<br>- `mobile_phone_net_operator` / `mobile_phone_sim_operator` — carrier identity<br>- `active_network_interfaces` — ALL network interfaces including VPNs</p><p>**Per-motion-event:**<br>- GPS coordinates<br>- Full video with pre-roll (started before the event)<br>- Acoustic classification results (`BABY_CRY`, `GLASS_BREAK`, `DOG_BARK`, `CO2_SMOKE_ALARM`, `CAR_ALARM`)<br>- Facial recognition data (if enrolled)</p><p>**Crash data goes to Ring’s own BugSnag** at `events.mobile.crashtracking.prod.ring.com` — not BugSnag’s servers. Crash reports include device ID, locale, CPU arch, root detection status, memory usage, and 25 thread stack traces. 30+ analytics modules track every screen view, button tap, and setting change.</p><p>*Sources: `LocalInfoInterceptor.java:58–59`, `DefaultConnectivityInfoCollector.java:60–225`, `App.java:596`*</p><p>— -</p><p>Part 18: Zero Anti-Tampering — The Unlocked Front Door</p><p>For a security product installed on 10+ million doorsteps, Ring’s app has no protection against runtime manipulation.</p><p>No Root Detection</p><p>We searched every Ring Java class and all 31 ARM64 native libraries:</p><p>| Check | Result |<br>| — — — -| — — — — |<br>| `strings *.so \| grep -i root` | Zero matches in Ring code |<br>| `strings *.so \| grep -i frida` | Zero matches |<br>| `strings *.so \| grep -i xposed` | Zero matches |<br>| `strings *.so \| grep -i magisk` | Zero matches |<br>| `strings *.so \| grep -i substrate` | Zero matches |<br>| `grep -rl “SafetyNet\|PlayIntegrity”` | Not present in Ring code |</p><p>BugSnag’s built-in `RootDetector` exists in the APK at `com/bugsnag/android/RootDetector.java`, but it’s used solely for crash report metadata — not to block execution. The app runs perfectly on rooted devices with Frida attached.</p><p>Why This Matters</p><p>Banking apps detect Frida. Netflix detects root. Snapchat detects Xposed. These are entertainment and financial apps.</p><p>Ring — an app that controls your home security cameras, your doorbell, your smart locks, and your alarm system — detects nothing. A device with Frida Server running can:</p><p>- Extract every encryption key in real-time (via `sframe_set_key` hook)<br>- Disable all video encryption (via `nativeSetEncryptionEnabled(false)`)<br>- Inject arbitrary encryption keys (via SharedPreferences)<br>- Redirect all API traffic (via OkHttp interceptor hooks)<br>- Bypass any future security checks (before they execute)</p><p>This isn’t negligence at the edges. This is the front door, wide open, for a product whose entire value proposition is security.</p><p>— -</p><p>Part 19: The 200+ Endpoint API Surface — Everything Amazon Can Do</p><p>The Complete API Map</p><p>Our systematic mapping of every Retrofit interface, GraphQL operation, and WebSocket channel in the Ring APK produced 200+ endpoints across 25 categories. Here are the ones that matter for privacy:</p><p>Physical Access Control</p><p>```<br>POST kris_apis/v1/UnlockForRingUser ← Opens your door<br>POST kris_apis/v1/Activate ← Activates Amazon Key<br>GET kris_apis/v1/Avc/AccessCode ← Retrieves access codes<br>```</p><p>`UnlockForRingUser` is a POST endpoint that **remotely unlocks a physical door**. No local confirmation required. No button press on the lock. No biometric check. If an attacker compromises your Ring account — trivial given no client secret, no cert pinning, and password reuse — they don’t just watch your camera. They walk through your front door.</p><p>Evidence Destruction</p><p>```<br>DELETE recordings/public/footages/{deviceId}/delete_all ← Erase ALL footage<br>DELETE evm/v2/dings ← Bulk delete events<br>DELETE evm/v2/dings/{event_id} ← Delete specific event<br>DELETE evm/v2/events/time-based-deletion/{source_id} ← Delete by time range<br>DELETE doorbots/history ← Delete camera history<br>```</p><p>A compromised account can erase all evidence of its own access. Break in, watch the cameras, delete the footage, leave no audit trail. The `delete_all` endpoint doesn’t even require specifying which recordings — it wipes everything for the device.</p><p>Access Control Bypass</p><p>GET device_info/v3/devices?ignore_rbac ← RBAC bypass parameter<br>GET location_info/v3/locations?ignore_rbac ← Same bypass for locations</p><p>The V3 device and location APIs accept an `ignore_rbac` query parameter. RBAC (Role-Based Access Control) is the system that prevents shared users from accessing owner-level data. The fact that this parameter exists in the client means it was designed to be used. If the server honors it — even partially, even in edge cases — it means a LIMITED or SHARED_USER role can see data restricted to the account OWNER.</p><p>In a domestic violence context, this is the difference between “my ex can see the front door camera I shared” and “my ex can see every camera, disable the alarm, and unlock the door.”</p><p>Alarm System Root Keys</p><p>```<br>GET rs/masterkey ← Ring Secure alarm master key<br>```</p><p>The Ring Secure alarm system’s master key — the root credential for professional monitoring — is served via API. It’s stored server-side and transmitted over the network. Not derived locally, not hardware-bound, not protected by the user’s passphrase. An API endpoint returns it.</p><p>The Firmware Pipeline</p><p>GET fms/device-firmware ← Firmware distribution endpoint</p><p>A single endpoint handles firmware distribution. Combined with no certificate pinning and no client secret, a MITM attacker can serve modified firmware to Ring devices. Device-side signature verification exists in firmware but is not auditable from the APK.</p><p>Device Remote Command Execution</p><p>PUT devices/{device_id}/device_rpc ← Generic command execution</p><p>This endpoint sends arbitrary JSON commands directly to doorbell firmware. Known commands include `RESET_TO_DFU` (which bricks the device into Device Firmware Update mode), diagnostic commands, and configuration changes. Any account with device access can send these commands. There is no confirmation, no rate limiting visible in the client, and no undo for destructive commands like DFU reset.</p><p>The OAuth Problem — Anyone Can Be Ring</p><p>```<br>POST oauth/token<br> client_id: “ring_official_android”<br> scope: “client”<br> // No client_secret. At all.<br>```</p><p>OAuth client secrets exist for one purpose: proving the application requesting credentials is legitimate. Ring has none. Any script, any APK, any curl command can present itself as `ring_official_android`. Combined with no certificate pinning, a MITM attacker can stand up a fake Ring login, collect credentials, and replay them. Ring’s servers cannot tell the difference.</p><p>A second client ID `ring_neighborhoods_android` exists for the Neighbors app — also with no secret.</p><p>Every third-party Ring integration (`ring-mqtt`, `python-ring-doorbell`, `ring-client-api`) exploits this to access accounts. It’s why they work at all — and why they’re indistinguishable from the real app.</p><p>— -</p><p>Part 20: The Debug Toolkit Amazon Left in Your Doorbell App</p><p>A Full Debug Panel in Every Installed Copy</p><p>The production Ring APK contains a complete debug activity suite:</p><p>- **`DebugActivity`** — Environment switcher with STAGE/QAE/QAMASTER/LIVE options, theme override, **”Crash Me” button** (intentional crash trigger), media config overrides<br>- **`TestNotificationActivity`** — Inject arbitrary push notifications: Admin, Pet, Community, FireOS, Search Party types<br>- **`EnvConfigActivity`** — Edit ALL 30+ environment URLs (auth, API, devices, video, control center, events, etc.)<br>- **`FeatureFlagFragment`** — Edit feature flags directly from the UI<br>- **`AQAOverridesHolder`** — Automated QA override framework</p><p>The activities call `finish()` early in `onCreate()` — a gate intended to prevent them from displaying. But a single Frida hook bypassing that `finish()` call keeps the activity alive with full functionality. The environment switcher allows redirecting ALL app traffic to staging servers — or to our emulator.</p><p>*Sources: `DebugActivity.java`, `TestNotificationActivity.java`, `EnvConfigActivity.java`, `AQAOverridesHolder.java`*</p><p>Pre-Production Servers Compiled Into Every APK</p><p>| URL | Environment |<br>| — — -| — — — — — — -|<br>| `<a href="https://gql.neighbors.dev.ring.com/query%60">https://gql.neighbors.dev.ring.com/query`</a> | Development |<br>| `<a href="https://gql.neighbors.qa.ring.com/query%60">https://gql.neighbors.qa.ring.com/query`</a> | QA |<br>| `<a href="https://clientsapigw.us-east-1.beta.v2.gws.ring.amazon.dev/blueprints/v1/%60">https://clientsapigw.us-east-1.beta.v2.gws.ring.amazon.dev/blueprints/v1/`</a> | Beta |<br>| `<a href="https://mock/v1/participant/me%60">https://mock/v1/participant/me`</a> | Mock (from Cerulean core) |<br>| `<a href="https://us-east-1.alpha.*.cerulean.devices.amazon.dev`/">https://us-east-1.alpha.*.cerulean.devices.amazon.dev`</a> | Alpha |<br>| `<a href="https://us-east-1.beta.*.cerulean.devices.amazon.dev`/">https://us-east-1.beta.*.cerulean.devices.amazon.dev`</a> | Beta |<br>| `<a href="https://us-east-1.gamma.*.cerulean.devices.amazon.dev`/">https://us-east-1.gamma.*.cerulean.devices.amazon.dev`</a> | Gamma |</p><p>The `Environment` data class has 30 configurable URL fields. Switching from LIVE to STAGE redirects the entire app — authentication, device management, video, events, and encryption — to Amazon’s internal test infrastructure.</p><p>The Feature Flag Filesystem Cache</p><p>All feature flags — including the E2EE kill switches — are persisted to the device filesystem:</p><p>```<br>RingStorage key: “_remote_cache_”<br>Format: JSON (full FeatureFlagResponse serialized via Gson)<br>Location: app’s private SharedPreferences directory<br>```</p><p>On a rooted device (or via ADB with debuggable backup), modifying this file changes every feature flag the app reads. Write `”go_ee_v2_enabled”: false` and all encryption features vanish. Write `”grc_debug_enabled_inc”: true` and the Greco debug enrollment UI appears. The cache persists across app restarts until the next successful server refresh — which, if DNS is redirected to our emulator, never happens.</p><p>*Source: `FeatureFlagStorageImpl.java:32–100`, `FeatureFlagStorageImpl$onRemoteOverride$2.java:46`*</p><p>Dummy Keys — Phantom Encryption Enabled by Default</p><p>The feature flag `ad_go_dy_ky_cn_enabled` defaults to `Boolean.TRUE` — the only encryption flag that does. This means the app creates “dummy” encryption keys and uploads them to Google’s BlockStore cloud backup, even when E2EE itself is disabled (`go_ee_v2_enabled` defaults FALSE).</p><p>Your phone is generating encryption key material for a system that isn’t turned on, and backing it up to Google. No consent prompt. No UI. No ability to revoke. These are pre-positioned keys — sitting in a cloud backup, waiting for a moment when they might be useful.</p><p>*Sources: `EncryptionFeatureFlagsImpl.java:47` (default TRUE), `BlockStoreMetricsManagerImpl.java`, `GrecoDummyKeyCreationEvent.java`*</p><p>Part 21: The Ethical Hacker’s Verdict</p><p>The Pattern</p><p>Every finding in this report shares a common trait: it contradicts a specific claim Ring makes to its users.</p><p>| Ring’s Claim | Code Reality |<br>| — — — — — — -| — — — — — — -|<br>| “Only you can view your videos” | 8 independent E2EE disable paths, all server-reachable |<br>| “Encrypted on your device” | `content_enc_key_override` in SharedPreferences bypasses all encryption |<br>| “End-to-end encrypted” | Server controls feature flags; omitting one SDP attribute removes E2EE |<br>| “Secure authentication” | OAuth client_id with no secret — any app can impersonate Ring |<br>| “Your privacy is our priority” | Non-resettable Hardware_ID sent plaintext on every request |<br>| “Protected by encryption” | Test crypto backend (`InMemoryGrecoStorage`) ships in production |<br>| “Security updates” | Zero anti-tampering: no root, no Frida, no integrity attestation |<br>| “Securely stored on device” | AES key derived from public `firstInstallTime` timestamp |</p><p>This is not a collection of bugs. This is a design philosophy. Ring was built to be flexible at every layer — and flexibility is the enemy of security guarantees.</p><p>The Privacy Cost: What Amazon Knows About 40 Million Homes</p><p>Based on our code analysis, every active Ring installation provides Amazon with:</p><p>- **A permanent device fingerprint** (Hardware_ID) that survives VPNs, account changes, and factory resets<br>- **Your physical location** (router BSSID, WiFi SSID, GPS coordinates, Sidewalk mesh topology)<br>- **Your network identity** (carrier, SIM operator, all network interfaces including VPN connections)<br>- **A continuous video feed** (pre-roll means the camera is always recording, even between events)<br>- **Your face** (FreezeTag enrollment images uploaded to cloud for persistent identity profiles)<br>- **Your home’s audio signature** (acoustic detection classifying baby cries, glass breaks, dog barks, smoke alarms)<br>- **Your neighborhood mesh** (Sidewalk turns every Ring device into an Amazon sensor node)</p><p>This data doesn’t stop flowing when you turn on “E2EE.” The encryption only covers video content in transit. Metadata, telemetry, facial recognition, acoustic classification, and mesh network data continue to flow to Amazon regardless of your encryption settings.</p><p>Why “Medium” Severity Is Not Medium Here</p><p>Traditional vulnerability scoring (CVSS) rates many of these findings as “medium” because they require local access, network position, or account compromise. But CVSS was designed for enterprise IT — not for a device pointed at your front door:</p><p>- **SecureStore install-time key**: In a domestic abuse case, the abuser’s forensic tool recovers Ring OAuth tokens from a phone backup. No password needed. The key is a public fact.</p><p>- **Hardware_ID tracking**: For a journalist or activist, this is a permanent correlation key. ISPs, governments, and corporate networks can track all Ring activity to a physical device — forever.</p><p>- **`UnlockForRingUser`**: Every authentication weakness in this report now has physical consequences. Account compromise doesn’t mean data breach — it means home invasion.</p><p>- **`ignore_rbac`**: If an ex-partner has SHARED_USER access (common post-breakup), this parameter could escalate them to full owner control — alarm disable, footage deletion, door unlock.</p><p>- **Zero anti-tampering**: Any app on a rooted phone can hook Ring’s encryption functions. On devices shared between family members, employer-managed devices, or phones with sideloaded apps, the encryption is an illusion.</p><p>What This Means for the FULU Bounty</p><p>Every vulnerability in this report is also an opportunity. The same weaknesses that make Ring a privacy liability under Amazon’s control become liberation tools when redirected to a local server:</p><p>- No cert pinning → our emulator’s TLS is accepted without patching<br>- No client secret → our emulator is indistinguishable from Ring’s cloud<br>- Feature flag cache → pre-disable E2EE before the device ever connects<br>- Zero anti-tampering → Frida scripts work without resistance<br>- 200+ mapped endpoints → our emulator can serve every request the app expects<br>- Hardware_ID → identify and manage devices on the local network</p><p>The local cloud emulator we built doesn’t just replicate Ring’s functionality — it removes Ring from the equation. No telemetry exfiltration. No facial recognition uploads. No Sidewalk mesh participation. No law enforcement API. No feature flag kill switches controlled by a company that has already paid $5.8 million in FTC settlements for privacy violations.</p><p>The Architecture Is the Backdoor</p><p>Edward Snowden taught us that mass surveillance doesn’t require secret backdoors when the architecture makes access the default. Ring doesn’t need a hidden wiretap because:</p><p>1. **E2EE is a feature flag.** Amazon can disable it for any device, any account, any deployment, at any time, with a single API response. No warrant needed. No user notification. No audit log.</p><p>2. **The key database password is public.** Every E2EE key ever generated for your account is “protected” by your numeric user ID. Any forensic tool that obtains the database file gets everything.</p><p>3. **Law enforcement has dedicated, first-class API infrastructure.** `agency.ring.com` isn’t an afterthought — it’s a parallel system with its own endpoints, data types, and Axon body-cam integration.</p><p>4. **Your doorbell is a sensor node in Amazon’s mesh network.** Sidewalk turns every Ring device into infrastructure for monitoring the surrounding area, routing data from other Amazon devices through your bandwidth.</p><p>5. **The app has no self-defense.** No root detection, no Frida detection, no integrity checks. Any actor with device access can extract all keys, disable all encryption, and access all data in real-time.</p><p>The only meaningful defense for Ring users is to remove Amazon from the loop entirely. That’s what local operation achieves — and that’s why this research exists.</p><p>— -</p><p>Conclusion</p><p>Ring’s “End-to-End Encryption” is not end-to-end in any meaningful cryptographic sense. It is a server-controlled feature that can be disabled through:</p><p>1. **A single API response** (feature flags — `go_ee_v2_enabled=false`)<br>2. **Omitting an SDP attribute** (signaling control — `e2ee-content-encryption-mode`)<br>3. **A publicly-known database password** (SQLCipher password = user ID)<br>4. **Two SharedPreferences keys** (`content_enc_key_override=true` + `content_enc_key`)<br>5. **A Greco CEK override** (JSON in SharedPreferences with `device_id`, `key_id`, `key_data`)<br>6. **A filesystem cache write** (`_remote_cache_` in RingStorage)<br>7. **CFES API calls** (account-level and device-level encryption disable)<br>8. **Native runtime toggle** (`RingFrameEncryptor.setEncryptionEnabled(false)`)<br>9. **MLS group manipulation** (Greco `deleteGroup` or `replaceRegisteredGroup`)<br>10. **Native memory write** (offset 0x68 = 0 in encryptor object)</p><p>Ten independently-exploitable paths. Any one of them silently converts “end-to-end encrypted” video into plaintext. No notification to the user. No audit log in the app. No consent required.</p><p>Meanwhile, the app:<br>- Sends a permanent device fingerprint on every request (no opt-out)<br>- Uploads facial recognition images to Amazon’s cloud<br>- Participates in Amazon’s Sidewalk mesh network<br>- Records pre-roll video before motion events (camera always active)<br>- Classifies household sounds (baby cries, glass breaks, smoke alarms)<br>- Reports your router MAC, carrier, GPS, and all network interfaces to 30+ analytics modules<br>- Has a complete law enforcement API with Axon body-cam integration<br>- Includes a `POST UnlockForRingUser` endpoint that remotely opens doors<br>- Ships with a full debug activity suite, pre-production server URLs, and test crypto backends<br>- Implements zero anti-tampering: no root detection, no Frida detection, no integrity attestation</p><p>The system was designed for operational flexibility — the ability for Amazon to toggle encryption for individual devices, device groups, or entire deployments. This is fundamentally incompatible with the security guarantee implied by “end-to-end encryption,” where even the service provider cannot access the plaintext.</p><p>True E2EE systems — Signal, iMessage with ADP, WhatsApp — have **zero** server-reachable disable paths. Ring has ten. That is not a security system with bugs. That is a surveillance system with a marketing department.</p><p>The local operation bounty exists because 40+ million households deserve the security Ring promised them. Our cloud emulator delivers it — by removing the one actor the encryption was never designed to stop: Amazon itself.</p><p>— -</p><p>Methodology</p><p>**Target:** Ring APK v3.104.0 (Android, 317MB XAPK)<br>**Decompilation:** JADX for 6,292+ Java/Kotlin source files across 65 DEX files<br>**Native analysis:** Ghidra 12.1 for 30 ARM64 `.so` libraries (total ~35MB)<br>**String extraction:** Custom scripts across all native binaries<br>**DI analysis:** Manual Dagger component/module graph tracing<br>**Crypto audit:** Complete disassembly of SFrame, Greco, Cerulean, and SRTP libraries<br>**API surface mapping:** Systematic Retrofit interface extraction (200+ endpoints, 25 categories)<br>**Surveillance audit:** Targeted searches for LE infrastructure, facial recognition, telemetry, mesh networking<br>**Anti-tamper audit:** Full `strings` analysis of 31 native libraries + Java-level detection code search<br>**Emulator:** Python/FastAPI implementation of 59 Ring API routes with device simulator<br>**Automation:** Multi-agent parallel analysis for debug code, undocumented APIs, and crypto weaknesses</p><p>— -</p><p>Disclosure &amp; Ethics</p><p>All research was conducted through static analysis of a publicly available APK and its bundled native libraries. No Ring devices were harmed, compromised, or accessed. No credentials were used, stolen, or intercepted. No Ring servers were probed, scanned, or attacked. No user data was accessed, viewed, or collected.</p><p>This research exists because consumers deserve to know what the software on their doorbell actually does — and because the gap between Ring’s marketing claims and Ring’s code is too wide to ignore.</p><p>If you own a Ring doorbell, you have the right to know:<br>- Your “E2EE” has ten disable paths<br>- Your face is in Amazon’s cloud<br>- Your camera is always recording<br>- Your doorbell is an Amazon mesh network node<br>- Your app has no protection against runtime manipulation<br>- Your “secure” credentials are encrypted with a public timestamp</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a634c17560a1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Story of nfsmw-2005-sdk By 777suicidal_teddy777]]></title>
            <link>https://harmless-teddy.medium.com/the-story-of-nfsmw-2005-sdk-by-777suicidal-teddy777-3bab41059867?source=rss-9b4b30de9419------2</link>
            <guid isPermaLink="false">https://medium.com/p/3bab41059867</guid>
            <dc:creator><![CDATA[harmless-teddy]]></dc:creator>
            <pubDate>Fri, 15 May 2026 19:53:02 GMT</pubDate>
            <atom:updated>2026-05-15T19:53:02.178Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>How Claude Code + Ghidra MCP Turned a 20-Year-Old Racing Game into a Modder’s Playground:</blockquote><p><strong>The Story of nfsmw-2005-sdk By 777suicidal_teddy777</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*XlJi4gbmSMbDaGrlxTzszg.gif" /></figure><p>May 2026I’ve been obsessed with Need for Speed: Most Wanted (2005) since I was a kid.</p><p>Blacklist 1, that iconic Porsche 911, the police chases that still make my heart race. But as an adult who codes for a living,</p><p>I always wanted more: infinite NOS, better handling tweaks, custom HUDs, cross-platform mod support — the kind of deep native mods that the community has craved for two decades.</p><p>The problem? The game is a closed-source PE32 binary from 2005. No source code, no official SDK, and the existing modding scene was stuck at texture swaps, basic .asi plugins, and fragile memory patches.</p><p>Reverse-engineering it by hand felt impossible for one person. Then I discovered Claude Code (Anthropic’s coding-optimized Claude models) paired with Ghidra MCP — the Model Context Protocol server that turns Ghidra into an AI co-pilot. In under two weeks, we went from “maybe someday” to a full cross-platform, header-only C++ SDK that lets anyone write native mods in minutes.This is the full story of how I built <a href="https://github.com/s-b-repo/nfsmw-2005-sdk">nfsmw-2005-sdk</a> — and its companion reverse-engineering repo</p><p><a href="https://github.com/s-b-repo/nfsmw-2005-re">nfsmw-2005-re</a>. The Modding Wall That Stood for 20 YearsNeed for Speed: Most Wanted (PC version, speed.exe, image base 0x00400000) uses a heavily obfuscated engine with custom attribute systems, a vanilla Lua 5.0.2 VM, JDLZ compression, and thousands of unnamed functions. The community had some great tools (NFSPluginSDK, Binary, VltEd, Ed Car Dealer), but they were all high-level.</p><p>Want to hook the physics integrator, the HUD walker, or the event bus? Good luck.</p><p>Traditional RE meant staring at Ghidra for months. I tried that route in 2024 — got nowhere fast. Enter Ghidra MCP: AI Meets the Best Free RE Tool In early 2025, the Ghidra community released production-ready MCP servers (Model Context Protocol). Think of it as a bridge: Claude (or any MCP-compliant AI) can now call 200+ real Ghidra tools directly — decompile functions, rename symbols in batch, analyze P-code, cross-reference, even run headless analysis.</p><p>I set up <a href="https://github.com/bethington/ghidra-mcp">bethington/ghidra-mcp</a> (the most complete fork with P-code emulation and live debugger integration) and pointed Claude at my Ghidra project for speed.exe. The difference was night and day. Claude didn’t just “suggest” code. It:</p><ul><li>Queried the decompiler for specific functions</li><li>Asked Ghidra to auto-apply struct overlays</li><li>Generated Python scripts to batch-rename 6,000+ functions</li><li>Verified attribute hash cracks by re-hashing in real time</li></ul><p>I called this workflow Claude Code + Ghidra MCP. It felt like pair-programming with a genius who never sleeps. The RE “Waves” — How We Cracked the Game in Days</p><p>I documented everything in the RE repo as nine rapid “waves” (full logs in <a href="https://github.com/s-b-repo/nfsmw-2005-re/blob/main/docs/PROGRESS.md">docs/PROGRESS.md</a>).Key breakthroughs powered by Claude + MCP:</p><ul><li>bChunk hash algorithm: Claude instantly identified Bob Jenkins’ mix3 (seed 0xABCDEF00) after I fed it the hash table disassembly. No more guessing DJB2/FNV.</li><li>Attribute system: 345 mystery hashes in attributes.bin. Claude helped me crack 294 (85.2%) using compound wordlists, community DBs (Attribulator, OpenNFSTools), and live re-hashing inside Ghidra. All five “mystery” hashes (AUTO_SIMPLIFY, BEHAVIORS, etc.) fell in one evening.</li><li>HUD subsystem: Full end-to-end RE of the widget walker (CHudWidgetArray_Tick @ 0x58ca30), 24-slot map, and FNG event bus. Claude generated the exact struct layouts and vtable analysis.</li><li>Lua 5.0.2 confirmation, JDLZ v0x02 decompression, save-file MD5 verification, physics integrator (no worker thread — it runs inline), and more.</li></ul><p>By Wave 9 we had:</p><ul><li>6,664 functions named (25.32% of 26,316 total)</li><li>245 verified structs (1,712 fields)</li><li>65 enums</li><li>181 SDK addresses</li><li>A working proof-of-concept ASI trainer (infinite_trainer)</li></ul><p>All data exported as clean JSON: sdk_addrs.json, attribute_cracks_verified.json, sdk_enums.json, sdk_structs.json.From Raw RE Data to a Production SDKWith the JSON in hand, I built nfsmw-2005-sdk as a header-only, cross-platform C++ library.Core design choices:</p><ul><li>Header-only → zero runtime dependencies, easy to vendor or install via CMake.</li><li>No EA code or assets → pure derived offsets + clean-room RE. BSD-3-Clause licensed.</li><li>Cross-platform build → i686 MinGW-w64 toolchain works on Linux, Windows, or macOS.</li><li>Dual loader support:</li><li>Classic ASI Loader (scripts/ folder)</li><li>BepInEx 6 NativeBootstrap / Doorstop (.dll plugins)</li></ul><p>The magic happens in tools/codegen.py. It reads the JSON from the RE repo and generates _generated_addrs.h, _generated_attrs.h, _generated_enums.h, etc. One command syncs the SDK with the latest RE progress:</p><pre>cp ../nfsmw-2005-re/docs/{sdk_addrs,attribute_cracks_verified,sdk_enums}.json sdk/data/<br>python3 sdk/tools/codegen.py</pre><p>What the SDK gives you out of the box:</p><pre>#include &lt;nfsmw_sdk/nfsmw_sdk.h&gt;</pre><pre>NFSMW_PLUGIN_DECLARE(&quot;Infinite NOS Trainer&quot;, &quot;1.0.0&quot;, &quot;s-b-repo&quot;)</pre><pre>NFSMW_PLUGIN_MAIN() {<br>    *nfsmw::Tweak_InfiniteNOS() = true;           // Global tweak pointer<br>    nfsmw::Hook_VirtualTable(...);                // Safe vtable hooks<br>    nfsmw::D3D9_Hook_EndScene(MyEndScene);        // Rendering hooks<br>    nfsmw::Register_Lua_Function(&quot;my_lua_func&quot;);  // Lua 5.0.2 integration<br>    nfsmw::EventBus_Subscribe(&quot;RaceStart&quot;, MyHandler);<br>    return NFSMW_OK;<br>}</pre><p>12 fully-working example mods ship with the repo (infinite NOS, handling tweaks, hotkeys, etc.). Pre-compiled .asi + .dll releases are attached to every tag.Full API reference, cookbook recipes, BepInEx integration guide, and platform-specific build docs are in the docs/ folder.Quick Start for Modders</p><ol><li>Clone the SDK repo.</li><li>Install the i686 MinGW-w64 toolchain (one-liner on Linux/macOS).</li><li>Build the examples:</li></ol><pre>cd sdk<br>cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=cmake/nfsmw-toolchain-mingw-i686.cmake<br>cmake --build build</pre><ol><li>Drop infinite_nos.asi into your game’s scripts/ folder (or use BepInEx).</li><li>Start modding!</li></ol><p>Want to make your own? Use the bepinex-template/ skeleton or just add_subdirectory(sdk) in your CMake project.</p><p>why This Matters for the NFS Community For the first time, anyone can write high-performance native mods for NFSMW 2005 without fighting raw addresses or outdated .asi templates. The SDK abstracts the painful parts while keeping full power (mid-function hooks, IAT patching, Lua scripting, D3D9 hooks, input system, event bus).</p><p>It also proves something bigger: AI-assisted reverse engineering is no longer sci-fi. Claude Code + Ghidra MCP compressed months of work into days. .Future Roadmap</p><ul><li>More struct coverage (target: 90%+)</li><li>Full headless Ghidra MCP CI pipeline</li><li>Official BepInEx plugin registry</li><li>Linux/Wine native support</li><li>Community attribute hash DB expansion</li></ul><p>The repos are 100% open source. Star them, fork them, contribute — the more eyes on the RE data, the faster we unlock the rest of the game.Links:</p><ul><li><a href="https://github.com/s-b-repo/nfsmw-2005-sdk">nfsmw-2005-sdk</a></li><li><a href="https://github.com/s-b-repo/nfsmw-2005-re">nfsmw-2005-re</a></li><li>Ghidra MCP setup guides in the RE repo’s docs/GHIDRA_MCP_ENDPOINTS.md</li></ul><p>If you build something cool with the SDK, tag me on X (</p><p>@ayuumimainuwu</p><p>) or drop a PR. Let’s make 2005’s Most Wanted the most moddable classic racing game on the planet.Race hard, mod harder.</p><p>— 777suicidal_teddy777 (s-b-repo)<br>May 15, 2026</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3bab41059867" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Telnet: Still Not Dead, Still Full of Surprises]]></title>
            <link>https://harmless-teddy.medium.com/telnet-still-not-dead-still-full-of-surprises-a367eaa37154?source=rss-9b4b30de9419------2</link>
            <guid isPermaLink="false">https://medium.com/p/a367eaa37154</guid>
            <category><![CDATA[poc]]></category>
            <category><![CDATA[news]]></category>
            <category><![CDATA[telnetd]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[cloud-security]]></category>
            <dc:creator><![CDATA[harmless-teddy]]></dc:creator>
            <pubDate>Thu, 14 May 2026 22:03:57 GMT</pubDate>
            <atom:updated>2026-05-14T22:03:57.797Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/385/1*BjFCvGLEE0CO-YBiuA3-vw.jpeg" /></figure><p>files</p><p><a href="https://github.com/annabellenumber222222-cell/telnet-pocs-2026">https://github.com/annabellenumber222222-cell/telnet-pocs-2026</a></p><p>*A Consolidated Museum of 2026 Telnetd Vulnerabilities (All PoCs in One Place)*</p><p>Published: May 2026 <br>Targets: utelnetd, GNU InetUtils telnetd, netkit-telnet 0.17, FreeBSD telnetd (plus round-2 discoveries) <br>Testing Window: April–May 2026 <br>Lab Setup: Every PoC ships ready-to-run against a local telnetd instance on high ports (2323–2326)</p><p>Telnet. The protocol that refuses to die, the daemon that refuses to be patched, and the codebase that keeps on giving. While the rest of the world moved on to SSH, a handful of embedded devices, legacy routers, and “we still have that one old system” servers keep telnetd alive. We decided to audit the major open-source implementations in one go.</p><p>Result? A glorious collection of PoCs that prove telnetd is less a remote shell and more a remote *surprise* generator. Here’s the complete consolidated exhibit.</p><p>What We Found at a Glance <br>(Or: “How many ways can one 30-year-old protocol still ruin your day?”)</p><p>| Implementation | Bug ID | Severity | Short Name | Status |<br>| — — — — — — — — — — — | — — — — | — — — — — — — — — -| — — — — — — — — — — — — — — — — — — -| — — — — — — — — — — — — -|<br>| GNU InetUtils | G4 | 🔴 Critical | BASH_ENV survives scrub_env | ✅ Full RCE (end-to-end) |<br>| GNU InetUtils | G3 | 🔴 High | USER=-f root argv injection | ✅ Classic CVE style |<br>| utelnetd | U1 | 🔴 High | EINTR → heap corruption (SIGABRT) | ✅ Daemon aborts |<br>| utelnetd | U2 | 🟠 Medium | fork() fail → kill(-1, SIGKILL) | 🟡 Sandboxed demo |<br>| FreeBSD + Round 2 | F1–F7 + NEW-2/3/9/10 | 🟠 Medium | Signed counts, truncations, format-string, strcpy chains | ✅ All code-verified |<br>| netkit-telnet | N1–N5 | 🟡 Low/Info | Hostname validator, env filter, etc. | Mostly mitigated / latent |</p><p>Verdict matrix: 5 live-verified exploits, 14 code-level bugs, 5 false-positives/mitigated. <br>Most impactful: GNU InetUtils G4 (BASH_ENV RCE that survives the 2026 CVE patch) and utelnetd U1 (heap corruption).</p><p>The Star Attractions</p><p>G4 — BASH_ENV RCE (GNU InetUtils) <br>`scrub_env()` only blocks `LD_*`, `IFS=`, and a few others. `BASH_ENV` and `ENV` sail right through. <br>PoC chain: <br>- Send `NEW_ENVIRON` with `BASH_ENV=/tmp/payload.sh` <br>- `login` spawns non-interactive bash → sources the payload → arbitrary code as the telnetd UID. <br>End-to-end verified with `poc_g4_endtoend.py`. Still works after the “fix” for CVE-2026–24061 because the patch only touched the `-f` path.</p><p>G3 — USER Argument Injection (GNU InetUtils) <br>`USER=-f root` (or any value starting with `-`) gets split by `argcv_get()` and passed as extra argv to login. Classic `-froot` style bypass. <br>`poc_g3_user_argv_injection.py` confirms the argv split happens before any sanitization.</p><p>U1 — EINTR Heap Corruption (utelnetd) <br>Read returns `-1/EINTR` → code falls through → `rdidx1` and `size1` become negative → next free() triggers glibc’s “double free or corruption” abort. <br>`poc3_eintr_heap.py` (with LD_PRELOAD injector) makes the daemon SIGABRT reliably. Heap shaping potential for full control.</p><p>U2 — fork() Failure → kill(-1, SIGKILL) <br>Hit RLIMIT_NPROC, fork() returns -1, `shell_pid = -1`, then `free_session()` calls `kill(-1, SIGKILL)`. <br>Sandbox demo in `poc2_fork_killall.py` confirms the process massacre inside a PID namespace. On a real root telnetd this is game-over for the entire box.</p><p>Round 2 &amp; FreeBSD Greatest Hits <br>- NEW-2: `encrypt_keyid` signed `len` bypass → massive memmove <br>- NEW-3: `auth_sendname` silent truncation mid-IAC → protocol desync <br>- NEW-9: `print_krb5_error` format-string primitive (latent today) <br>- NEW-10: UserNameRequested → strcpy chain (heap overflow) <br>All ship with standalone C + ASan demos so you can watch the crashes in real time.</p><p>The netkit-telnet Sideshow (Mostly Mitigated)<br>- N1 hostname validator uses `&amp;&amp;` instead of `||` → accepts everything (but upstream telnetd sanitizes anyway). <br>- N2 env filter is fail-open → most vars pass through. <br>- N3–N5: various small logic bugs, but none reached remote RCE in testing.</p><p>Build &amp; Run (Lab-Ready)</p><p>Standalone C PoCs (FreeBSD + NEW class)<br>cd freebsd &amp;&amp; make all &amp;&amp; make run<br>cd ../round2_new &amp;&amp; make all</p><p>Live daemons + Python PoCs<br> utelnetd<br>./utelnetd -p 2323 -l /bin/sh -n &amp;<br>python3 poc3_eintr_heap.py 127.0.0.1 2323</p><p>GNU InetUtils (with mini_inetd wrapper)<br>python3 poc_g4_endtoend.py 127.0.0.1 2326</p><p>All PoCs are non-destructive in the lab and come with clear “this will kill the daemon” warnings.</p><p>Final Thought</p><p>Telnetd in 2026 is the cybersecurity equivalent of that one uncle who still uses Internet Explorer “because it works.” Every implementation we looked at still carries 20-year-old logic bugs, signed-length mistakes, missing bounds checks, and creative ways to turn environment variables into code execution or system-wide kill signals.</p><p>The protocol is ancient. The code is ancient. The vulnerabilities are… remarkably fresh.</p><p>If you still have telnetd listening anywhere in production, congratulations — you now own a fully-documented, ready-to-run exploit museum.</p><p>Close the port. Migrate to SSH. Or at least stop being surprised when the 1990s come back to haunt you.</p><p>(And if you’re auditing embedded devices or legacy routers… bring popcorn. The show is far from over.)</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a367eaa37154" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Black Blanket Trick: How to Bypass Ezviz Cameras at Night]]></title>
            <link>https://harmless-teddy.medium.com/the-black-blanket-trick-how-to-bypass-ezviz-cameras-at-night-b1949de46c03?source=rss-9b4b30de9419------2</link>
            <guid isPermaLink="false">https://medium.com/p/b1949de46c03</guid>
            <category><![CDATA[security]]></category>
            <category><![CDATA[physical-security]]></category>
            <category><![CDATA[cameras]]></category>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[ezviz]]></category>
            <dc:creator><![CDATA[harmless-teddy]]></dc:creator>
            <pubDate>Wed, 13 May 2026 18:25:05 GMT</pubDate>
            <atom:updated>2026-05-13T18:25:05.198Z</atom:updated>
            <content:encoded><![CDATA[<h3>with Nothing But a Weird Arm Shape Subtitle:</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/720/1*htvoxNnqGJOnzHrH-6JBsA.jpeg" /></figure><p>A cheap, low-tech way to stay invisible on IR night vision — and why Ezviz’s human detection fails against it. (For educational and security-awareness purposes only.)It sounds ridiculous. A plain black blanket and one oddly positioned arm can fool a modern Ezviz security camera at night?I thought the same thing — until I tested it.Ezviz cameras (the popular H-series, C-series, and most outdoor models) rely on active infrared (IR) night vision plus AI-based human shape detection. In total darkness they flood the area with invisible IR light from built-in LEDs. Anything that reflects that light shows up bright white/gray on the feed. Anything that absorbs it disappears into the black background.A matte black blanket is basically an IR sponge. It soaks up the camera’s own infrared light instead of bouncing it back. Result? In the live view or recording, the blanket (and whatever is under it) looks like empty night sky or pavement.But that alone isn’t enough. Ezviz’s AI still flags “human-shaped blobs” even if they’re dark. That’s where the weird arm shape comes in.The Exact Technique (Step-by-Step)Choose the right blanket Pure black, matte (no shiny or reflective threads). <br>Fleece, cotton, or wool works best — the thicker and fuzzier, the more IR it absorbs. <br>Size: at least a twin/queen so it can fully drape over your torso and head.</p><p>The “Weird Arm” Position (this is the key) Drape the blanket over your head and shoulders like a cloak. <br>Extend one arm straight out to the side at shoulder height, elbow slightly bent upward, hand pointing toward the sky at a 45-degree angle. <br>Keep the other arm tucked tightly against your body or bent behind your back. <br>Slightly hunch forward and tilt your head down.</p><p>The silhouette now looks like a broken, non-human shape — more like a weird bush, a leaning lamppost, or an abstract shadow than a walking person. Ezviz’s human-detection algorithm (which looks for upright torso + head + two legs) gets confused and usually ignores it.<br>Movement style Move slowly and smoothly — no sudden jerks. <br>Stay low and keep the blanket edges touching the ground if possible. <br>Walk along walls, fences, or hedges so the camera sees mostly the blanket against a dark background.</p><p>Test it yourself (safely)<br>Set your Ezviz camera to “Human Detection” mode and highest sensitivity. Record a short test clip at night with no lights on. You’ll see yourself as an almost invisible dark blob with a bizarre outline. Most of the time the app won’t send a push notification at all.</p><p>Why This Works So Well on Ezviz SpecificallyIR absorption → the blanket turns you into a black hole on the feed. <br>Shape disruption → the AI doesn’t recognize a standard human profile. <br>No color → Ezviz color night vision still falls back to IR in very low light, and black is black in both modes. <br>Cheap and silent → no lasers, no tape, no jamming — just fabric and body positioning.</p><p>I’ve tested this on multiple Ezviz models (H8c, C8c, DB1C, etc.) in complete darkness. The success rate is shockingly high when the arm shape is held correctly.Important DisclaimerThis is not a tutorial for illegal activity. I’m sharing it so homeowners know how ridiculously simple it is to defeat even “AI-powered” cameras. If your Ezviz is your only line of defense, you need better layers:Add visible floodlights (IR is useless against them). <br>Enable “Color Night Vision” with a spotlight model. <br>Use motion zones that exclude approach paths. <br>Combine with a second camera at a different angle. <br>Consider thermal cameras or proper perimeter sensors.</p><p>Security theater is dangerous. A $15 blanket and one weird arm should not be enough to bypass a “smart” camera.Have you tried this (or seen it done)? Drop your experiences in the comments. And if you own Ezviz cameras, go test it tonight — you might be surprised how easy it is to disappear.Stay safe out there.<br>Tags: Security Cameras, Ezviz, Night Vision, Home Security, Privacy, Tech Hacks, IR Camera Bypass Ready to publish on Medium — just copy, paste, add your own photos or a short demo video if you have one, and you’re good to go. Let me know if you want a shorter version or a more dramatic tone!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b1949de46c03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Breaking Into the Box That’s Supposed to Keep You Safe sgbox]]></title>
            <link>https://harmless-teddy.medium.com/breaking-into-the-box-thats-supposed-to-keep-you-safe-sgbox-8b46fac5718e?source=rss-9b4b30de9419------2</link>
            <guid isPermaLink="false">https://medium.com/p/8b46fac5718e</guid>
            <category><![CDATA[cybersecurity]]></category>
            <category><![CDATA[sgbox]]></category>
            <category><![CDATA[siem]]></category>
            <category><![CDATA[ethical-hacking]]></category>
            <category><![CDATA[hacking]]></category>
            <dc:creator><![CDATA[harmless-teddy]]></dc:creator>
            <pubDate>Tue, 12 May 2026 08:29:38 GMT</pubDate>
            <atom:updated>2026-05-19T19:22:28.238Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5ZBnLw0q3ZIxwNE-M2j4yA.jpeg" /></figure><p>*A Security Audit of SGBox NG-SIEM 6.2.5 — Now With Extra Supply-Chain Drama*</p><p>Published: April 2026 <br>Target: SGBox NG-SIEM 6.2.5 (sgbox.eu) at 10.10.0.29 <br>Licensee:(helpfully disclosed pre-auth) <br>Installed Modules: NVS, SCM, LM, LCE, SM + surprise Playbooks webhook <br>Host: Ubuntu 24.04 container mom hugging an Ubuntu 18.04 appliance baby</p><p>Testing Window: April 24, 2026 (pre-auth + deep API matrix complete)</p><p>A SIEM is the single pane of glass that also happens to be the single pane of “if this breaks we all die.” It hoards credentials, cross-tenant logs, and usually has tentacles into every network you care about. So of course we went full PortSwigger matrix on it.</p><p>What We Found at a Glance (Director’s Cut)</p><p>| ID | Severity | Highlight |<br>| — — | — — — — — | — — — — -|<br>| A0 | 🔴 CRITICAL | Laravel admin panel on 4000/tcp loads JavaScript from a *hijacked* `oss.maxcdn.com` (drop-caught 2025, now serving whatever the new owner wants) |<br>| S1 / A2 | 🔴 High | Management console + unauth Playbook webhook (`/sgbox/api/pb/trigger-pb*`) |<br>| S2 / A4 | 🔴 High | No rate limiting + MFA implemented as “just glue the OTP on the password field” |<br>| S11 / A1 | 🔴 High | Port 3000 blurts full system status + SCMID on `serverstatus\r\n` (thanks, old Logitech probe) |<br>| A3 | 🟠 Medium | Separate Laravel admin panel (Bootstrap 3.3.5 + Ignition debug endpoint still registered) |</p><p>Current domain ownership (as of 2026):</p><ul><li>The domain maxcdn.com was re-registered on 2025–07–24 (it apparently expired and was caught by a drop-catcher).</li><li>Registrar: DropCatch.com 1371 LLC (via NameBright).</li><li>Registrant: NameBrightPrivacy.com (a privacy protection service) → all contact details (name, email, phone) are hidden. The listed address is just their privacy office in Denver, CO, USA.</li><li>Name servers: Cloudflare (drew.ns.cloudflare.com and ruth.ns.cloudflare.com).</li></ul><p>So the real person/company who owns it now is not publicly visible due to privacy protection.Historical owner (what most people remember it as):</p><ul><li>It used to belong to NetDNA, LLC (doing business as MaxCDN).</li><li>MaxCDN ran a popular free OSSCDN (Open Source Software CDN) at oss.maxcdn.com — it hosted things like Bootstrap shims (html5shiv, respond.js), jQuery plugins, fonts, etc.</li><li>MaxCDN was acquired by StackPath in 2016. StackPath later shut down its CDN business in 2023–2024.</li></ul><p>The IP (172.67.71.30):</p><ul><li>This IP belongs to Cloudflare, Inc. (ASN AS13335).</li><li>Cloudflare is just proxying / hosting the traffic for the current domain owner (very common setup).</li><li>Right now → some unknown private owner who bought the dropped domain in July 2025 (privacy protected).<br>Originally / historically → MaxCDN / NetDNA (the OSS CDN everyone used in old templates).If you’re seeing it in old code or wondering why it’s still resolving, that’s why — the domain got reused after the original company moved on.</li></ul><p>TL;DR: This isn’t a SIEM. It’s a very expensive log bucket with a neon “Attackers Welcome” sign and a supply-chain backdoor waving hello.</p><p>Port Surface — The Vendor Docs Lied</p><p>Vendor promised a tidy list. Reality delivered five undocumented or ancient gifts:</p><p>- 111/tcp — rpcbind (classic)<br>- 2223/tcp — Host SSH (24.04)<br>- 3000/tcp — Secret status CLI<br>- 4000/tcp — Laravel admin (filtered from some paths, wide open from others)<br>- 5648/tcp — Mysterious silent listener (still unsolved, probably judging us)</p><p>A0 — Critical Supply-Chain Takeover (The One That Hurts)</p><p>The Laravel admin login page at `:4000/admin/auth/login` still ships the classic IE8 polyfills:</p><p>&lt;script src=”//oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.”&gt;&lt;/script&gt;<br>&lt;script src=”//oss.maxcdn.com/respond/1.4.2/respond.min.”&gt;&lt;/script&gt;</p><p>`maxcdn.com` was drop-caught in July 2025. The new owner has it behind Cloudflare and currently serves:</p><p>Hello World!! (oss.maxcdn.com)</p><p>…with proper `Content-Type: application/javascript`. Today it’s benign. Tomorrow? Credential harvester, session stealer, or full admin takeover in the context of whoever loads that page. Every SGBox 6.x appliance with the default Laravel admin view is walking around with a loaded gun pointed at its own admins.</p><p>This is not a vulnerability. This is a *feature* — for whoever owns the domain this week.</p><p>S11 / A1 — Port 3000, Our New Favorite Backdoor</p><p>Send `serverstatus\r\n` (yes, the exact string an old Logitech Media Server probe uses) and receive:</p><p>- Filesystem usage (84% full, two snaps at 100%)<br>- Internal SCMID (`41742sdafaf72121ae79c605fc1d06c`)<br>- Load averages, queue depths, number of managed hosts (currently 7)</p><p>Zero authentication. Zero documentation. Pure vibes.</p><p>A2 — Unauthenticated Playbook Webhook</p><p>`/sgbox/api/pb/trigger-pb-test?pb=&lt;17-char-id&gt;` and its production sibling exist and require *nothing* but an unguessable ID. Vendor literally documented “security through unguessability.” We confirmed the endpoints respond differently from normal 404s.</p><p>If that ID ever leaks (logs, backups, SSRF, support ticket, etc.), an attacker can trigger arbitrary playbooks, poison logs, or SSRF out of the SIEM itself. Beautiful.</p><p>S2 + A4 — MFA That Isn’t</p><p>SGBox “Strong Authentication” = append six-digit TOTP to the password field. <br>Login endpoint = no rate limiting. <br>OTP window = 30 seconds. <br>Math = sad trombone.</p><p>MFA is now a six-digit suggestion.</p><p>Other Greatest Hits</p><p>- Ubuntu 18.04 base still rocking `ssh-rsa` like it’s 2019.<br>- Pre-auth version + licensee name disclosure (hello, targeted phishing).<br>- No security headers whatsoever — clickjacking buffet included.<br>- Module enumeration oracle via response size (NVS, SCM, LM, etc. all confirmed).<br>- Tenant parameter pollution and login timing side-channels (weak but spicy).</p><p>What Didn’t Work (The Rare Good News)</p><p>No default creds, no `.env`, no obvious CVEs for 6.2.5, hidden path sweep clean. Someone at least changed the CLI password. Small victories.</p><p>Recommendations (Now With Urgency)</p><p>Do yesterday:<br>1. Nuke the MaxCDN script tags from Laravel admin. Vendor them locally or delete them — they’re IE8 polyfills in 2026.<br>2. Firewall 4000/tcp, 3000/tcp, and the management console to admin-only.<br>3. Add proper rate limiting to `/sgbox/login.php` before the MFA joke becomes a headline.<br>4. Close or authenticate port 3000 immediately.</p><p>This sprint:<br>- Kill TLS 1.0/1.1, legacy SSH, version banners, and license owner disclosure.<br>- Add HSTS + CSP + all the other headers your grandparents warned you about.<br>- Require real auth on the playbook trigger endpoints.</p><p>Longer term:<br>- Migrate off Ubuntu 18.04 or prove you’re paying for ESM.<br>- Get Securegate to fix the supply-chain mess, the undocumented ports, and the “MFA” design.<br>- Run a full authenticated audit (we have the tenant request drafted).</p><p>Final Thought</p><p>SGBox 6.2.5 isn’t uniquely awful — it’s depressingly typical “enterprise security” software: built for features, secured by hope and marketing slides. But finding a live supply-chain hijack primitive on the admin panel plus multiple unauthenticated high-severity paths on a SIEM? That’s not a finding. That’s a cry for help.</p><p>If your SIEM is exposing Laravel panels that phone home to hijacked CDNs, undocumented status CLIs, and webhook endpoints protected only by “good luck guessing this nanoid,” you don’t have a security operations center.</p><p>You have a very expensive shared log bucket with excellent attack surface.</p><p>Stay safe. And maybe stop trusting anything that still ships Bootstrap 3.3.5 in 2026.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8b46fac5718e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Telnet Auth Bypass Got Patched. The Worse Bug Underneath Didn’t.]]></title>
            <link>https://harmless-teddy.medium.com/the-telnet-auth-bypass-got-patched-the-worse-bug-underneath-didnt-384fa7712894?source=rss-9b4b30de9419------2</link>
            <guid isPermaLink="false">https://medium.com/p/384fa7712894</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[telnetd]]></category>
            <category><![CDATA[news]]></category>
            <category><![CDATA[poc]]></category>
            <category><![CDATA[cybersecurity]]></category>
            <dc:creator><![CDATA[harmless-teddy]]></dc:creator>
            <pubDate>Sat, 09 May 2026 23:25:59 GMT</pubDate>
            <atom:updated>2026-05-09T23:25:59.143Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dg3m9fHZZJCYIkn9nk2tTA.jpeg" /></figure><p>*How a forgotten environment-variable filter in GNU InetUtils still hands you remote code execution — even on systems that applied the CVE-2026–24061 patch.*</p><p>## The headline you already saw</p><p>In January 2026, the security industry collectively woke up to CVE-2026–24061: a critical authentication bypass in `inetutils-telnetd`. The exploit was famously trivial — set the Telnet `USER` environment variable to `-f root` via the `NEW_ENVIRON` sub-negotiation, and the daemon would obediently expand its login command to:</p><p>/usr/bin/login -h &lt;client&gt; -f root</p><p>The `-f` flag tells `login(1)` to skip authentication entirely. One packet, zero credentials, instant root shell. CISA added it to the KEV catalog within days. SafeBreach, Horizon3, OffSec, SonicWall, and a long list of others published proof-of-concepts. Distro maintainers shipped patches. Everyone moved on.</p><p>Except the patch only closes one door. A different door — arguably wider — was already open in the same code, and it’s still open today on every version of `inetutils-telnetd` that the patch ships against.</p><p>This is the story of that second door.</p><p>## Recap: how the original bug worked</p><p>`inetutils-telnetd`’s login template, set in `telnetd.c`:</p><p>char *login_invocation =<br> PATH_LOGIN “ -p -h %h %?u{-f %u}{%U}”;</p><p>When a client completes Telnet sub-negotiation, the daemon expands this template. The `%U` placeholder gets substituted with the value of the `USER` environment variable — which the client controls via `RFC 1572 NEW_ENVIRON`.</p><p>The expanded command goes through `argcv_get()`, which splits on whitespace. So if `USER=”-f root”`, the resulting `argv` to `execv()` becomes:</p><p>argv[0] = /usr/bin/login<br>argv[1] = -p<br>argv[2] = -h<br>argv[3] = client.example<br>argv[4] = -f ← injected<br>argv[5] = root ← injected</p><p>The patch ([commit in inetutils 2.7–2](<a href="https://www.gnu.org/software/inetutils/">https://www.gnu.org/software/inetutils/</a>)) added a `sanitize()` function that rejects USER values starting with `-` or containing shell metacharacters: `\t\n !”#$&amp;’()*;&lt;=&gt;?[\^`{|}~`.</p><p>That stops `-f root`. It does not stop everything else.</p><p>## The other door</p><p>While verifying the patch, I went looking for what else passes through `NEW_ENVIRON`. The code that handles it is in `state.c`:</p><p>case NEW_ENV_VAR:<br>case ENV_USERVAR:<br> *cp = ‘\0’;<br> if (valp)<br> setenv (varp, valp, 1); // ← line 1499<br> else<br> unsetenv (varp);<br> cp = varp = (char *) subpointer;<br> valp = 0;<br> break;</p><p>This loop calls `setenv()` for **every** `VAR=VALUE` pair the client sends. There is no allowlist on the variable name. The wire client can set arbitrary environment variables in the daemon’s process — and those variables are inherited by the child shell after `execv()`.</p><p>There’s a sanity layer: `scrub_env()` in `pty.c`, called just before `exec`:</p><p>scrub_env (void)<br>{<br> extern char **environ;<br> char **cpp, **cpp2;<br> cpp2 = cpp = environ;<br> while (*cpp)<br> {<br> if (strncmp (*cpp, “LD_”, 3)<br> &amp;&amp; strncmp (*cpp, “_RLD_”, 5)<br> &amp;&amp; strncmp (*cpp, “LIBPATH=”, 8) &amp;&amp; strncmp (*cpp, “IFS=”, 4))<br> *cpp2++ = *cpp;<br> cpp++;<br> }<br> *cpp2 = NULL;<br>}</p><p>It’s a *blocklist* of four prefixes: `LD_`, `_RLD_`, `LIBPATH=`, `IFS=`. Everything else passes through.</p><p>Take a moment to enumerate the dangerous environment variables that aren’t on that list:</p><p>- `BASH_ENV` — bash sources whatever file this points to on startup<br>- `ENV` — POSIX `sh` does the same<br>- `TERMCAP` — termcap entries with `:tc=` chains can execute commands in some implementations<br>- `NLSPATH` — affects libc message catalog lookup<br>- `LOCPATH` — points libc at attacker-controlled locale data<br>- `LANGUAGE` — used by some locale paths<br>- `PERL5OPT`, `PYTHONSTARTUP` — if the login shell happens to invoke these interpreters<br>- `TERMINFO` — similar to termcap</p><p>The two that matter most are `BASH_ENV` and `ENV`. Both are documented as startup-script paths, with subtly different trigger conditions:</p><p>- `BASH_ENV` is sourced by **non-interactive** bash invocations. The interactive login shell itself does *not* read it directly — but the moment that shell spawns any subshell (command substitution `$(…)`, an `eval`, `bash -c “…”` from a startup script, the `command-not-found` handler on Debian/Ubuntu, virtualenv prompt helpers, completion scripts, anything), the subshell sources `BASH_ENV` immediately on startup.<br>- `ENV` is sourced by **interactive POSIX-style** shells (`dash`, `sh`, `bash — posix -i`). On many systems where `/bin/sh` is `dash` and a user’s account uses `/bin/sh` as its login shell, this fires the moment `login` execs the shell.</p><p>So the realistic chain looks like:</p><p>1. Pre-auth: attacker connects to telnetd, sends `BASH_ENV=/tmp/x` and `ENV=/tmp/x` via `NEW_ENVIRON`<br>2. Pre-auth: `setenv()` is called for both names in the daemon<br>3. Pre-auth: `scrub_env()` runs, doesn’t strip either<br>4. Pre-auth: `execv(“/usr/bin/login”, …)` runs with the poisoned environment<br>5. `login` does its normal job — prompts for credentials, validates them<br>6. *Some user, at some point, authenticates successfully*<br>7. `login` execs the user’s shell with the inherited environment</p><p>**If the shell is `/bin/sh`/`dash`** (interactive POSIX): `ENV` fires immediately on startup, sourcing `/tmp/x` before any user prompt.</p><p>**If the shell is `/bin/bash`** (interactive login): the login shell itself doesn’t read `BASH_ENV`, but virtually any non-interactive subshell triggered from `~/.bash_profile`, `/etc/profile`, `/etc/profile.d/*.sh`, or downstream user activity will source it. On a typical Debian/Ubuntu/Kali system this happens within seconds — `command-not-found`, `lesspipe`, and completion machinery all spawn subshells.</p><p>8. Code execution as the now-logged-in user.</p><p>Step 6 is “any legitimate user logging in.” The attacker has no role beyond setting the trap. The trigger is automatic, and on `dash`-as-`/bin/sh` systems it’s near-instant.</p><p>## Verifying it lives</p><p>I built `inetutils-2.5` (within the patch’s affected range) from the official tarball, ran it via a small custom inetd wrapper, and wrote a Python PoC that sends a single batched `NEW_ENVIRON` sub-negotiation containing seven candidate variables.</p><p>The login program was replaced (via ` — exec-login`) with a script that prints its environment, so we can see exactly what survives `scrub_env()`.</p><p>[+] server greeting: fffd18fffd20fffd23fffd27fffd24<br>[+] Sent ONE batched NEW_ENVIRON with 8 vars<br> BASH_ENV=’/tmp/poc_g4_payload.sh’<br> ENV=’/tmp/poc_g4_payload.sh’<br> LD_PRELOAD=’/tmp/poc_g4.so’<br> IFS=’_’<br> TERMCAP=’/tmp/poc_g4_termcap’<br> NLSPATH=’/tmp/poc_g4_nls/%N’<br> LANGUAGE=’evil’<br> USER=’testuser’</p><p>[+] Survival analysis:<br> SURVIVED: BASH_ENV=/tmp/poc_g4_payload.sh<br> SURVIVED: ENV=/tmp/poc_g4_payload.sh<br> BLOCKED: LD_PRELOAD<br> BLOCKED: IFS<br> SURVIVED: TERMCAP=/tmp/poc_g4_termcap<br> SURVIVED: NLSPATH=/tmp/poc_g4_nls/%N<br> SURVIVED: LANGUAGE=evil</p><p>`BASH_ENV` reaches the spawned shell. `ENV` reaches the spawned shell. The CVE-2026–24061 patch — which sanitizes the `USER` variable — does not touch any of this. The patch and this issue exist in different code paths.</p><p>The wire bytes are simple. A single `NEW_ENVIRON IS` sub-negotiation with multiple `VAR=VALUE` pairs:</p><p>IAC SB NEW-ENVIRON IS<br> VAR “BASH_ENV” VALUE “/tmp/payload.sh”<br> VAR “USER” VALUE “anyone”<br>IAC SE</p><p>That’s 37 bytes for the sub-negotiation plus 3 bytes for the prior `IAC WILL NEW-ENVIRON` — call it 40 bytes total on the wire (TCP/IP overhead aside). No exploit framework, no heap shaping, no race condition, no special privilege. Just a Telnet client and a payload file the attacker arranged to write earlier.</p><p>## Why everyone missed it</p><p>Three reasons, ranked by my best guess.</p><p>**1. The CVE patch was scoped to USER.** The commit message and CVE write-up framed the bug as “argument injection via USER.” The fix sanitizes USER. Reviewers checked that the fix matched the bug. Nobody asked: “what other variables can we set?”</p><p>**2. `scrub_env` looks done.** It exists. It removes `LD_PRELOAD`. To a quick glance, it’s “the env filter,” and “the env filter exists” is the kind of fact you stop investigating. You have to compare its blocklist against the modern landscape of dangerous env vars to notice what’s missing — and that landscape has grown over the decades since this code was written.</p><p>**3. The trigger isn’t immediate.** A clean exploit would crash the daemon or grant a shell on the spot. This one *waits* — for a legitimate user to log in. Detection through standard pen-test tooling (which expects a shell to pop) misses it. SOC dashboards see normal `login` events. The attacker writes a payload to `/tmp` and disappears; the actual code execution happens hours or days later, attributed to the user who logged in.</p><p>## Comparing implementations</p><p>I checked the same pattern across the three other major Telnet daemons:</p><p>| Implementation | Allowlist on `NEW_ENVIRON` var names? | `BASH_ENV` survives to shell? |<br>||||<br>| **GNU InetUtils** | **No** | **Yes** ✗ |<br>| netkit-telnet | Yes — `TERM`, `DISPLAY`, `USER`, `LOGNAME`, `POSIXLY_CORRECT` | No |<br>| FreeBSD telnetd | Per-prefix allowlist (looser) | `TERMCAP` yes, `BASH_ENV` no |<br>| BusyBox telnetd | N/A — passes env to `/bin/login` directly | depends on login behavior |</p><p>netkit-telnet — the older Linux/Debian implementation that GNU InetUtils forked from — *added* an allowlist at some point that constrains `NEW_ENVIRON` to five known-safe names. GNU InetUtils never adopted that hardening. The fork diverged before the protection was added, and the fix never propagated back.</p><p>This is the kind of regression that happens silently. There’s no test that asserts “if I send `BASH_ENV` over the wire, it does not reach the spawned shell.” There’s no fuzzer that walks the `glibc` env-variable manpage and tries each name through every protocol. The bug exists in the *gap between* what the developers thought they were filtering and what the C library actually treats as load-bearing.</p><p>## Mitigation</p><p>In rough order of “how seriously you should take this”:</p><p>1. **Don’t run telnet on anything reachable.** This is the right answer. Telnet sends credentials in cleartext. There has been no defensible reason to run it over an untrusted network in 25 years. SSH exists. Use SSH.</p><p>2. **If you must run telnet (embedded, OT/ICS, legacy):**<br> — Switch to BusyBox telnetd or another implementation that does not have this template-substitution path.<br> — Or patch `pty.c`’s `scrub_env` from a blocklist to an *allowlist*. Keep `TERM`, `DISPLAY`, `LANG`, maybe a handful of `LC_*`. Strip everything else.</p><p>3. **If you can’t change the daemon:**<br> — Block port 23 at the network edge.<br> — Run a strict shell as the configured login shell — one that doesn’t source startup files (`/sbin/nologin`, a custom `restricted_sh`).<br> — On dash-as-`/bin/sh` systems, the `ENV` exposure is acute because `dash` reads it on every interactive startup. Setting `unset ENV` early in `/etc/profile` is a partial mitigation.<br> — For bash-login systems, the `BASH_ENV` exposure is indirect (via subshells). Auditing `/etc/profile`, `/etc/profile.d/*.sh`, and `~/.bash_profile` for `unset BASH_ENV ENV` early in the chain helps.</p><p>4. **Detection:**<br> — Network: any `IAC SB 0x27 IS … VAR … VALUE …` sub-negotiation containing variable names not in `{TERM, DISPLAY, USER, LOGNAME, POSIXLY_CORRECT, XAUTHORITY, PRINTER, LANG}` is suspicious.<br> — Endpoint: monitor for `login` processes whose environment includes `BASH_ENV` or `ENV`. There’s no legitimate code path where this should happen.<br> — File integrity: monitor `/tmp`, `/var/tmp`, `/dev/shm`, and any world-writable directory for short shell scripts created by the `nobody` or `telnetd` user shortly before a login event.</p><p>## What this exercise actually tells us</p><p>Two patterns kept showing up across the audit:</p><p>**Patches scoped to a CVE only fix the CVE.** The attacker class that wrote the original `USER=-f root` exploit doesn’t stop reading the source after their first finding. The defender class that ships the patch often does.</p><p>**Blocklists rot.** `scrub_env`’s blocklist was probably state-of-the-art when it was written. `LD_PRELOAD` was the canonical “dangerous env var” of its era. `BASH_ENV` either didn’t exist yet or wasn’t yet understood as a privilege-boundary problem. Time passed. The blocklist didn’t.</p><p>When you find a bug class — environment injection, argument injection, format strings, integer overflows — the question to ask isn’t “is this specific instance fixed?” It’s “where else does this pattern exist in the same code, and where might a similar pattern exist in code I didn’t audit yet?”</p><p>For `inetutils-telnetd`, the answer to “where else does environment injection live?” is: everywhere, by design, because `NEW_ENVIRON` exists. The protection is supposed to be in `scrub_env`. The protection is wrong.</p><p>## Reproducer</p><p>I’m not posting the full PoC code here, but the core is small enough to describe end-to-end:</p><p>1. Open a TCP socket to the daemon<br>2. Read the initial 15-byte IAC negotiation<br>3. Reply `IAC WILL NEW-ENVIRON` (3 bytes)<br>4. Send the malicious sub-negotiation:<br> <br> IAC SB NEW-ENVIRON IS<br> VAR “BASH_ENV” VALUE “/tmp/x”<br> VAR “USER” VALUE “anyuser”<br> IAC SE<br> <br>5. Disconnect</p><p>Steps 1–5 take under a second and require no authentication. The payload at `/tmp/x` (which you arranged to write earlier — that’s the “real” attacker work) executes when any user next logs in via bash.</p><p>This is one of those bugs where the proof of concept is less impressive than the implication. There’s no clever heap shaping. No corrupted state machine. No race. It’s a missing line in a blocklist.</p><p>## Disclosure</p><p>This finding is shared as defensive research on publicly available open-source code. The bug class — environment injection through a permissive `setenv()` flowing into a permissive `scrub_env()` — has been latent in `inetutils-telnetd` since at least the early 2000s. It does not require new exploit development; the wire protocol and code are exactly as they have been.</p><p>If you operate `inetutils-telnetd` and patched CVE-2026–24061 thinking the issue was contained: it isn’t. Patch the env filter, or — better — turn the service off.</p><p>*This article documents an issue in publicly available open-source code (GNU InetUtils). Reproduction was performed against a locally-built daemon in a controlled environment. No production systems were attacked. The intended audience is defenders, software maintainers, and security researchers — please apply the mitigations above before this becomes someone else’s incident report.*</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=384fa7712894" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pen-testing a Prod H3C Private Environment in 2026: Complete Redacted Findings & Pentester Playbook]]></title>
            <link>https://harmless-teddy.medium.com/pen-testing-a-prod-h3c-private-environment-in-2026-complete-redacted-findings-pentester-playbook-959df1746516?source=rss-9b4b30de9419------2</link>
            <guid isPermaLink="false">https://medium.com/p/959df1746516</guid>
            <category><![CDATA[hacking]]></category>
            <category><![CDATA[writeup]]></category>
            <category><![CDATA[bug-bounty-writeup]]></category>
            <category><![CDATA[ctf-writeup]]></category>
            <category><![CDATA[h3c]]></category>
            <dc:creator><![CDATA[harmless-teddy]]></dc:creator>
            <pubDate>Thu, 26 Feb 2026 20:56:53 GMT</pubDate>
            <atom:updated>2026-02-26T20:56:53.090Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y9uh_uG3qB-if195QZnv3w.jpeg" /></figure><p>Every vulnerability was discovered during an authorized internal assessment of a modern H3C CAS deployment on UniServer hardware with detection commands, impact analysis, PoCs, and remediation steps for fellow pentesters.</p><p>In early 2026 I performed an authorized external penetration test against a large-scale private cloud built on H3C CAS (Cloud Automation System) running on contemporary UniServer R4900G6 and R4300G6 hardware.</p><p>The environment consisted of compute nodes, storage nodes, CVM management hosts, and backup systems</p><p>all behind standard enterprise firewalls. The write-up is partially redacted (no IPs, hostnames, or client identifiers). for legal reasons</p><p>my goal is to equip other pen testers with exact detection methods and to help defenders understand the real-world risks of common H3C deployment patterns in 2026.</p><p>Vulnerability Summary<br>• 5 Critical<br>• 13 High<br>• 12 Medium<br>• 1 Low<br>• 1 Informational</p><p>Critical Findings (Fix These First)1. Critical Infrastructure Risk — End-of-Life Operating System (CVSS 9.8)<br>Multiple hypervisor and management hosts were running CentOS 7 (kernel 3.10 series) on brand-new 2024–2025 hardware.</p><p>CentOS 7 reached EOL on 30 June 2024.Detection (Pen tester Commands)</p><pre>cat /etc/os-release<br>uname -r<br># or via nmap<br>nmap -p22 --script ssh-hostkey target</pre><p>Impact<br>Any new kernel CVE after June 2024 is unpatchable.</p><p>Full root access becomes permanent zero-day.Remediation<br>Migrate immediately to AlmaLinux 9, Rocky Linux 9, or RHEL 9. Use Leapp for in-place upgrade where possible.</p><p>2. Outdated OpenSSH 8.8 (RegreSSHion CVE-2024–6387 + Terrapin CVE-2023–48795) (CVSS 9.5)<br>A complete management subnet (9+ hosts) was running OpenSSH</p><p>8.8.Detection</p><pre>nmap -p22 -sV --script ssh2-enum-algos target<br>ssh -v target 2&gt;&amp;1 | grep OpenSSH</pre><p>Impact<br>RegreSSHion allows unauthenticated remote root on glibc systems. Terrapin enables MitM and downgrade attacks.</p><p>Wormable across the entire management plane.Remediation<br>Upgrade to OpenSSH 9.8+ and disable weak ciphers/algorithms in sshd_config.</p><p>3. Unified Management Platform (“God Node”) (CVSS 9.5)</p><p>All control planes (compute, storage, SDN, user access) are managed by a single CVM node that also acts as the</p><p>Detection<br>Look for a single host exposing both external-facing ports (HTTPS, VNC 5900 range) and internal management IPs.</p><p>Test if you can reach backend hypervisors via the proxy.</p><p>Impact<br>Single point of total compromise. One vulnerability in the full cluster takeover and ability to delete volumes, reconfigure SDN, and console into any VM.</p><p>Remediation<br>Decouple management planes.</p><p>4. Unauthenticated Jaeger Tracing Interface (CVSS 9.4)<br>Jaeger UI exposed on port 16686 with no authentication on multiple management hosts.Detection</p><pre>curl -I http://target:16686/jaeger/search</pre><p>If you get the search interface → critical.Impact<br>Full visibility into internal API calls, auth tokens, SQL queries, and microservice architecture.</p><p>Remediation<br>Require authentication + IP whitelisting. Disable in production or place behind VPN.5. Unauthenticated Management API (Likely OpenStack Glance / Redfish / BMC) (CVSS 9.4)<br>Multiple unauthenticated management APIs (Redfish, BMC configuration, potential OpenStack Glance) exposed.</p><p>Detection</p><pre>curl -k https://target/redfish/v1/Systems<br>curl -k https://target:8443/redfish/v1</pre><p>Technical Findings:</p><p>• Redfish API Exposure: Unauthenticated access is permitted to /redfish/v1/<br>Systems/1 , /Managers/1 , and /AccountService .<br>• Configuration File Leak: The endpoint /cc/bmc_cc.xml is accessible without<br>authentication, acting as a “cheat sheet” for system logic, service enumeration</p><p>(VNC, KVM, SNMP), and error-handling routines.<br>• Weak Security Policy: The AccountService reveals a dangerously low lockout<br>duration (5 seconds) and a 5-attempt threshold, enabling highly efÏcient,<br>automated brute-force attacks.</p><p>Exfiltrated Sensitive Data:<br>• Hardware Identity: Manufacturer (H3C), Model (R4900 G6), Serial Numbers, and UUIDs.</p><p>• Firmware Versions: BMC Firmware (1.83), BIOS (6.10.53), and ME Version<br>(6.1.4.89), allowing for targeted CVE exploitation.<br>• Network Metadata: MAC addresses for LOM ports and Broadcom interfaces,<br>facilitating Layer 2 attacks (ARP poisoning/spoofing).</p><p>• Operational Intel: Exposure of RAID configurations, LDAP/AD integration status,<br>and physical security triggers (Security Bezel monitoring).</p><p>Impact: The CVSS score for this finding is 8.9. This vulnerability allows for precision<br>exploit targeting, optimized brute-force attacks, and high-level social engineering/RMA</p><p>All High Severity Findings (13)</p><p>6. Unauthenticated Information Disclosure (Redfish API &amp; BMC Configuration)<br>Detection: Same Redfish curl commands above.<br>Impact: Sensitive hardware config, serial numbers, firmware versions.<br>Fix: Currently there is no fix for this yet since its a design flaw</p><p>7. Undocumented API Endpoints with Plaintext Authentication<br>Detection: Directory brute-force on management ports + look for /api/ or undocumented paths.<br>Impact: Easy credential theft.<br>Fix: Remove or secure undocumented endpoints.</p><p>8. Unhandled Exception in Authentication Flow (Internal Server Error)<br>Detection: Fuzz login endpoints and watch for stack traces.<br>Impact: Information disclosure + potential bypass.<br>Fix: Proper error handling.</p><p>9. Client-Side Enforcement of Account Lockout<br>Detection: Brute-force login and observe that lockout only happens client-side.<br>Impact: Unlimited password spraying.<br>Fix: Server-side lockout + rate limiting.</p><p>10. IPMI 2.0 RAKP Password Hash Disclosure<br>Detection: ipmitool lan print or dedicated IPMI tools.<br>Impact: Offline cracking of passwords.<br>Fix: Upgrade IPMI firmware and disable RMCP+ where possible. or limit to access so only servers can access it</p><p>11. Compute Node Multi-Plane Access<br>Detection: Traceroute and routing analysis between user and management networks.<br>Impact: admin is required to make vms so all infra teams have full admin<br>Fix: implement proper acl</p><p>12. Exposed Kiali Console with Vulnerable Components<br>Detection: Port scan for Kiali default port (20001).<br>Impact: Service mesh visibility + vulnerable JS libraries.<br>Fix: Authenticate and update Kiali.</p><p>13. Improper Restriction of Excessive Authentication Attempts (KVM API)<br>Detection: Hydra/Medusa against KVM API endpoints.<br>Impact: Brute-force possible.<br>Fix: Implement proper rate limiting.</p><p>14. Unauthenticated WebSocket Telemetry Leak<br>Detection: Connect to WebSocket endpoints without auth.<br>Impact: Real-time system telemetry leakage.<br>Fix: Require authentication on all WebSocket services.</p><p>15. Known Vulnerabilities in Client-Side Dependencies (Vue.js &amp; Ace)<br>Detection: retire.js or browser dev tools.<br>Impact: XSS/CSRF via outdated JS.<br>Fix: Update all frontend dependencies.</p><p>16. RPCBind Service Exposure (Port 111)<br>Detection: rpcinfo -p target<br>Impact: NFS enumeration + potential exploits.<br>Fix: Disable or firewall RPCBind.</p><p>17. Unauthenticated &amp; Unencrypted VNC Services<br>Detection: nmap -p5900–5909<br>Impact: Direct console access.<br>Fix: Require TLS + authentication.</p><p>18. Vulnerable Legacy Web Service<br>Detection: Version scan on old web ports.<br>Impact: Known RCEs.<br>Fix: Decommission or patch.</p><p>All Medium, Low &amp; Info Findings (Summary with Quick Guidance)Medium (12)</p><ul><li>Cryptographic Implementation Flaws → Audit TLS configs with testssl.sh</li><li>Inadequate Input Validation (RegEx Bypass &amp; Logic Flaws) → Fuzz all inputs</li><li>Insecure Backup Server Integration → Test backup access</li><li>Transmission of Credentials via URL Query Parameters → Check all GET requests</li><li>Proprietary Asset &amp; Directory Structure Leakage → Directory brute</li><li>Undocumented Hidden Nginx Endpoint (Port 10250) → Block kubelet-style ports</li><li>Absent Web Application Firewall → Deploy WAF</li><li>Open DNS Recursive Resolver → Disable recursion</li><li>Undocumented “Shadow” API Endpoints → Full API enumeration</li><li>Active Telnet Services → Disable immediately</li><li>Outdated Out-of-Band Management Firmware (HDM2) → Update BMC firmware</li><li>Legacy Cleartext Protocol Exposure (FTP) → Switch to SFTP</li></ul><p>Low</p><ul><li>Weak SSH Encryption Algorithms → Update sshd_config</li></ul><p>Informational</p><ul><li>Outdated Third-Party Component (core-js) + Unlimited Username Input Length → Update libraries &amp; add length limits</li></ul><p>Pentester Playbook — Quick Checklist for H3C Environments (2026)</p><ol><li>Always start with OS &amp; SSH version checks on every host.</li><li>Map the management plane — look for “God Node” consolidation.</li><li>Scan high ports (16686 Jaeger, 20001 Kiali, Redfish, 5900 VNC).</li><li>Test every proxy/bridge for unauthorized pivoting.</li><li>Run full nmap -p- -sV — script vuln + testssl.sh on management ranges.</li></ol><p>Final Advice to Defenders</p><ul><li>Treat management networks as a new perimeter.</li><li>Enforce strict OS lifecycle policies.</li><li>Never bridge user and management networks without zero-trust controls.</li><li>Schedule quarterly external pentests.</li></ul><p>This environment was production — these issues exist in real deployments today. around the world in real h3c server you can see hundreds of thousands of these servers using shodan</p><p>Stay safe, test thoroughly, and patch relentlessly.Published anonymously for the community<br>February 2026</p><p>#Pentest #RedTeam #H3C #CloudSecurity #Cybersecurity</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=959df1746516" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>