[Bug 1803441] Re: BASH_CMDS is writable in restricted bash shells (fixed upstream, need to backport patch)

Andrew Zonenberg azonenberg at drawersteak.com
Tue Mar 26 19:21:34 UTC 2019


Yes, that's basically the same issue.

It was patched upstream many years ago (2016 I recall) however as of
last fall Ubuntu old-LTS had not backported the fix. I used this bug to
escape from rbash during a security audit of a fully patched Ubuntu
system in October.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1803441

Title:
  BASH_CMDS is writable in restricted bash shells (fixed upstream, need
  to backport patch)

Status in bash package in Ubuntu:
  New

Bug description:
  In 14.04 LTS, the BASH_CMDS variable is writable in rbash. This allows
  a trivial escape from rbash to run arbitrary shell commands.

  This issue is fixed upstream:
  http://git.savannah.gnu.org/cgit/bash.git/tree/CHANGES?h=bash-4.4-testing#n65

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1803441/+subscriptions



More information about the foundations-bugs mailing list