maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Shellshock? Maemo? (https://talk.maemo.org/showthread.php?t=93930)

lancewex 2014-09-25 23:29

Shellshock? Maemo?
 
Is Maemo affected?
Thanks.

endsormeans 2014-09-26 00:19

Re: Shellshock? Meemo?
 
hmm..
are you referring to ....Meemo the global virtual goods distributor?
http://www.meemo.me/

or Meemo ...the New york eatery?...been there...good food BTW...
http://www.meemonyc.net/

A referring point would help concerning this ...shellshock?

Copernicus 2014-09-26 00:20

Re: Shellshock? Meemo?
 
Quote:

Originally Posted by lancewex (Post 1440588)
Is Maemo affected?

I think the default shell on Maemo is "ash", provided by busybox. That shouldn't be affected. You would need to have installed Bash onto your machine to be affected, as it is a Bash bug...

endsormeans 2014-09-26 00:23

Re: Shellshock? Meemo?
 
Ah...this is about the bash bug!
...been all over the national news network here (cbc)
lately...

rotoflex 2014-09-26 02:57

Re: Shellshock? Meemo?
 
Go to xterminal
Type bash
Hit enter
If it says "not found", you don't have bash & don't have to worry about this one

gerbick 2014-09-26 03:04

Re: Shellshock? Meemo?
 
I came here for the geek references to how Maemo was misspelled in the title. Go Advanced Edit and edit the thread title before your original question is overlooked.

sulu 2014-09-26 07:11

Re: Shellshock? Maemo?
 
Run this in xterm:
Code:

env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
If the output looks like this then you're vulnerable:
Code:

$ env x='() { :;}; echo vulnerable' bash -c "echo this is a test"
vulnerable
this is a test

I currently don't have my N900 at hand but I'd bet a lot of money that Fremantle's bash is vulnerable (at this moment).
Of course, if you don't have bash installed you're safe.

Whispering Weasel 2014-09-26 07:47

Re: Shellshock? Maemo?
 
hmm seems like i'm affected (n900), I have busybox 1.22.1, is that it that makes is vulnerable?

sulu 2014-09-26 08:01

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by Whispering Weasel (Post 1440617)
hmm seems like i'm affected (n900), I have busybox 1.22.1, is that it that makes is vulnerable?

No, it's your bash version.

Whispering Weasel 2014-09-26 08:16

Re: Shellshock? Maemo?
 
ah, ok . so yes Maemo is affected with Bash version 3.2-0maemo10

Dongle Fongle 2014-09-26 11:33

Re: Shellshock? Maemo?
 
What would be the best way to patch?

wait for an update from community -
get a fix from another linux distribution -
apt-get remove bash?

I have no idea

Thanks

Estel 2014-09-26 17:13

Re: Shellshock? Maemo?
 
It's quite funny, considering how some guy (our own, private version of poettering, if anyone would be in doubt who I'm referring to) tried to push bash into everyone's throat in Maemo Community, calling ash "messybox" and (sucessfuly) pretending busybox-power integration into CSSU.

Yes - if anyone haven't noticed, we still doesn't have busybox-power in CSSU - where it belongs - and need to install it via package that does binary file replacement... Mind this day and big middle finger to you, busybox haters.

/Estel

jellyroll 2014-09-26 18:48

Re: Shellshock? Maemo?
 
1 Attachment(s)
This is the output I had.

reinob 2014-09-26 20:16

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by Estel (Post 1440694)
It's quite funny, considering how some guy (our own, private version of poettering, if anyone would be in doubt who I'm referring to) tried to push bash into everyone's throat in Maemo Community, calling ash "messybox" and (sucessfuly) pretending busybox-power integration into CSSU.

Yes - if anyone haven't noticed, we still doesn't have busybox-power in CSSU - where it belongs - and need to install it via package that does binary file replacement... Mind this day and big middle finger to you, busybox haters.

/Estel

Don't know what your point is. Really. busybox is a MESSYBOX whose only advantage is only visible on severly limited systems -- not the N900.

IMHO bash or dash would be a much saner default. Plus the standard Linux coreutils instead of busybox clones.

And as for security: wait until someone starts looking at busybox. Then all those people having non-updatable appliances running web servers with crappy CGI's running as root (i.e. most routers or NASes) will regret it.

