Exploit database

GH-853465fc465a14dce9b43b802d6069a5

sneakynachos/cve-2026-74939-escape-the-mac-n-cheese-box

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-74939

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files13

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

mdrive2.py

Python · 1,941 bytes
#!/usr/bin/env python3
# Launch browser with marionette, print parent PID, navigate after a delay (so lldb can attach).
import sys, os, time, subprocess
sys.path.insert(0, "/Users/sid/gecko-2766/testing/marionette/client")
sys.path.insert(0, "/Users/sid/gecko-2766/python/mozterm")
mb = "/Users/sid/gecko-2766/testing/mozbase"
for d in sorted(os.listdir(mb)):
    p = os.path.join(mb, d)
    if os.path.isdir(p): sys.path.insert(0, p)
from marionette_driver.marionette import Marionette

BIN = "/Users/sid/gecko-2766/obj-browser/dist/Nightly.app/Contents/MacOS/firefox"
GECKO = "/Users/sid/gecko-2766/obj-browser"
PROFILE = "/tmp/ff74939"
URL = sys.argv[1]
DELAY = int(sys.argv[2]) if len(sys.argv) > 2 else 20   # wait before navigate (for lldb attach)
POST = int(sys.argv[3]) if len(sys.argv) > 3 else 40    # wait after navigate

env = dict(os.environ)
env["DYLD_FRAMEWORK_PATH"] = GECKO + "/dist/bin"
env["DYLD_LIBRARY_PATH"] = GECKO + "/dist/bin"
out = open(PROFILE + "/x", "w")
proc = subprocess.Popen([BIN, "--marionette", "--no-sandbox", "--allow-downgrade",
                         "-foreground", "-profile", PROFILE, "about:blank"],
                        env=env, stdout=out, stderr=subprocess.STDOUT)
print("PPID %d" % proc.pid, flush=True)

m = None
for i in range(90):
    try:
        m = Marionette(host="127.0.0.1", port=2828, socket_timeout=180)
        m.start_session(); break
    except Exception:
        try: m.cleanup()
        except Exception: pass
        time.sleep(1)
if m is None:
    print("SESSION FAILED", flush=True); proc.kill(); sys.exit(1)
print("SESSION up", flush=True)
m.timeout.page_load = 60
print("NAVIGATE_AT %d" % time.time(), flush=True)
time.sleep(DELAY)
try:
    m.navigate(URL); print("NAVIGATED", flush=True)
except Exception as e:
    print("NAV exc (ok for forge):", str(e)[:80], flush=True)
time.sleep(POST)
print("DONE", flush=True)
try: m.cleanup()
except Exception: pass
proc.kill()