Bug 742004 - remove ability for user of log viewer in RHEVH Config UI to get root shell
Summary: remove ability for user of log viewer in RHEVH Config UI to get root shell
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ovirt-node
Version: 6.2
Hardware: Unspecified
OS: Unspecified
high
medium
Target Milestone: rc
: ---
Assignee: Joey Boggs
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-09-28 18:50 UTC by Perry Myers
Modified: 2011-12-06 19:28 UTC (History)
7 users (show)

Fixed In Version: ovirt-node-2.0.2-0.9.git9048c81.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 19:28:43 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1783 0 normal SHIPPED_LIVE rhev-hypervisor6 bug fix and enhancement update 2011-12-06 15:10:54 UTC

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


Note You need to log in before you can comment on or make changes to this bug.