Skip to content

[Security] Item_Devices::updateAll() updates component links that don't belong to the checked item #26601

Backlog

Description

@MegaManSec

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

Setup

  • Clean install, two entities A and B, each with one computer that has a memory component.
  • Attacker: Technician (or any standard-interface profile) with UPDATE on assets in entity A only.

Description
front/item_devices.form.php passes the POST to Item_Devices::updateAll(). updateAll() checks UPDATE only on the parent item named in the request ($item->check($input['items_id'], UPDATE) at src/Item_Devices.php:1386). It then takes the link ID from each value_ key and updates that link (lines 1447-1450) without checking that the link belongs to the checked item or that the user may update it. Link IDs are sequential integers.
https://github.com/glpi-project/glpi/blob/12.0.3/src/Item_Devices.php#L1386
https://github.com/glpi-project/glpi/blob/12.0.3/src/Item_Devices.php#L1447-L1450
(11.0.14: lines 1328 and 1389)

Impact: a user who can update one asset can change component fields (serial, size and other link fields) on assets in entities they have no access to. Write only; nothing is disclosed.

Exploit scenario

  1. Note the memory link ID of the computer in entity B (as admin, for the test).
  2. As the attacker, open the Components tab of the computer in entity A and save it, renaming one field to value_DeviceMemory__serial with a new value.
  3. The serial on the entity B computer's memory link has changed.

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

Recommendation
In the update loop, load each link and skip it unless its itemtype and items_id match the checked parent (or check $link->can($id, UPDATE)).

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

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