Exploit database

GH-7f4812a4414dc2c407290e35878d3163

googlesky/cve-2026-76954

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-76954

2 sources

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

Repository files5
googlesky/cve-2026-76954Revision 22d7174eb3cd

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

lab/harness/stage-deps.py

Python · 2,699 bytes
#!/usr/bin/env python3
"""Iteratively stage missing .so dependencies of the DSM harness libs."""
import subprocess
import sys
import shutil
from pathlib import Path

ROOTFS = Path(__file__).resolve().parents[1] / "src" / "st" / "72806rootfs" / "hda1"
LIB = Path(__file__).resolve().parent / "lib"
SEED = [
    "libsynodb.so", "libsyno-pam-login-vuln.so", "libsyno-pam-login-fixed.so",
    "libsynosdk.so.7", "libsynonetsdk.so.7", "libsynocore.so.7",
    "libsynosystemd.so.7", "libjson.so", "libpq.so.5",
    "libtaskmanager.so.7", "libsynoconfd.so.7", "libsynolocalaccount.so.7",
    "libsynohacore.so.7", "libsynoaccountdb.so.7", "libsynovdsmcore.so",
    "libsynoacl.so", "libsynobootseq.so.7", "libboost_filesystem.so.1.80.0",
    "libsqlite3.so.0", "libjson-c.so.2", "libicuuc.so.64", "libicui18n.so.64",
    "libsynoaccesstoken.so.7", "libsynodaemon.so.7", "libsynoscheduler.so.7",
    "libsynotokenmanager.so.7", "libgio-2.0.so.0", "libglib-2.0.so.0",
    "libgobject-2.0.so.0", "libcrypto.so.1.1", "libsodium.so", "libpam.so.0",
    "libssl.so.1.1", "libsynoinstallcpplite.so", "libsynodbud.so",
    "libsynorandom.so.7", "libz.so.1",
]


def find_in_rootfs(name):
    hits = sorted(ROOTFS.rglob(name))
    if not hits:
        base = name.split(".so")[0]
        hits = sorted(p for p in ROOTFS.rglob(f"{base}.so*"))
    return hits[0] if hits else None


def stage_missing(names):
    staged = []
    for n in names:
        if (LIB / n).exists():
            continue
        src = find_in_rootfs(n)
        if src:
            shutil.copy2(src, LIB / n)
            staged.append(f"{n} <- {src.relative_to(ROOTFS)}")
    return staged


def missing_report():
    cmd = ["podman", "run", "--rm", "-q", "--cpus", "2", "--memory", "2g",
           "-v", f"{LIB}:/libs:ro", "-e", "LD_LIBRARY_PATH=/libs", "ubuntu:22.04",
           "bash", "-c",
           "for f in /libs/*.so*; do ldd \"$f\" 2>/dev/null; done | grep 'not found' "
           "| awk '{print $1}' | sort -u"]
    out = subprocess.run(cmd, capture_output=True, text=True, timeout=300)
    return [l.strip() for l in out.stdout.splitlines() if l.strip()]


def main():
    stage_missing(SEED)
    for round_no in range(1, 9):
        miss = missing_report()
        if not miss:
            print(f"round {round_no}: LDD CLEAN")
            return 0
        staged = stage_missing(miss)
        print(f"round {round_no}: {len(miss)} missing, staged {len(staged)}")
        for s in staged:
            print("   ", s)
        still = [m for m in miss if not (LIB / m).exists()]
        if still:
            print("   NOT_IN_ROOTFS:", still)
            return 1
    return 1


if __name__ == "__main__":
    sys.exit(main())