Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4364855

PrivateCredentialPermission serialized set has implementation-dependent class

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.0
    • security-libs
    • None
    • beta
    • generic
    • generic

      The serialized form of PrivateCredentialPermission includes a Set field. The elements of this set on the wire in the current implementation are instances of a CredOwner inner class (which looks like it could be a static class but isn't). There is no guarantee that the eventual receiver of the serialized form is using the same implementation of JAAS, hence no guarantee that such an inner class exists in the receiver.

      There is also no readObject check to ensure that the received set actually (and only) contains instances of CredOwner, nor are there any checks to make sure that the credentialClass and principals fields are consistent with what would be obtained by parsing the target name, nor any check that the target name is in fact parsable.

            claisunw Charlie Lai (Inactive)
            bscheiflsunw Bob Scheifler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: