Bug 742004

Summary: remove ability for user of log viewer in RHEVH Config UI to get root shell
Product: Red Hat Enterprise Linux 6 Reporter: Perry Myers <pmyers>
Component: ovirt-nodeAssignee: Joey Boggs <jboggs>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: high    
Version: 6.2CC: acathrow, gouyang, leiwang, moli, ovirt-maint, sgrubb, ycui
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: ovirt-node-2.0.2-0.9.git9048c81.el6 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-06 19:28:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Perry Myers 2011-09-28 18:50:45 UTC
Description of problem:
Right now the log viewer in RHEVH is just a shell out to the less command line.  From less it is possible to do !!/bin.bash to get a root shell from the less command

One option to eliminate this is to start less with SHELL=/bin/false as an environment variable, as this seems to make !!/bin/bash fail, and returns back to the less reader

So:
SHELL=/bin/false less $filename

Comment 5 Guohua Ouyang 2011-10-09 05:40:15 UTC
Verified on 6.2-20111006, enter ":!!/bin/bash" on log file cannot get shell.

Comment 6 errata-xmlrpc 2011-12-06 19:28:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1783.html