CVE-2026-59240
Beschrijving NL
Het beveiligingslek betreft een Insecure Direct Object Reference (IDOR) in de `DeleteNotificationController::delete()` methode op eindpunt `GET /notification/delete/{id}`. Met de fout kan elke geverifieerde gebruiker, ongeacht het bedrijf of de machtigingen, meldingen van andere gebruikers in het systeem verwijderen. De controller haalt het doelrecord op met `Notification:: findOrFail ($id)` en verwijdert het zonder het eigendom van `user_id` of `company_id` te valideren, in tegenstelling tot de broer of zus `SetNotificationReadAjaxController`, die zoekacties correct scoopt op `Auth::id()`. Omdat meldings-ID's opeenvolgend zijn, kan een aanvaller over ID's itereren om meldingen van elke gebruiker systematisch te verwijderen, waardoor ze geen zichtbaarheid krijgen van ticketwaarschuwingen, taaktoewijzingen en andere systeemgebeurtenissen.
Origineel (Engels) tonen
The vulnerability involves an Insecure Direct Object Reference (IDOR) in the `DeleteNotificationController::delete()` method at endpoint `GET /notification/delete/{id}`. The flaw allows any authenticated user, regardless of company or permissions, to delete notifications belonging to any other user in the system. The controller retrieves the target record with `Notification::findOrFail($id)` and deletes it without validating `user_id` or `company_id` ownership, unlike the sibling `SetNotificationReadAjaxController`, which correctly scopes lookups by `Auth::id()`. Because notification identifiers are sequential, an attacker can iterate over IDs to systematically delete notifications belonging to any user, denying them visibility of ticket alerts, task assignments, and other system events.