Exploit databaseDownload repository ZIP
GH-786074ac4c791dc9be6cc1a41bc35b4e
royaleybovich/cve-2026-3854-lab
Sources for CVE-2026-3854
2 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files11
royaleybovich/cve-2026-3854-labRevision e8ab9eea2577
- ↑..Parent directory
- check-doc-links.py
- clean-clone-test.sh
- fetch-forgejo.sh
- init-env.py
- public-file-report.py
- redact-logs.py
- release-check.sh
- review-public-files.sh
- smoke-test.py
- verify-forgejo-pin.sh
- verify-forgejo-tree.py
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
scripts/smoke-test.py
Python · 2,114 bytes#!/usr/bin/env python3
# SPDX-FileCopyrightText: 2026 Royal Leybovich
# SPDX-License-Identifier: GPL-3.0-or-later
"""Wait for the local stack and verify its public entry points."""
from __future__ import annotations
import os
import time
import urllib.error
import urllib.request
HOST = os.getenv("FORGEDOCK_TEST_HOST", "localhost")
FORGEJO_PORT = os.getenv("FORGEDOCK_TEST_FORGEJO_PORT", os.getenv("FORGEJO_PORT", "3000"))
PORTAL_PORT = os.getenv("FORGEDOCK_TEST_PORTAL_PORT", os.getenv("PORTAL_PORT", "8080"))
WEB_TERMINAL_PORT = os.getenv("FORGEDOCK_TEST_WEB_TERMINAL_PORT", os.getenv("WEB_TERMINAL_PORT", "7681"))
ENDPOINTS = {
f"http://{HOST}:{PORTAL_PORT}/healthz": b'"status":"ok"',
f"http://{HOST}:{PORTAL_PORT}/": b"Flagship",
f"http://{HOST}:{PORTAL_PORT}/guided": b"Learning Lab",
f"http://{HOST}:{PORTAL_PORT}/research": b"Research Lab",
f"http://{HOST}:{FORGEJO_PORT}/api/healthz": b"pass",
f"http://{HOST}:{WEB_TERMINAL_PORT}/": b"ttyd",
}
def fetch(url: str) -> bytes:
with urllib.request.urlopen(url, timeout=3) as response:
if response.status != 200:
raise RuntimeError(f"{url} returned HTTP {response.status}")
return response.read()
def main() -> int:
deadline = time.monotonic() + 180
pending = dict(ENDPOINTS)
last_error = ""
while pending and time.monotonic() < deadline:
for url, marker in list(pending.items()):
try:
body = fetch(url)
if marker.lower() not in body.lower():
raise RuntimeError(f"{url} response did not contain expected marker")
del pending[url]
except (OSError, RuntimeError, urllib.error.URLError) as exc:
last_error = str(exc)
if pending:
time.sleep(2)
if pending:
raise SystemExit(f"Smoke test timed out; pending: {', '.join(pending)}; last error: {last_error}")
print("Docker smoke test passed for Flagship, Learning Lab, Research Lab, ForgeDock, and Web Terminal.")
return 0
if __name__ == "__main__":
raise SystemExit(main())