Permissions.readObject doesn't enforce proper Class to PermissionCollection mappings

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 13
    • Affects Version/s: None
    • Component/s: security-libs
    • b16
    • Verified

      It is possible to change the mappings in a serialized java.security.Permissions object such that they no longer map correctly, and Permissions.readObject won't detect this. This can cause incorrect behavior in the implies method. For example, you could change the mapping of java.io.FilePermission to a java.util.PropertyPermissionCollection, and permissions.implies(new FilePermission(...)) would always return false.

            Assignee:
            Sean Mullan
            Reporter:
            Sean Mullan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: