You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Security] Item_Devices::updateAll() updates component links that don't belong to the checked item #26601
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
Note the memory link ID of the computer in entity B (as admin, for the test).
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.
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