Security in Computing (3rd Edition)

Info icon This preview shows pages 1–2. Sign up to view the full content.

CS 161 Computer Security Fall 2005 Joseph/Tygar/Vazirani/Wagner Notes 22 Object Serialization in Java Java’s object serialization mechanism is a convenient way to store Java objects on disk. It is also tempting to use this mechanism as a building block for network protocols. This mini-lecture describes the pitfalls of us- ing object serialization in this way, and offers some suggestions on how you could begin to use serialization in your own networking protocols. Disclaimer: These notes are not a complete discussion of the problems inherant in object serialization, and are simply a few problems that the T.A.’s and professors have noticed over the last week. We do not know of a comprehensive source that describes how Java’s object serialization mechanism can be used sercurely. 1 What Can Go Wrong The biggest problem with using serializable over a network connection is that readObject() returns an in- stantiated object of a type controlled by the sender of the message. The implementation of this object must be somewhere on your classpath for the deserialization to succeed. Java ships with many classes that implement serializable, and many third-party libraries also implement serializable. Worse, Java allows objects to implement their own deserialize methods. If you use the default
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

Image of page 2
This is the end of the preview. Sign up to access the rest of the document.
  • Fall '05
  • Joseph
  • Computer Security, Objective-C, Serialization, object serialization

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern