SliTaz SliTaz Forum

You are not logged in.

#1 2014-10-02 08:19:28

hackdorte
Member
Registered: 2014-06-05
Posts: 83

Bash Security

Hi. I have a question.

The Bash package for slitaz 4 already has the security patch?

Or we have to apply them manually?

Offline

#2 2014-10-02 09:50:10

sixofeight
Member
Registered: 2013-07-02
Posts: 234

Re: Bash Security

Well,I'm still using Slitaz4 with the ash-shell which seems not to be affected.

For bash the headlines state everything through 4.3 is affected.

Try this commands and you will see:

env x='() { :;}; echo vulnerable' bash -c 'echo hello'

test="() { echo Hello; }; echo gehackt" bash -c ""

good luck.

Offline

#3 2014-10-02 11:16:35

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: Bash Security

See http://hg.slitaz.org/wok-stable/rev/853a028198ee

tux@slitaz:~$ cat /etc/slitaz-release

4.0

tux@slitaz:~$ env x='() { :;}; echo vulnerable' bash -c 'echo hello'

bash: warning: x: ignoring function definition attempt

bash: error importing function definition for `x'

hello

tux@slitaz:~$ test="() { echo Hello; }; echo gehackt" bash -c ""

bash: warning: test: ignoring function definition attempt

bash: error importing function definition for `test'

Offline

#4 2014-10-02 23:26:20

hackdorte
Member
Registered: 2014-06-05
Posts: 83

Re: Bash Security

@sixofeight, @Bellard

I depend on the bash to run some programs in the system.

I did the tests and everything works perfectly.

Thanks for all replies.

Offline

#5 2014-10-08 08:50:17

sixofeight
Member
Registered: 2013-07-02
Posts: 234

Re: Bash Security

Here is a script that claims to test bash for all so far known vulnerabilities.

It checks against 6 public vulnerabilities.

https://github.com/hannob/bashcheck

Offline

#6 2014-10-08 16:03:35

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: Bash Security

There is my result

Testing /bin/bash ...

GNU bash, versione 4.3.30(3)-release (i686-pc-linux-gnu)

Variable function parser pre/suffixed [%%, upstream], bugs not exploitable

Not vulnerable to CVE-2014-6271 (original shellshock)

Not vulnerable to CVE-2014-7169 (taviso bug)

Not vulnerable to CVE-2014-7186 (redir_stack bug)

Test for CVE-2014-7187 not reliable without address sanitizer

Not vulnerable to CVE-2014-6277 (lcamtuf bug #1)

Not vulnerable to CVE-2014-6278 (lcamtuf bug #2)

and this is pack http://www.freefilehosting.net/bash-43

warning, work for me, but the receipt is not complete.

Offline

#7 2014-10-08 22:43:11

sixofeight
Member
Registered: 2013-07-02
Posts: 234

Re: Bash Security

I installed bash (slitaz 4), using SliTaz-Panel,like an average Joe would do it.

Test results:

root@slitaz:/home/tux# ./bashcheck

Testing /bin/bash ...

GNU bash, version 4.2.0(2)-release (i486-slitaz-linux-gnu)

Variable function parser active, maybe vulnerable to unknown parser bugs

Not vulnerable to CVE-2014-6271 (original shellshock)

Vulnerable to CVE-2014-7169 (taviso bug)

Vulnerable to CVE-2014-7186 (redir_stack bug)

Test for CVE-2014-7187 not reliable without address sanitizer

Vulnerable to CVE-2014-6277 (lcamtuf bug #1)

Not vulnerable to CVE-2014-6278 (lcamtuf bug #2)

..oops...

Offline

#8 2014-10-09 07:03:05

bellard
Administrator
Registered: 2011-03-28
Posts: 657

Re: Bash Security

Try this:

# tazpkg recharge

# tazpkg get-install bash

See the bottom of http://cook.slitaz.org/stable/cooker.cgi?pkg=bash

Testing /home/slitaz/wok/bash/install/bin/bash ...

GNU bash, version 4.2.53(2)-release (i486-slitaz-linux-gnu)

Variable function parser pre/suffixed [%%, upstream], bugs not exploitable

Not vulnerable to CVE-2014-6271 (original shellshock)

Not vulnerable to CVE-2014-7169 (taviso bug)

Not vulnerable to CVE-2014-7186 (redir_stack bug)

Test for CVE-2014-7187 not reliable without address sanitizer

Not vulnerable to CVE-2014-6277 (lcamtuf bug #1)

Not vulnerable to CVE-2014-6278 (lcamtuf bug #2)

Offline

#9 2014-10-09 10:24:15

sixofeight
Member
Registered: 2013-07-02
Posts: 234

Re: Bash Security

Hi Bellard

Yup, Patch.level-53 = Problems solved...

and no segfaults anymore in /var/log/messages...

well done....thanks a lot..

Slitaz 4 User...updating..NOW...;-)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]