Section
3.4.1
Top Level
General
Use the backend access control mechanism(s) to ensure the user is authorized to access the requested function/data based on the supplied parameters. Audit/Log any access control failures.
Coldfusion

Use role-based security and access control to restrict access to your Cold Fusion Components. This is accomplished by using the roles and access attributes of the <cffunction> tag.

Django

By default, a user is given permission to add/edit/delete all objects in a particular database table through the contrib.admin application. In order to restrict this to only objects owned by the requesting user, you would need to define custom methods for the ModelAdmin objects that filter the query set used to populate the change list and ensure that the user can't save an object that isn't related to them.

Java

If you use backend access control, consider using the J2EE standard approach. This involves use of the isUserInRole() andgetUserPrincipal() HttpServletRequest methods.

Natural Webagent

For logging, consider using Log4Natural.

PHP

Use safe_mode as part of Defense in Depth. However, do not rely on it alone for security.