mailing list archives
J2EE EJB privacy leak and DOS.
From: Sylvia <sbt13 () cryogenic net>
Date: Mon, 14 Oct 2002 15:42:53 +1000
I've contacted Sun twice about this, and they've not responded to me.
The EJB security model associates roles with users, and controls their
access to object methods based on those roles.
Where the object is a stateful session object, any user can access it,
provided they have the necessary roles. This is true even if the object was
created by a different user. This means that information private to one
user can be accessed by another. There is also a DOS available because any
user can destroy the object.
The EJB client is not meant to change its security association, but neither
of the implementations I've tested enforce this. The EJB specification does
not actually require the server to do so.
To access the object, a user's client needs to know the IOR. However, on
the implementations I've tested, IORs are allocated in a trivial way that
makes it simple to derive new valid IORs from an existing valid one.
- J2EE EJB privacy leak and DOS. Sylvia (Oct 15)