Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
framework.security-2.8.1
-
None
Description
`ConditionalPermissionUpdate.commit()` should check whether the caller has `AllPermission` before committing the updated permissions. The Javadocs state:
"Throws:
SecurityException – If the caller does not have AllPermission.
IllegalStateException – If this update's Conditional Permissions are not valid or inconsistent. For example, this update has two Conditional Permissions in it with the same name"
This check is not performed (it is performed in the deprecated `addConditionalPermissionInfo()` and `setConditionalPermissionInfo()` methods).
As a result, there is no way to prevent arbitrary code that can access the `ConditionalPermissionAdmin` from modifying the permissions at will.
Attachments
Issue Links
- links to