Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2026-106991 — Report and PoC for CVE-2026-106991, a missing-authorization flaw in HUSTOJ threadadmin.php letting any registered user delete, lock, or pin threads; includes automated verification script. | Kitploit
Tools/GitHubGitHub/mx-qulin/cve-2026-106991
Authentication & AuthorizationVulnerability AnalysisExploitationWeb Application ExploitationWeb SecurityPapers & Research
GitHubmx-qulin/cve-2026-106991

CVE-2026-106991

Report and PoC for CVE-2026-106991, a missing-authorization flaw in HUSTOJ threadadmin.php letting any registered user delete, lock, or pin threads; includes automated verification script.

View Repository
19 days agoNot yet reviewed
Share
Website

CVE-2026-106991 Report

https://www.cve.org/CVERecord?id=CVE-2026-106991

Visitor Count

Description

HUSTOJ is an open source online judge based on PHP/C++/MySQL/Linux for ACM/ICPC and NOIP training. Between version 24.09.10 and 26.08.19, due to missing authorization in threadadmin.php, any registered user can delete, pin, lock any thread via the request (/threadadmin.php?target=thread&tid=<tid>&action=delete|lock|resume|sticky&level=<0-3>).

Mertics

StandardScoreDescription
CVSS v3.17.1 (High)CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
SSVCADP:CISA-ADPExploitation: None;Automatable: Yes;Technical Impact: low

References to Advisories, Solutions, and Tools

Report: CVE-2026-106991 Report

Patch: HUSTOJ PR #1192

Affected File: threadadmin.php

Triage GHSA-2p8p-46r7-h95p

Weakness Enumeration

CWE-862 CWE-862 Missing Authorization

Affected Products

Source: GitHub, Inc.

VendorProductVersions
zhbluehustoj24.09.10 <= Affected <= 26.08.19

Prerequisites

Forum enabled: $OJ_BBS="discuss3".

Attacker account: any registered user, no privileges needed.

Vulnerable range: >= 24.09.10 && <= 26.08.19.

commit before or is: b8fa104.

Root cause

trunk/web/threadadmin.php (target=thread branch) is the thread moderation endpoint. It takes the target thread and the action from the request (/threadadmin.php?target=thread&tid=<tid>&action=delete|lock|resume|sticky&level=<0-3>), and its only check is login state:

if (!isset($_SESSION[$OJ_NAME . '_' . 'administrator']) && !isset($_SESSION[$OJ_NAME . '_' . 'user_id']))
    errmsg(...);

That condition stops the request only when the caller is neither an administrator nor logged in, so every authenticated user passes.

Nothing compares topic.author_id against the session, nothing requires admin rights.

The sibling target=reply branch in the same file does this correctly (WHERE rid=? AND author_id=?), which confirms the omission is a bug, not a design choice.

Since tid is auto-increment, an attacker walks tid=1..N and empties the board: delete sets topic.status=2 and wipes all replies (UPDATE reply SET status=2 WHERE topic_id=<tid>), lock sets status=1, sticky&level=3 sets top_level=3, rendering the thread as a site-wide administrator notice.

Two adjacent defects: denial paths call undefined errmsg() (the real function is err_msg()), and err_msg() lacks global $OJ_TEMPLATE, so every denial returns HTTP 500 instead of an error.

Status

verified on PHP 8.3 + MariaDB at b8fa104.

Fixed in 26.09.12 via PR #1192 (commits ebe4f6880, 9644d29e): non-admin callers must match topic.author_id or get Permission denied..

Fix verified by re-running the same PoC against the patched build.

PoC

One request, logged in as an ordinary user: GET /threadadmin.php?target=thread&tid=22&action=lock returns 302 and locks a thread authored by admin:

bob locking an administrator's thread, 302 Found

Automated, zero dependencies: python3 poc.py --url http://127.0.0.1:8080/ --auto-register runs sticky, lock, delete, and denial-path checks; vulnerable builds report VULNERABLE on all four, patched builds report patched.

Reported triage:

GitHub Security Advisory GHSA-2p8p-46r7-h95p Repo owner didn’t repond to this advirsory, the fix PR has been merged.

by MX-Qulin on 2026-09-12.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    899
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    831
  • 3

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    661
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    444
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    443
  • 6

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    395

Explore all tools

Browse our collection of tools

View all tools →