Search:     Advanced search
server monitoring

J2EE Misconfiguration: Weak Access Permissions

Article ID: 102
Last updated: 08 May, 2008
Views: 325
Posted: 06 May, 2008
by: Tech Pubs S.
Updated: 08 May, 2008
by: Tech Pubs S.

J2EE Misconfiguration: Weak Access Permissions

Abstract

Permission to invoke EJB methods should not be granted to the ANYONE role.

Description

If the EJB deployment descriptor contains one or more method permissions that grant access to the special ANYONE role, it indicates that access control for the application has not been fully thought through or that the application is structured in such a way that reasonable access control restrictions are impossible.

Examples

The following deployment descriptor grants ANYONE permission to invoke the Employee EJB's method named getSalary().

	<ejb-jar>
		...
		<assembly-descriptor>
			<method-permission>
				<role-name>ANYONE</role-name>
				<method>
					<ejb-name>Employee</ejb-name>
					<method-name>getSalary</method-name>
			</method-permission>
		</assembly-descriptor>
		...
	</ejb-jar>
This article was:   Helpful | Not Helpful
Also listed in
folder Web Application Security -> Vulnerability -> Environmental Vulnerability

Prev   Next
Access Control Vulnerability     Environmental Vulnerability