What are the security ramifications of using the Externalizable interface?

Govind Seshadri

The methods within the Externalizable interface, readExternal() and writeExternal() have public scope. This implies some client object could potentially bypass the Java sandbox mechanisms and overwrite or gain access to the state of an externalizable object.

As a general rule of thumb, a class should implement the Externalizable interface only if the object contains nonsensistive information.

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact