Skip to content

[Security] Global notification settings can be changed with config READ (front/setup.notification.php) #26600

Backlog

Description

@MegaManSec

Version: 12.0.3 and 11.0.14 (also present on main as of 2026-12-03)

Setup

  • Clean install, default settings.
  • Attacker: a standard-interface profile with notification READ and config READ but no config UPDATE, for example the built-in Read-Only profile.

Description
front/setup.notification.php lets in users with notification READ or config UPDATE (line 40) and only redirects users who lack config READ (lines 46-51). It then passes any POST straight to NotificationSettingConfig::update() (lines 58-59) without checking config UPDATE. update() writes use_notifications and every notifications_* key to the core configuration, and use_notifications=0 also sets every notification mode to 0. The settings form is only rendered for users with config UPDATE, but the POST handler doesn't enforce it.
https://github.com/glpi-project/glpi/blob/12.0.3/front/setup.notification.php#L40-L60

This is the same pattern GHSA-p592-vf38-pm66 (fixed in 10.0.25 / 11.0.7) fixed for configuration updates with config READ; this endpoint wasn't covered.

Impact: a read-only user can turn off all notifications (email, browser and the other modes) for the whole instance, or change individual notification modes.

Exploit scenario

  1. Log in as a Read-Only user.
  2. POST to /front/setup.notification.php with a valid _glpi_csrf_token and use_notifications=0.
  3. Notifications are now disabled globally (Setup > Notifications shows them off).

Pavel has a dockerised proof of concept for this and can attach it if useful.

Recommendation
Require config UPDATE before calling $settingconfig->update($_POST), for example Session::checkRight('config', UPDATE) inside the POST branch.

Found by Pavel Kohout, AISLE Research (AISLE-2026-0340-0095).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions