Exploit database

GH-efbb1c65b08b88b4ff03067f585225a0

george0papasotiriou/cve-2026-21962-oracle-http-server-weblogic-proxy-plug-in-critical-

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-21962

8 sources

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

Repository files6

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

check.py

Python · 1,525 bytes
#!/usr/bin/env python3
import argparse, re, sys, requests

AFFECTED_TRAINS = {"12.2.1.4.0", "14.1.1.0.0", "14.1.2.0.0"}

def main():
    ap = argparse.ArgumentParser(description="CVE-2026-21962 defensive triage (non-destructive).")
    ap.add_argument("--url", required=True, help="Base URL (e.g. https://10.10.10.10)")
    ap.add_argument("--timeout", type=int, default=10)
    ap.add_argument("--insecure", action="store_true", help="Disable TLS verification")
    args = ap.parse_args()

    try:
        r = requests.get(args.url, timeout=args.timeout, allow_redirects=True, verify=not args.insecure)
    except Exception as e:
        print(f"[UNKNOWN] Request failed: {e}")
        return 2

    server = r.headers.get("Server", "")
    powered = r.headers.get("X-Powered-By", "")
    print(f"[INFO] HTTP {r.status_code}")
    print(f"[INFO] Server: {server}")
    print(f"[INFO] X-Powered-By: {powered}")

    hay = " ".join([server, powered])
    m = re.search(r"(\d+\.\d+\.\d+\.\d+\.\d+)", hay)
    if not m:
        print("[UNKNOWN] No version string in headers. Verify locally via package inventory / config management.")
        return 2

    v = m.group(1)
    print(f"[INFO] Detected version-like string: {v}")

    if v in AFFECTED_TRAINS:
        print("[LIKELY AFFECTED] Version matches affected train. Patch Oracle CPU Jan 2026.")
        return 1

    print("[OK] Version not in the simple affected list (still confirm with Oracle advisory).")
    return 0

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