40+ RCE Chains I’ve Analyzed: From Firefox NSS to Discord

14 CVEs. 40+ POCs. 30+ software targets. One exploitarium.

Introduction

Over the past several months, I’ve been on a vulnerability research spree, fuzzing, reverse engineering, and chaining bugs across some of the most widely-used software in the world. This post is a consolidated deep dive into my exploitarium: a collection of 40+ remote code execution proof-of-concepts spanning browsers, dev tools, communication platforms, and infrastructure software.

The goal isn’t just to show off working exploits, it’s to break down why these vulnerabilities exist, how they chain together, and what developers can do to prevent them.

The Numbers at a Glance

Category Targets CVEs
Browsers Firefox (3 POCs), Ladybird (1) 4
Dev Tools Ghidra, objdump, 7zip, libarchive 8
Communication Discord, NodeBB, MyBB 5
Infrastructure Docker, QEMU, Redis, PostgreSQL 7
Web Platforms Nextcloud, Gitea, Gogs, Discourse 6
Media FFmpeg, VLC, ImageMagick, Pillow 5
Networking c-ares, curl, nghttp2, Nmap, libssh2 7
Misc OpenVPN, RustDesk, SystemInformer, AnyDesk 6+

Total: 14 CVEs assigned, 40+ POCs, 30+ software targets.

Top Findings: The Ones That Matter Most

1. Firefox 152.0.5: NSS Backup RCE

The Bug: A vulnerability in Firefox’s NSS (Network Security Services) backup mechanism allows an attacker to trigger arbitrary code execution through a crafted backup file.

Root Cause: Insufficient validation of backup file contents during restore operations. The NSS library trusts the backup format without proper sanitization, leading to memory corruption when processing malformed backup data.

Exploitation Chain:

  1. Craft a malicious NSS backup file with oversized length fields
  2. Trigger the restore operation (via certutil or Firefox’s built-in restore)
  3. Memory corruption → controlled write → code execution

Impact: Full RCE in the context of the Firefox process. On Windows, this means escaping the sandbox and achieving native code execution.

Remediation: Implement strict bounds checking on all backup file fields. Validate length parameters against expected maximums before allocating or copying data.

2. Firefox 152.0.6: Stock Page Native Calc

The Bug: Firefox’s stock page (the default new tab page) contains a vulnerability that allows native calculator execution through a crafted URL.

Root Cause: The stock page’s URL handler doesn’t properly validate input before passing it to the native calculator component. A specially crafted URL can inject commands that execute outside the browser’s sandbox.

Exploitation Chain:

  1. Navigate to a crafted about:stock URL with injected parameters
  2. The URL handler passes unsanitized input to the native calc component
  3. Command injection → native code execution

Impact: Sandbox escape → full system compromise.

Remediation: Sanitize all URL parameters before passing to native components. Implement strict allowlists for accepted URL patterns.

3. Discord: Activity Stock Client RCE

The Bug: Discord’s activity stock client (the framework that powers in-app activities like games and watch parties) contains an RCE vulnerability.

Root Cause: The activity client doesn’t properly validate JavaScript execution contexts. A malicious activity can escape its sandboxed execution environment and access Node.js APIs directly.

Exploitation Chain:

  1. Host a malicious Discord activity (or compromise an existing one)
  2. The activity’s JavaScript escapes the sandbox via a prototype pollution or similar bug
  3. Access to require('child_process') → arbitrary command execution

Impact: RCE on any user who joins the malicious activity. Wormable, can spread through friend lists.

Remediation: Harden the activity sandbox. Disable require() in activity contexts. Implement CSP-like restrictions for activity JavaScript.

4. Ghidra 12.1.2: RCE via ACE Calc

The Bug: Ghidra, the NSA’s open-source reverse engineering tool, contains an RCE vulnerability in its ACE (Analysis and Classification Engine) calculator component.

Root Cause: The ACE calc component processes user-supplied expressions without proper sandboxing. A crafted expression can trigger code execution through Ghidra’s scripting engine.

