Check: GEN002220
      
      
        
  VMware ESX 3 Server:
  GEN002220
  
    (in version v1 r2)
  
      
      
    
  Title
All shell files must have mode 0755 or less permissive. (Cat I impact)
Discussion
Shells with world/group-write permissions give the ability to maliciously modify the shell to obtain unauthorized access.
Check Content
If /etc/shells exists, check the group ownership of each shell referenced. # cat /etc/shells | xargs -n1 ls -lL Otherwise, check any shells found on the system. # find / -name "*sh" | xargs -n1 ls -lL If a shell has a mode more permissive than 0755, this is a finding.
Fix Text
Change the mode of the shell. # chmod 0755 <shell>
Additional Identifiers
Rule ID: SV-922r2_rule
Vulnerability ID: V-922
Group Title: GEN002220
Expert Comments
      
        
        
      
      
        
  CCIs
      
      
        
        
      
    
  | Number | Definition | 
|---|---|
| CCI-000225 | 
           Employ the principle of least privilege, allowing only authorized accesses for users (or processes acting on behalf of users) which are necessary to accomplish assigned organizational tasks.  | 
      
      
        
        
      
      
        
  Controls
      
      
        
        
      
    
  | Number | Title | 
|---|---|
| AC-6 | 
           Least Privilege  |