Exploit database

GH-4d4672476a14c7b90228dd45b336eb7c

sym01/cve-2026-111497

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-111497

61 sources

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

Repository files2
sym01/cve-2026-111497Revision 7822cb4156f5

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

labtest/score.py

Python · 4,656 bytes
#!/usr/bin/env python3
"""Score lab-test detector results against the user-provided ground truth."""
import json
import sys

VULN = {"/api/orders", "/api/auth/login", "/api/cart/promo/validate", "/api/cart/items",
        "/api/payments/webhook", "/api/search", "/api/status", "/api/nest/tickets",
        "/api/koa2/subscribe", "/api/koa3/subscribe", "/api/gql/graphql",
        "/api/err500/contact", "/api/err200/redeem", "/api/edge5/syntax/signup",
        "/api/edge5/helmet/signup", "/api/edge5/ids/signup", "/api/fstd/items",
        "/api/nesthelm/invoices", "/api/subapp/v2/profile", "/api/subapp2/v2/profile",
        "/api/nextcs/cart", "/api/egg/orders", "/api/midway/coupons/claim",
        "/api/lb4/returns", "/api/rawhttp/webhooks", "/api/polka/giftcards",
        "/api/purenode/stream", "/api/purenode/buffer", "/api/purenode/promise"}
PATCHED = {"/api/catalog/search"}
UNAFFECTED = {"/api/users/register", "/api/inventory/reserve", "/api/reviews",
              "/api/legacy/checkout", "/api/hono/reviews", "/api/h3/wishlist",
              "/api/restify/quotes", "/api/nestfy/tickets", "/api/trpc/redeem",
              "/api/next/subscribe", "/api/next/feedback", "/api/gobr/events"}
# routes whose true state is not remotely observable through that exact URL
STRUCTURAL = {
    "/api/status": "health route ignores the body; exposure is via the sibling parse route (expected INCONCLUSIVE without the sibling route)",
    "/api/gobr/events": "Go decoder: decodes br like a vulnerable Node but is not the Node CVE (route inventory notes 'no Node marker')",
}


def load(report):
    data = json.load(open(report))
    out = {}
    for r in data["results"]:
        path = r["url"].replace("https://localhost:8443", "")
        out[path] = {"verdict": r["verdict"], "confidence": r["confidence"],
                     "detail": r["detail"]}
    return out


def score(results, label):
    tp = fp = tn = fn = err = 0
    rows = []
    for path in sorted(set(VULN) | PATCHED | UNAFFECTED):
        r = results.get(path)
        v = r["verdict"] if r else "MISSING"
        truth = "vulnerable" if path in VULN else "patched" if path in PATCHED else "unaffected"
        correct = None
        if v == "VULNERABLE":
            correct = (truth == "vulnerable")
        elif v == "PATCHED":
            correct = (truth == "patched")
        elif v in ("SURFACE_NOT_EXPOSED", "BLOCKED"):
            correct = (truth == "unaffected")
        elif v == "INCONCLUSIVE":
            correct = None if path in STRUCTURAL else (truth == "unaffected")
        else:
            correct = False  # ERR / LIGHT_MODE / missing treated as no-signal
        if correct is True:
            if v == "VULNERABLE":
                tp += 1
            else:
                tn += 1
            mark = "OK "
        elif correct is False:
            if truth == "vulnerable":
                fn += 1
                mark = "FN!"
            elif v == "VULNERABLE":
                fp += 1
                mark = "FP!"
            else:
                fp += 1
                mark = "FP!"
        else:
            if truth == "vulnerable":
                fn += 1
                mark = "FN?"
            else:
                mark = "INC"
        note = STRUCTURAL.get(path, "")
        rows.append((mark, truth, v, path, note))
    print(f"\n===== {label} =====")
    for mark, truth, v, path, note in rows:
        print(f"{mark:4s} {truth:10s} {v:20s} {path:35s} {note}")
    det_v = sum(1 for _, t, v, _, _ in rows if t == "vulnerable" and v == "VULNERABLE")
    det_p = sum(1 for _, t, v, _, _ in rows if t == "patched" and v == "PATCHED")
    vuln_remote = len(VULN) - sum(1 for p in VULN if p in STRUCTURAL)
    print(f"\nsummary ({label}):")
    print(f"  vulnerable detected : {det_v}/{vuln_remote} "
          f"(+{sum(1 for p in VULN if p in STRUCTURAL)} structural: status)")
    print(f"  patched detected    : {det_p}/{len(PATCHED)}")
    print(f"  unaffected rejected : "
          f"{sum(1 for _, t, v, _, _ in rows if t == 'unaffected' and v != 'VULNERABLE')}"
          f"/{len(UNAFFECTED)} (gobr Go-decoder caveat: see rows)")
    print(f"  TP={tp} TN={tn} FN={fn} FP={fp} "
          f"(gobr counted per its row above)")


def main():
    base = load(sys.argv[1])
    auth = load(sys.argv[2]) if len(sys.argv) > 2 else {}
    # merge: auth-pass results override for the gated routes
    merged = dict(base)
    for p, r in auth.items():
        if p in ("/api/cart/items", "/api/purenode/promise"):
            merged[p] = r
    score(merged, "full pass (auth-pass merged for gated routes)")


if __name__ == "__main__":
    main()