I can't wait to have a working debian on my N900. F*ck Maemo.
(I'm usually more polite, blame it on the Oktoberfest).

freemangordon 2014-09-26 22:41

Re: Shellshock? Maemo?
 
reinob: don't feed the troll, please

shawnjefferson 2014-09-27 06:59

Re: Shellshock? Maemo?
 
Probably the only exploit vector you would worry about would be DHCP. The other vectors are unlikely to affect your n900, such as cgi scripts, restricted ssh shells, etc...

Most of you are probably running the vulnerable version of openssl still which is probably a bigger risk than this.

jukk 2014-09-27 08:01

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by Estel (Post 1440694)
It's quite funny, considering how some guy (our own, private version of poettering,

/Estel

That's a weird comparison. People that are bashing (sic) Poettering for not following the so called Unix philosophy, now finally got their own pure Unix philosophy vulnerability in bash :) ah, well sorry for off-topic...

reinob 2014-09-27 08:05

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by freemangordon (Post 1440740)
reinob: don't feed the troll, please

Sorry. Didn't/don't consider either the message or the messenger as a troll.

The question of busybox vs busybox-power vs GNU is still IMHO a very valid point of discussion. Some day Maemo might actually boot/work with bash as /bin/sh. I think I should work on that. But then again, give me debian or slackware and I'll dump Maemo on the spot :)

Estel 2014-09-27 13:36

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by reinob (Post 1440720)
Don't know what your point is.

My point is that in Maemo, we're still stuck with busybox as /bin/sh, so suggesting (or considering as only one viable possibility) to half-bake a replace by installing bash, instead of putting updated (including security updates) busybox to CSSU, is a big bulls**t.

Especially, that busybox is prime example of core system package that can't be distributed in extras in sane way (the only possibility is via binary file replacement, and you could distribute whole CSSU this way... Except, that it's just plain wrong), yet it's not included in CSSU for bulls**t reasons.

