GD bbPress versions 2.5 and below suffer from a cross site scripting vulnerability.
762ca6c77eae97f93338122f90650493b49e31676914a6b9bf03e787123f578a
An authenticated user of a bbPress forum, who can attach a file, can inject arbitrary javascript code via filename. The arbitrary code runs both on the topic page and in the admin panel, and it only affects the administrators, moderators and the attacker.
The variable $error[afilea] in /code/attachments/front.php (line 349) is not escaped.
Public disclosure: https://www.gubello.me/blog/gd-bbpress-attachments-2-5-authenticated-stored-xss/
Video PoC: https://www.youtube.com/watch?v=n4xX0ODV1O4
Sent with [ProtonMail](https://protonmail.com) Secure Email.