Skip to content

Attachment upload XSS

Low
dvz published GHSA-p9m7-9qv4-x93w Nov 19, 2022

Package

MyBB

Affected versions

< 1.8.32

Patched versions

1.8.32

Description

Impact

Multiple cross-site scripting (XSS) vulnerabilities in the post Attachments interface allow attackers to inject HTML by persuading the user to upload a file with specially crafted name.

The impact may be reduced when:

  • the attachment feature is disabled (Admin CP → Configuration → Settings → Attachments: Enable Attachment Functionality setting is set to No), or
  • the Can post attachments? permission is disabled for individual usergroups in individual forums.

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

Details

Following the upload of a file as an attachment to a post, the name of the file may be added dynamically to the DOM in an unsafe manner.

Patches

MyBB 1.8.32 resolves this issue with the following changes:

Workarounds

To reduce impact without upgrading MyBB, change the following setting (Admin CP → Configuration → Settings):

References

For more information

Go to mybb.com/security to report possible security concerns or to learn more about security research at MyBB.

Contact

The security team can be reached at security@mybb.com.

Severity

Low

CVE ID

CVE-2022-43708

Weaknesses