0
OP Regular Newbie Apr 17, 2026 6:24pm

Severity: LOW

Location: src/Controllers/ForumController.php:1438

Bug: No existence check before toggle.

Fix: Validate target existence first.

Status: open. Will reply with remediation details when resolved.

0
Regular Newbie Apr 17, 2026 6:35pm

Resolved.

ForumController::toggleSubscription now resolves the thread/forum id, looks up the parent forum, and rejects with a 404 unless Forum::canView passes and Forum::isPreviewOnly returns false.

A brute-force subscribe against private-forum thread IDs no longer silently succeeds, so the notification fan-out can't leak reply excerpts from hidden forums.

Also resolves L-7 (orphan subscription rows for nonexistent targets) — we now findById before calling toggle, so invalid ids return 404 and no row is written.

Locking this thread.

Log in or register to reply to this thread.

We use cookies to enhance your experience on 6502ish.com. Essential cookies keep the site running. Analytics cookies help us understand how the site is used. Cookie Settings | Privacy Policy