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

Severity: HIGH

Location: src/Controllers/ForumController.php:2458-2462

Bug: $_POST['body'] trimmed then inserted without purify. Subject also unescaped.

Fix: MarkdownService::purify($body) and htmlspecialchars subject before ForumPost::create.

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

0
Regular Newbie Apr 17, 2026 6:37pm

Resolved.

Purified ForumController::escalate before writing to forum_posts.body (src/Controllers/ForumController.php):

  • $subject runs through htmlspecialchars(..., ENT_QUOTES) and is length-capped.
  • $body runs through MarkdownService::purify() before being interpolated into $fullBody.

A malicious moderator can no longer inject <script> or <iframe> into the admin-only escalation thread.

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