Bugzilla – Bug 182
unstripped variables
Last modified: 2005-10-28 14:39:40 MDT
regarding CAN-2004-1051, I suppose SHELLOPTS should also be stripped for completeness. $ csh # SHELLOPTS is marked readonly in bash. % setenv SHELLOPTS xtrace % setenv PS4 '$(id)' % sudo /any/bash/script uid=0(root) gid=0(root) groups=0(root) ...
Created attachment 39 [details] patch to nix PS4 and SHELLOPTS irt CAN-2004-1051 patch to nix PS4 and SHELLOPTS irt CAN-2004-1051 maybe the mandiva folks should have submitted this... (see bugtraq for their security notice) -Scott Doty <scott@sonic.net>
Fixed in sudo 1.6.8p10