prehistoric wrote:@Barkin,
I actually prefer the more complicated test used by cimarron. The date function has to be executed to produce that new text, and a file created as a result. With the simple test you used I would worry that a mix-up in quoting gave me a false assurance that a vulnerable system was safe.
BASH exposure expressed as bigger than Heartbleed<SOLUTIONS>
- Attachments
-
- cimarron test result on puppy 525 after fix.gif
- Puppy 525, kernel 2.6.33.2 , after ShellShock fix from dejan555
- (8.13 KiB) Downloaded 1254 times
- michaellowe
- Posts: 66
- Joined: Sat 17 Dec 2011, 08:33
- Location: The Garden
bash_4.2-2ubuntu2.3_i386.deb passed test on Precise 5.7.1
Hello everyone, firstly thankyou to @cimarron and @Geoffrey for your help, very much appreciated! I thought the least I could do was let everyone know who was concerned or for anyone reading this in the near future that the patch described in the subject of this post seems to have passed the test and the
"no such file or directory"
response was returned in the terminal as opposed to the date etc. so I am very happy with the result. apart from that yes I agree the media can get a bit hyped when it comes to such things, probably because half the idiots have big mouths with very small brains and don't actually understand what is at stake. please see screen shot for noobs sake.
"no such file or directory"
response was returned in the terminal as opposed to the date etc. so I am very happy with the result. apart from that yes I agree the media can get a bit hyped when it comes to such things, probably because half the idiots have big mouths with very small brains and don't actually understand what is at stake. please see screen shot for noobs sake.

- Attachments
-
- bash up to date.png
- (18.7 KiB) Downloaded 1201 times
Smash forehead on keyboard to continue.....
well thats at least how some of us deal with ba$h !
well thats at least how some of us deal with ba$h !
- michaellowe
- Posts: 66
- Joined: Sat 17 Dec 2011, 08:33
- Location: The Garden
You learn something new everyday!
who would have thought??!!! Thank you Prehistoric for suggesting this. Now don't get me wrong I like typing and I'm keyboardcentric so I love hotkeys and keyboard shortcuts etc. but sometimes when executing complicated scripts like the bash up to date test comes one is pressed for time this neat little trick that you have shared with us mere mortal noobs is so appreciated. do you know how long I trawled the internet for this? google was useless! this did not come close in the search! so I thank you again for sharing the knowledge! brilliant! I got the impression from one forum that if you are running a gnome desktop the copy and paste function does not work in the terminal and I tried it many moons ago, it doesn't.prehistoric wrote:@Kester,
You can also save yourself some tricky typing by simply highlighting the test command in your browser, directly from this web page, and then doing a "middle-click" in your console window. This will copy highlighted text without needing a cut-and-paste.
saving time is always appreciated, thanks!

Smash forehead on keyboard to continue.....
well thats at least how some of us deal with ba$h !
well thats at least how some of us deal with ba$h !
- michaellowe
- Posts: 66
- Joined: Sat 17 Dec 2011, 08:33
- Location: The Garden
Re: BASH exposure expressed as bigger than Heartbleed.
@Kester you could simply run as Spot whenever you want to browse the internet and then su privileges are removed making you less vulnerable if you were still worried about web pages being served from insecure webservers.Kester wrote:
I have considered removing Puppy Precise 5.7.1 from my dual boot (XP Pro) system by booting up my XP installation disc, opening the 'Repair' option and running 'fixmbr'. I would then return to using live discs for Puppy but perhaps there is no need to take such a drastic step - it's a question of lack of confidence caused by a lack of knowledge on my part. I'm more confident with Windows XP because I know it better but like Puppy very much and decided on dual booting for security reasons when Microsoft support for XP finished - I though I use Puppy for the bulk of my internet activity, so this Bash issue is a little ironic.
Please any of you puppy masters feel free to correct me if I am wrong.

