Least privilege

http://www.textnotace.com

Description
The principle of least privilege recommends that accounts have the least amount of privilege required to perform their business processes. This encompasses user rights, resource permissions such as CPU limits, memory, network, and file system permissions.

Administrative Priviledges Granted to a Middleware Server

 * For example, if a middleware server only requires access to the network, read access to a database table, and the ability to write to a log, this describes all the permissions that should be granted. Under no circumstances should the middleware be granted administrative privileges.

Connecting to the Database as Root

 * In this example PHP code, only a SELECT statement from the database is issued. There is no reason to connect to the database as root. Instead, a user should be created with only the necessary access to the database that can be used to perform the SELECT query.



Related Vulnerabilities

 * Failure to drop privileges when reasonable
 * Failure to check whether privileges were dropped successfully
 * Least Privilege Violation

Related Controls

 * Authorization