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.

