The product does not properly assign, modify, track, or check privileges for an actor, creating an unintended sphere of control for that actor.

Impact: Gain Privileges or Assume Identity
Strategy: Separation of Privilege
Strategy: Separation of Privilege
python
#avoid CWE-22 and CWE-78* print('Usernames cannot contain invalid characters') return False try: ``` raisePrivileges() os.mkdir('/home/' + username) lowerPrivileges() except OSError: print('Unable to create new user directory for user:' + username) return False return True
c
/* do some stuff /
cjava
// privileged code goes here, for example:* System.loadLibrary("awt"); return null;
javajavajavaMedium