/

CVE-2026-106991

Severity:

HIGH RISK

(7.1)

Incorrect Access Control (CWE-284) in hustoj Forum

CVE-2026-106991

Deferred

Vulnerability type

Category:

Incorrect Access Control

CWE:

CWE-284

Impact:

Unauthorized modification or deletion of forum threads

Severity:

HIGH RISK

(7.1)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

hustoj forum thread administration checks whether a user is logged in but does not verify that the user owns the thread or has administrator privileges. As a result, any registered user may be able to delete, lock, or make threads sticky, including administrator announcements.

Affected context

The issue affects hustoj versions in the reported range when requests to threadadmin.php reach the thread administration branch. The risk arises because that branch checks for an authenticated session without also enforcing thread ownership or administrator authorization.

Exploit preconditions

  • Attack surface: Forum thread administration through threadadmin.php
  • Required access: A registered, logged-in user
  • Trigger point: A thread administration request
  • Why exploitation is possible: The relevant authorization check verifies login status but does not establish that the user owns the thread or has administrator rights.

Why this happens

The application performs an authentication check without a corresponding authorization check for sensitive thread actions. This is an access-control failure mapped to CWE-284: Improper Access Control: the system does not adequately restrict which authenticated users may delete, lock, or make a thread sticky.

Potential impact

  • A registered user may delete forum threads, affecting their availability.
  • A user could lock threads and prevent further discussion.
  • A user may make threads sticky, altering forum visibility and organization.
  • Administrator announcements could be modified or removed, undermining the integrity of forum communications.

General mitigation guidance

Mitigation patterns focus on enforcing authorization for every sensitive action, rather than treating authentication as sufficient.

  • Apply server-side role and ownership checks before performing thread operations.
  • Define explicit permissions for deleting, locking, and making threads sticky, with privileged actions limited to authorized roles.
  • Deny access by default when authorization cannot be established.
  • Centralize access-control rules and test them across all thread-management actions.
  • Limit account privileges to reduce the potential impact of compromised or misused accounts.

How teams detect issues like this

  • Review thread administration handlers for login-only checks on actions that require ownership or elevated privileges.
  • Use static analysis or code review rules to flag sensitive operations without nearby server-side authorization checks.
  • Test access-control policies with ordinary registered accounts against threads they do not own, including announcements.
  • Monitor audit logs for thread deletions, locks, and sticky-state changes, and alert on unexpected activity by non-privileged accounts.

Sources

SourceLink
github.comgithub.com/MX-Qulin/CVE-2026-106991
github.comgithub.com/zhblue/hustoj
github.comgithub.com/zhblue/hustoj/pull/1192

Frequently asked

questions

The description indicates that any registered user can perform the affected thread actions through the vulnerable branch.

No. A registered, logged-in account is the stated access requirement; the authorization gap is that administrator rights or thread authorship are not checked.

Enforce server-side authorization for each action, verifying the user's role and, where relevant, ownership of the specific thread before changing it.

Use deny-by-default access policies, centralize permission checks, and test sensitive actions with accounts that lack the required privileges.

Find out what's already
exploitable in your codebase.