Description
Users with the SYSTEM_CONFIGURATION
permission can customize notification templates. Templates are evaluated using the Pebble template engine. Pebble supports an include
tag, which allows template authors to include the content of arbitrary files upon evaluation.
Impact
Actors with the SYSTEM_CONFIGURATION
permission can craft notification templates that include
local files, such as /etc/passwd
or /proc/1/environ
. By configuring such a template for a notification rule (aka "Alert"), and having it send notifications to a destination controlled by the actor, sensitive information may be leaked.
The SYSTEM_CONFIGURATION
permission per default is only granted to members of the Administrators
team. Assigning this permission to non-administrative users or teams is a security risk in itself, and highly discouraged.
Patches
The issue has been fixed in Dependency-Track 4.12.6.
In fixed versions, the include
tag can no longer be used. Usage of the tag will cause template evaluation to fail.
References
Credit
Thanks to Jonathan Leitschuh for finding and responsibly disclosing the issue.
Description
Users with the
SYSTEM_CONFIGURATION
permission can customize notification templates. Templates are evaluated using the Pebble template engine. Pebble supports aninclude
tag, which allows template authors to include the content of arbitrary files upon evaluation.Impact
Actors with the
SYSTEM_CONFIGURATION
permission can craft notification templates thatinclude
local files, such as/etc/passwd
or/proc/1/environ
. By configuring such a template for a notification rule (aka "Alert"), and having it send notifications to a destination controlled by the actor, sensitive information may be leaked.The
SYSTEM_CONFIGURATION
permission per default is only granted to members of theAdministrators
team. Assigning this permission to non-administrative users or teams is a security risk in itself, and highly discouraged.Patches
The issue has been fixed in Dependency-Track 4.12.6.
In fixed versions, the
include
tag can no longer be used. Usage of the tag will cause template evaluation to fail.References
Credit
Thanks to Jonathan Leitschuh for finding and responsibly disclosing the issue.