All vulnerabilities

Servers and applications

GHSA-gr56-j98m-p582

Insufficient authorization for draft attachments

Severity
Medium
Published
16 Sept 2026
Last changed
16 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
1.8.41
Weakness
Authorization bypass through a user-controlled key (IDOR) (CWE-639)
Sources
Project advisories (GitHub)

Description

The attachment component does not validate permissions correctly, allowing access to attachments in saved drafts without necessary authorization.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N

The attachment.php module loads attachment information directly by aid (mybb_attachments.aid) or pid (mybb_posts.pid). For an attachment associated with a real post, it loads the post and skips forum, thread, and attachment visibility checks when mybb_posts.visible = -2. The draft preview exception does not require mybb_posts.uid to match the active user. Draft save paths bind uploads to the persisted draft post ID, making the exception reachable through normal attachment identifiers rather than only a temporary upload preview.

From mybb/mybb's security advisory.

Affected software

SoftwareAffected versions
MyBBServers and applications · github:mybb/mybb
  • Every version before 1.8.41

About MyBB

open-source forum software

From Wikidata, CC0 1.0.
Docker Hub pulls
195,687Docker Hub, 15 Nov 2026
GitHub stars
1,251GitHub, 15 Nov 2026
Forks
445GitHub, 15 Nov 2026
Latest release
mybb_1841GitHub, 15 Nov 2026
Released
16 Sept 2026GitHub
License
GNU General Public License, version 3.0, GNU Lesser General Public License, version 3.0Wikidata
Written in
PHPWikidata
First released
2002Wikidata
First published on GitHub
13 Jun 2012GitHub

References