Smash forehead on keyboard to continue.....
well thats at least how some of us deal with ba$h !
well thats at least how some of us deal with ba$h !
cimarron wrote:As I posted above, to check if the new (second) fix is working, paste this line into the terminal:If your system is vulnerable, the time and date information will be output on the screen (and a file called /tmp/echo will be created):Code: Select all
cd /tmp; rm -f /tmp/echo; env 'x=() { (a)=>\' bash -c "echo date"; cat /tmp/echo
If your system is not vulnerable, you will see output similar to:Code: Select all
bash: x: line 1: syntax error near unexpected token `=' bash: x: line 1: `' bash: error importing function definition for `x' Fri Sep 26 11:49:58 GMT 2014
Code: Select all
bash: x: line 1: syntax error near unexpected token `=' bash: x: line 1: `' bash: error importing function definition for `x' date cat: /tmp/echo: No such file or directory
I just updated an old Mepis 11 install...... based on Debian Squeeze. Results>
Code: Select all
james@mepis1:~$ cd /tmp; rm -f /tmp/echo; env 'x=() { (a)=>\' bash -c "echo date"; cat /tmp/echo
date
cat: /tmp/echo: No such file or directory
Application of dejan555's
http://meownplanet.net/dejan/dpup487/pk ... pup487.pet
to Puppy 4.3.1 produces the desired change in the result of cimarron's test.
Many thanks, folks.
http://meownplanet.net/dejan/dpup487/pk ... pup487.pet
to Puppy 4.3.1 produces the desired change in the result of cimarron's test.
Many thanks, folks.
N̶e̶w̶ ̶u̶p̶d̶a̶t̶e̶ ̶p̶a̶t̶c̶h̶ ̶0̶2̶7̶,̶ ̶c̶o̶m̶p̶i̶l̶e̶d̶ ̶i̶n̶ ̶C̶a̶r̶o̶l̶i̶n̶a̶.̶
New update patch 030, compiled in Carolina.
bash-4.3.30-1.pet
bash_DOC-4.3.30-1.pet
bash_NLS-4.3.30-1.pet
New update patch 030, compiled in Carolina.
bash-4.3.30-1.pet
bash_DOC-4.3.30-1.pet
bash_NLS-4.3.30-1.pet
Last edited by Geoffrey on Thu 14 May 2015, 19:29, edited 2 times in total.
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]
Good job. Tested working for puppy 4.3.1, slacko 5.3.3, lucid 5.28, wary 5.3, precise 5.7.1, slacko 5.7. It passes cimarron's test. Tested frisbee in precise and slacko: it's working with the new bash patch. Thanks.Geoffrey wrote:New update patch 027, compiled in Carolina.
<CUT>
Frisbee appears to be working with this version
@michaellowe
Thanks for your post. I tried to log in with Spot but got the following:
# su --login spot
su: unrecognized option '--login'
BusyBox v1.21.0 (2013-02-18 15:57:06 WST) multi-call binary.
Usage: su [OPTIONS] [-] [USER]
Run shell under USER (by default, root)
-,-l Clear environment, run shell as login shell
-p,-m Do not set new $HOME, $SHELL, $USER, $LOGNAME
-c CMD Command to pass to 'sh -c'
-s SH Shell to use instead of user's default
#
Any further advice would be appreciated thanks.
Regards, Kester.
Thanks for your post. I tried to log in with Spot but got the following:
# su --login spot
su: unrecognized option '--login'
BusyBox v1.21.0 (2013-02-18 15:57:06 WST) multi-call binary.
Usage: su [OPTIONS] [-] [USER]
Run shell under USER (by default, root)
-,-l Clear environment, run shell as login shell
-p,-m Do not set new $HOME, $SHELL, $USER, $LOGNAME
-c CMD Command to pass to 'sh -c'
-s SH Shell to use instead of user's default
#
Any further advice would be appreciated thanks.
Regards, Kester.
- prehistoric
- Posts: 1744
- Joined: Tue 23 Oct 2007, 17:34
@Kester,
You probably don't want to tackle this problem alone, there have been extensive technical discussions in the past, and some puppy derivatives run browsers as "spot" by default. Right now I'm running this on Fatdog 630-631, a 64-bit variant which runs all Internet programs as "spot". This sometimes creates some new problems in changing file ownership when you use your "root" login to copy files elsewhere, but often the error messages don't mean anything serious. The system is taking the right corrective action.
Forum member rcrsn51 has long advocated making a "safe browser" icon on the desktop linked to this code:
I've been too lazy to experiment much myself, letting others do this work, and I don't know the exact pupplet you are running. This limits my ability to give you exact instructions.
I've attached Barry's documentation file from Precise, which I had to compress to get this forum software to accept. Extract the file with pupzip and you can read it with any browser.
You probably don't want to tackle this problem alone, there have been extensive technical discussions in the past, and some puppy derivatives run browsers as "spot" by default. Right now I'm running this on Fatdog 630-631, a 64-bit variant which runs all Internet programs as "spot". This sometimes creates some new problems in changing file ownership when you use your "root" login to copy files elsewhere, but often the error messages don't mean anything serious. The system is taking the right corrective action.
Forum member rcrsn51 has long advocated making a "safe browser" icon on the desktop linked to this code:
Code: Select all
#!/bin/sh
su -l -c "PATH=$PATH LANG=$LANG DISPLAY=$DISPLAY defaultbrowser" spot
I've attached Barry's documentation file from Precise, which I had to compress to get this forum software to accept. Extract the file with pupzip and you can read it with any browser.
- Attachments
-
- spotdoc.bz2
- documentation on user "spot" from Precise Puppy.
- (3.28 KiB) Downloaded 264 times
For those of you that used Dejan's patch, it might not have handled the 2nd issue (See James C.' post) with the following test:
cd /tmp; rm -f /tmp/echo; env 'x=() { (a)=>\' bash -c "echo date"; cat /tmp/echo
Please be sure to check against this, as well as the original. For me, Geoffrey's pets did the trick. I'm running OV Precise Retro 5.8
Kind regards,
Slavvo67
cd /tmp; rm -f /tmp/echo; env 'x=() { (a)=>\' bash -c "echo date"; cat /tmp/echo
Please be sure to check against this, as well as the original. For me, Geoffrey's pets did the trick. I'm running OV Precise Retro 5.8
Kind regards,
Slavvo67
EDIT: See this post for latest version(s)
Last edited by dejan555 on Wed 01 Oct 2014, 20:11, edited 1 time in total.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]
jbruchon did not come up with a fix yet, but rg66 did -- anyone running X-Slacko 2.1 should head over to that thread and install the *.PET for the fix...starhawk wrote:Installed bash 4.2.x *.txz for Slackware. NOT A FIX FOR X-SLACKO 2.1 -- it will break your savefile.
I've asked my local guru, user jbruchon (who has posted very little here), to come up with a working version for me. We'll see...
Wait... *is* there anyone else using X-Slacko 2.1...?
That worked on my Puppy 4.31 a couple of days ago.mavrothal wrote:Here is bash 3.0.18 for wary/racy 5.5 that also passes thetest.Code: Select all
cd /tmp; rm -f /tmp/echo; env 'x=() { (a)=>\' bash -c "echo date"; cat /tmp/echo
As has been conjectured from the beginning, it seems there are further vulnerabilities discovered and a patch published.
On my webserver:
Code: Select all
# foo='() { echo not patched; }' bash -c foo
not patched
Installed and tested successfully in Dpup Wheezy 3.5.2.8.Geoffrey wrote:New update patch 027, compiled in Carolina.
bash-4.3.27-1.petCode: Select all
# cd /tmp; rm -f /tmp/echo; env 'x=() { (a)=>\' bash -c "echo date"; cat /tmp/echo date cat: /tmp/echo: No such file or directory #
bash_DOC-4.3.27-1.pet
bash_NLS-4.3.27-1.pet
Frisbee appears to be working with this version
Thanks, Geoffrey.
Leon wrote:Installed and tested successfully in Dpup Wheezy 3.5.2.8.Geoffrey wrote:New update patch 027, compiled in Carolina.
bash-4.3.27-1.petCode: Select all
# cd /tmp; rm -f /tmp/echo; env 'x=() { (a)=>\' bash -c "echo date"; cat /tmp/echo date cat: /tmp/echo: No such file or directory #
bash_DOC-4.3.27-1.pet
bash_NLS-4.3.27-1.pet
Frisbee appears to be working with this version
Thanks, Geoffrey.
Code: Select all
foo='() { echo not patched; }' bash -c foo
See: http://lcamtuf.blogspot.co.nz/2014/09/b ... h-now.html
rolf wrote:What does that return?Code: Select all
foo='() { echo not patched; }' bash -c foo
See: http://lcamtuf.blogspot.co.nz/2014/09/b ... h-now.html
Code: Select all
foo='() { echo not patched; }' bash -c foo
bash: foo: command not found
Good. I get that on my ROSA 2012 computer but not on my Puppy 431.Leon wrote:It seems patched.Code: Select all
foo='() { echo not patched; }' bash -c foo bash: foo: command not found

Just compiled bash-3.0.20.pet and is working properlyrolf wrote:As has been conjectured from the beginning, it seems there are further vulnerabilities discovered and a patch published.
On my webserver:
Code: Select all
# foo='() { echo not patched; }' bash -c foo not patched


Edit: uploaded version 3.0.20
Last edited by mavrothal on Thu 02 Oct 2014, 06:05, edited 2 times in total.
== [url=http://www.catb.org/esr/faqs/smart-questions.html]Here is how to solve your[/url] [url=https://www.chiark.greenend.org.uk/~sgtatham/bugs.html]Linux problems fast[/url] ==