Suggestions to use BASH instead were all too common during busybox-power in CSSU discussion, effectively creating TWO possible attack surfaces, instead of one. Of course bash fanatics were absolutely sure that we won't create 2nd attack surface, as bash is awesome, magic, and 100% secure - which was proven wrong, and such assumption was wrong by design (no matter how secure your software is, it's still 2nd surface for attack). Not to mention being quite unrelated and demagogic (as it's hardly argument against updating our default /bin/sh).
---

Anyway, there is a side effect to this thread, too - suddenly, I lost big portion of respect for some people, that suddenly are able to only use derivatives of "troll" in place of discussion with arguments (and even gain "thanks" for it) - and I bet that it have more to do with pan-maemo's politic, than topic at hand. Well, there is old saying about spending too much time with someone and gaining his traits - I guess some people sticked to joerg on IRC for too long. Pity, perhaps, but well, not the end of the world and s**t happens... Enough OT.

/Estel

szopin 2014-09-27 18:39

Re: Shellshock? Maemo?
 
Sorry, but have to disagree. Seems like you're fighting your personal war thanks to shellshock. Imagine the opposite, vuln in busybox, practically all routers in the world exposed (and N900/non-CMdroids). Someone from bash proponents in CSSU comes in and states: "You see Estel, you're a dum...."
Bash was chosen for its features because this is full linux distro, not embedded system. We can afford running full blown (pun unintended) and featured linux distro with the latest and greatest (gplv3 even), try compiling/packaging some stuff on device and poor-featuredness of busybox tar will jump right at you. Yeah, go ahead and relink gtar and then...

jellyroll 2014-09-28 11:59

Re: Shellshock? Maemo?
 
Will there be a bash update for Maemo?

Estel 2014-09-28 21:03

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by szopin (Post 1440820)
We can afford running full blown (pun unintended) and featured linux distro with the latest and greatest (gplv3 even)

Agreed. But the bash availability on N900 is hardly a replacement for busybox upgrade (and we're stuck with busybox as core /bin/sh, no matter if we like it, or not), it's just nice additional thing to have.

Now, some people argued that we don't need upstream updates to busybox (including security ones) - that busybox-power provides - in CSSU, cause we can install bash, anyway. Which is assumption broken by design, as we can either use bash AND still have ash as core /bin/sh, or only use ASH for everything.

Summing it up, my whole point was that bash isn't "cure for your all shell related needs, cancer, poverty, and all world problems combined", especially on N900. It doesn't substitute busybox updates, and busybox-power SHOULD be part of CSSU. Shame on CSSU maintainers that it isn't as there are no rational/meritocratic reasons for it, only political bash-loving and ash-hating (and letting arrogant buffoons to act as CSSU advisors *waves to joerg*, which fortunately, is thing of the past, already).

/Estel

avidscavenger 2014-10-02 02:56

Re: Shellshock? Maemo?
 
This argument is all very interesting, but can anyone provide a simple answer to the question of whether a bash update is likely to become available, and/or should I try to make one myself?

reinob 2014-10-02 06:59

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by avidscavenger (Post 1441501)
This argument is all very interesting, but can anyone provide a simple answer to the question of whether a bash update is likely to become available, and/or should I try to make one myself?

I don't think anybody runs a priviledged web server with CGI support and bash as standard shell on the N900. So it's not likely that people will be running for the update.

But feel free to do it yourself :)

independent 2014-10-05 00:10

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by reinob (Post 1441537)
I don't think anybody runs a priviledged web server with CGI support and bash as standard shell on the N900.

No webserver but I do have bash, ssh and a DHCP client. So that makes me vulnerable. :(

reinob 2014-10-05 15:49

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by independent (Post 1441888)
No webserver but I do have bash, ssh and a DHCP client. So that makes me vulnerable. :(

If ssh worries you be sure to comment out any AcceptEnv options in your sshd_config

I'm not aware of any DHCP attack vector. Anyway, I don't think *anything* in Maemo, including the DHCP client, require bash (because it's not even installed by default), so you should be "OK".

But again, feel free to compile the latest bash. I'll see if I can do it quickly myself though.

reinob 2014-10-05 18:08

Re: Shellshock? Maemo?
 
1 Attachment(s)
So, here's the latest bash 4.3 with all 29 patches compiled (without NLS) for armel. It doesn't really need anything in terms of dependencies (although it is NOT statically compiled).

Just unpack it and put it in /usr/local/bin or wherever you find it convenient.

PS: now that "we" control TMO, can we please remove these absurd restrictions on file extension and/or attachment size?

Wikiwide 2014-10-07 11:08

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by reinob (Post 1441944)
PS: now that "we" control TMO, can we please remove these absurd restrictions on file extension and/or attachment size?

Quick reply...
Can you imagine the huge, heavy photographs and drawings that will quickly appear here, and overwhelm the storage?..
Seriously, we should ask techstaff about this. Where can we find the current bugs and feature requests of Maemo server? Is there https support in the works?
Best wishes. Thank you!
~~~~~~~~~~~~~~~~~
Per aspera ad astra...

reinob 2014-10-07 13:55

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by Wikiwide (Post 1442207)
Quick reply...
Can you imagine the huge, heavy photographs and drawings that will quickly
appear here, and overwhelm the storage?..
Seriously, we should ask techstaff about this. Where can we find the current bugs and feature requests of Maemo server? Is there https support in the works?

Good points. If at all, I would just hope that we can upload a .tar.gz. Surprising and annoyingly, this is not allowed (zip and gz are OK though for some reason).

And well, maybe a bit more than 800Kb would be fine..

Once techstaff sort their stuff out (if it hasn't been done yet) we could have an idea of how much space we need. I'll happily donate for another HDD or two.

reinob 2014-10-08 14:11

Re: Shellshock? Maemo?
 
1 Attachment(s)
Quick heads up. There's a new patch for bash (#30, dated October 5th). When I get some time I'll post an updated version.

Add. here it is!

Add. It passes all current tests:
Code:

$ curl https://shellshocker.net/shellshock_test.sh | bash
CVE-2014-6271 (original shellshock): not vulnerable
CVE-2014-6277 (segfault): not vulnerable
CVE-2014-6278 (Florian's patch): not vulnerable
CVE-2014-7169 (taviso bug): not vulnerable
CVE-2014-7186 (redir_stack bug): not vulnerable
CVE-2014-7187 (nested loops off by one): not vulnerable
CVE-2014-//// (exploit 3 on http://shellshocker.net/): not vulnerable
$


independent 2014-10-09 01:41

Re: Shellshock? Maemo?
 
A couple of things. This is really cool. However, please remember to
Code:

chmod +x
Being an essential binary we really something to checksum this against.

At least test by bashing into bash after you install it.

I forgot to make this executable and had to boot into rescueos to fix. :eek:

Also, last thing is if, and I aren't %100 sure about this, it seems to work best in installed into /bin rather than /usr/bin. Reason being if you use the special three finger shortcut (shift-ctrl-x) for the X-terminal it seems to crash the phone

shawnjefferson 2014-10-09 03:07

Re: Shellshock? Maemo?
 
upload to extras-devel?

reinob 2014-10-09 07:41

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by independent (Post 1442380)
I forgot to make this executable and had to boot into rescueos to fix. :eek:

Are you using /bin/sh = /bin/bash or what? AFAIK this has never worked with Maemo.
If your using bash as your user shell (in /etc/passwd) then I *suppose* that it should work, but I haven't tried it. I actually don't need or use bash on the N900. The version I've posted is for those who feel the need to have the latest and/or for those who are actually affected by the shellshock vulnerability (i.e. nobody :).

Re. extras-devel. Not me. I once tried to get something there and had to request and account who-knows-where (garage or whatever) and heard nothing ever since. For all I care, the maemo repositories are static and read-only. If I need something that is not there I'll just do it myself and (if I'm nice) post the binary here.

I still don't know if it's a problem of time, money or politics, but something tells me we (if there's a we, a community) should have a repository and a forum and a wiki completely independent of anything we've had in the past. I don't know why we need this "garage" or anything owned/damaged by Nokia or or or.

But anyway, this is off-topic.

pichlo 2014-10-09 09:48

Re: Shellshock? Maemo?
 
That's actually an excellent idea. Self-maintained garage. One less job for the Council to do.

xes 2014-10-09 10:25

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by reinob (Post 1442399)
Re. extras-devel. Not me. I once tried to get something there and had to request and account who-knows-where (garage or whatever) and heard nothing ever since....

Reinob, your contribution is welcome and precious for this community.
Every contribution is welcome!
I don't know which was the problem with garage the last time you tried, but i think that we (techstaff) can help you if something goes wrong at first.

garage - builder - extras is a complex env that i would not define "perfect", most of times, when something goes wrong, it's not about politics but it's something that we can cure with a chown or chmod.

sulu 2014-10-09 12:43

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by xes (Post 1442419)
I don't know which was the problem with garage the last time you tried, but i think that we (techstaff) can help you if something goes wrong at first.

While you're at it, please make it possible to log into the wiki with the forum account or similar.

Currently I get this:
Quote:

Login error
There is no user by the name "sulu". Check your spelling.
And I see no obvious way to create an account for the wiki.

I guess my garage account would work if I had one. But garage requires me to specify my full name. I won't give my real name here and I see no point in making one up. So whenever I wan't to edit the wiki I do it as an IP, which in turn requires me to use TOR or some other obfuscation technique because I don't like to have my IP on show for everyone.

xes 2014-10-09 13:12

Re: Shellshock? Maemo?
 
@sulu
afaik you can create a garage account also without specifing exactly you personal details. I can understand that someone may have real reasons to avoid to expose these details.

reinob 2014-10-09 13:27

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by xes (Post 1442419)
I don't know which was the problem with garage the last time you tried, but i think that we (techstaff) can help you if something goes wrong at first.

OK, I checked. I do have an account in garage, but I once requested upload priviledges (I think it was for rsync), and never got a response.

I used this form: https://garage.maemo.org/extras-assi...tation_request

I have sent another request just now concerning rsync, bash and ngp. As time goes (and if this works reasonably well without wasting a lot of time) I might upload other stuff (like a working nano, newer openssh, etc.)

wicket 2014-10-09 16:00

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by sulu (Post 1442425)
So whenever I wan't to edit the wiki I do it as an IP, which in turn requires me to use TOR

Good luck with that. In an attempt to prevent spam, tech staff have put an aggressive block on both the wiki and bug tracker on IP addresses known malicious activity and these include Tor IP addresses.

I expressed my concerns this thread but they seem to have fallen on deaf ears. Oh well, now I just take it as if the wiki is a non-existent resource.

independent 2014-10-09 17:55

Re: Shellshock? Maemo?
 
Quote:

Originally Posted by reinob (Post 1442399)
Are you using /bin/sh = /bin/bash or what? AFAIK this has never worked with Maemo.
If your using bash as your user shell (in /etc/passwd) then I *suppose* that it should work, but I haven't tried it. I actually don't need or use bash on the N900.

A couple of silly mistakes no doubt. Presented for all to see.
No symlink from bash -> sh. Changed to bash in /etc/passwd for user and root.


All times are GMT. The time now is 00:33.

vBulletin® Version 3.8.8