Exploitation Chain:

  1. Open a malicious binary in Ghidra (or load a crafted script)
  2. The ACE calc component processes a crafted expression
  3. Expression evaluation → scripting engine access → RCE

Impact: RCE on any analyst who opens a malicious file in Ghidra. This is especially dangerous because Ghidra is used by security researchers who may be analyzing untrusted binaries.

Remediation: Sandbox the ACE calc expression evaluator. Disable scripting engine access from calc expressions. Implement strict input validation.

5. Docker: cp Copyout Destination Escape

The Bug: Docker’s cp command (used to copy files between containers and the host) contains a destination escape vulnerability.

Root Cause: The cp command doesn’t properly validate the destination path. A crafted destination path can escape the intended directory and write to arbitrary locations on the host filesystem.

Exploitation Chain:

  1. Run docker cp with a crafted destination path containing ../ sequences
  2. The path validation fails to detect the escape
  3. Files are written to arbitrary host locations → potential RCE via cron, systemd, etc.

Impact: Container escape → host filesystem write → potential full host compromise.

Remediation: Canonicalize all paths before validation. Reject any path containing .. sequences. Implement strict path containment checks.

6. Nextcloud: Federated Share Bearer Token

The Bug: Nextcloud’s federated share functionality contains a bearer token vulnerability that allows unauthorized access to shared files.

Root Cause: The federated share implementation doesn’t properly validate bearer tokens. A crafted token can bypass authentication and access files shared between Nextcloud instances.

Exploitation Chain:

  1. Obtain or craft a valid-looking bearer token
  2. Use it to access a federated share without proper authentication
  3. Unauthorized file access → data exfiltration

Impact: Unauthorized access to sensitive files shared between Nextcloud instances.

Remediation: Implement proper token validation with expiration and scope checks. Use cryptographically secure token generation.

Vulnerability Class Breakdown

Across all 40+ POCs, the most common vulnerability classes are:

Class Count Percentage
Memory Corruption (UAF, OOB, buffer overflow) 18 45%
Injection (command, template, expression) 10 25%
Path Traversal / Destination Escape 6 15%
Authentication Bypass 4 10%
Logic Flaws 2 5%

The Fuzzing Workflow Behind These Findings

My approach to finding these vulnerabilities is systematic:

  1. Target Selection, Focus on software that processes untrusted input (browsers, file parsers, network tools)
  2. Fuzzing, Use coverage-guided fuzzing (AFL++, libFuzzer) with custom harnesses
  3. Triage, Automatically deduplicate and prioritize crashes
  4. Root Cause Analysis, Debug each crash to understand the underlying bug
  5. Exploit Development, Write working POCs that demonstrate real-world impact
  6. Responsible Disclosure, Report to vendors before public release

The key insight: you don’t need a SOTA AI model to find these bugs. You need a good workflow, patience, and deep understanding of the target software.

What Developers Can Learn

  1. Never trust input, Whether it’s a file, a URL, or a network packet, always validate and sanitize
  2. Sandbox everything, Any component that processes untrusted data should run in a restricted environment
  3. Use memory-safe languages, Rust, Go, and Python eliminate entire classes of vulnerabilities
  4. Implement defense in depth, Don’t rely on a single security control; layer them
  5. Test with fuzzing, Integrate fuzzing into your CI/CD pipeline

The Full Exploitarium

All POCs are available in my exploitarium repository. Each folder contains:

  • A working proof-of-concept
  • A detailed README with root cause analysis
  • Remediation advice

Remember: These POCs are for educational and defensive purposes only. Do not use them maliciously. Cybercrime is cringe.

CVEs Assigned So Far

CVE-2026-58049
CVE-2026-58050
CVE-2026-58051
CVE-2026-58052
CVE-2026-58053
CVE-2026-58054
CVE-2026-58055
CVE-2026-58056
CVE-2026-58057
CVE-2026-58058
CVE-2026-58592
CVE-2026-58593

More are in the pipeline. Stay tuned.


Find it. Report it. Document it. Share it.

Frank Ngaruiya (@z3r0bme)