Exploit database

GH-c48461260faca313e6a7f44387e9c90f

dansaurabh/brotli2shell_hunter

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 files10

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

src/b2s_hunter/layers/containers.py

Python · 1,674 bytes
"""Layer: containers (read-only rootfs marker scan, no exec)."""

from __future__ import annotations

import json
import os

from ..model import REVIEW, Finding
from ..util import have, run
from .markers import layer_markers


def layer_containers(findings, verbose=False):
    runtimes = [r for r in ("docker", "podman", "nerdctl") if have(r)]
    if not runtimes:
        return
    for rt in runtimes:
        ids = run([rt, "ps", "-q"]).split()
        for cid in ids:
            info = run([rt, "inspect", cid])
            merged = ""
            name = cid[:12]
            try:
                data = json.loads(info)
                if isinstance(data, list) and data:
                    d = data[0]
                    name = (d.get("Name") or name).lstrip("/")
                    merged = (((d.get("GraphDriver") or {}).get("Data") or {}).get("MergedDir") or "")
            except Exception:
                pass
            if merged and os.path.isdir(merged):
                sub = []
                layer_markers([merged], sub, verbose=verbose)
                for f in sub:
                    f.layer = f"container:{rt}"
                    f.note = f"{name}: {f.note}"
                    f.location = f"[{name}] {f.location}"
                    findings.append(f)
            else:
                findings.append(Finding(
                    layer=f"container:{rt}", component=name,
                    location=f"{rt} {cid[:12]}", verdict=REVIEW, confidence="low",
                    evidence="rootfs path not resolvable without elevated access",
                    note="re-run as root, or scan the image filesystem offline",
                ))