Closed bugfolder closed 8 months ago
PR submitted.
One can test this locally without having to send out emails by enabling the Devel module, then executing this code on the "Execute PHP" page, then inspecting the dpm
'd value:
$message = array();
$params['node'] = node_load(6503);
borg_mailers_security_mail('borg_mailers_security_email', $message, $params);
dpm($message,'$message');
Before:
View online:
http://backdropcms-org:8888/security/backdrop-sa-contrib-2023-008
The Masquerade module allows users to temporarily switch to another
user account.
The module provides a "Masquerade as admin" permission to restrict users from
switching to an account with administrative privileges. This permission is
not always honored and may allow non-administrative users to masquerade as an
administrator.
This vulnerability is mitigated by the fact that an attacker must have a role
with the "Masquerade as user" permission.
* Masquerade module versions prior to 1.x-1.0.1.
Upgrade your site to the most recent version of Masquerade. Download
available on the Masquerade 1.x.x release page [1].
[1] https://github.com/backdrop-contrib/masquerade/releases/tag/1.x.x
After (email addresses intentionally obscured):
View online:
http://backdropcms-org:8888/security/backdrop-sa-contrib-2023-008
Date: Wednesday, Oct 4th, 2023
Advisory ID: BACKDROP-SA-CONTRIB-2023-008
Security risk: Moderately Critical
Vulnerability:
* Cross Site Scripting
* Access bypass
Versions affected:
* Masquerade module versions prior to 1.x-1.0.1.
Description:
The Masquerade module allows users to temporarily switch to another
user account.
The module provides a "Masquerade as admin" permission to restrict users from
switching to an account with administrative privileges. This permission is
not always honored and may allow non-administrative users to masquerade as an
administrator.
This vulnerability is mitigated by the fact that an attacker must have a role
with the "Masquerade as user" permission.
Solution:
Upgrade your site to the most recent version of Masquerade. Download
available on the Masquerade 1.x.x release page [1].
Reported By:
* Rick Bargerhuff [2]
* Stephen Maiorana [3]
Fixed By:
* smaiorana [4], Backdrop module maintainer.
Coordinated By:
* Jen Lampton [5] of the Backdrop CMS Security Team
[1] https://github.com/backdrop-contrib/masquerade/releases/tag/1.x.x
[2] mailto:*****@rowan.edu
[3] mailto:*****@rowan.edu
[4] https://github.com/smaiorana
[5] https://github.com/jenlampton
@bugfolder this looks fantastic, thanks so much for working on it! I merged the PR, please go ahead and deploy when you can.
Our security advisory emails are missing labels, which makes them not very clear, and contain less information than the web page version. For example, here's the web page for a recent SA notice:
https://backdropcms.org/security/backdrop-sa-contrib-2024-001
Here's the content of the email, which is derived directly from the web page:
This is not very clear. What is the significance of that phrase
Node Access Rebuild Progressive versions prior to 1.x-1.0.1
doing all by itself?By contrast, here's the Drupal version of the email for their corresponding SA notice:
We should make our emails more closely match our SA webpage, similarly to what our Drupal brethren are doing.