Slashdot Log In
Bug In Android Passes Keystrokes To Root Shell
Posted by
Soulskill
on Sat Nov 08, 2008 01:18 PM
from the watch-what-you-type dept.
from the watch-what-you-type dept.
pasokon writes "ZDNet reports on an Android bug in T-Mobile G1s with early versions of the firmware: 'When the phone booted it started up a command shell as root and sent every keystroke you ever typed on the keyboard from then on to that shell. Thus every word you typed, in addition to going to the foreground application would be silently and invisibly interpreted as a command and executed with superuser privileges. ... open the keyboard tray on your G1, ignore anything you see on the screen, and type these 8 keystrokes: (enter)-r-e-b-o-o-t-(enter). Poof, your phone will reboot.'"
Related Stories
[+]
Hardware: Debian Running On the T-Mobile G1 127 comments
chrb writes "Following hot on the heels of the G1 root exploit, Jay Freeman now has Debian ARM running on the G1. The RC30 update has fixed the root hole, but with utilities and images already available to replace the flash image with your own signed code, it looks like the manufacturer-hacker arms race is on."
This discussion has been archived.
No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.
This is simply mind-boggling. (Score:5, Insightful)
I can't imagine how or why anyone could accidentally pipe all user input through a root shell. This is one for the WTF of the decade.
-jcr
Re:This is simply mind-boggling. (Score:5, Informative)
Read this:
http://android.jim.sh/index.php/ConsoleShell [android.jim.sh]
Looks like debugging code left behind...
Parent
Re:This is simply mind-boggling. (Score:5, Informative)
Parent
Re:This is simply mind-boggling. (Score:5, Funny)
If you want to keep from fubar-ing your G1 by typing in the wrong stuff accidentally, just type "cat [enter]" first thing when you power on the device, and it will be defused from then on. All input will be harmlessly filed away to stdout.
Wait--you're missing the big picture.
Jailbreak the phone!
Woo! We now have root access! We can hax0r the phone and load our own custom applic...what? Oh. Shit. Wrong phone. I'll wait for the next iPhone article.
Parent
Re:This is simply mind-boggling. (Score:4, Informative)
You mean defused until you type Control-z, Control-d or Control-c, right?
Nope. I really do mean from then on. Read the various write-ups to understand why.
And for bonus points, see if you can find your phone's "control" key.
Parent
Re:This is simply mind-boggling. (Score:5, Funny)
This is obviously bad for Apple. I mean if the iPhone weren't all like, locked down, and, um....
Yeah, anyway, the iPhone is done for, no question. I mean you can't even GET to root shell on an iPhone, and here it is a standard feature on Android! Mind-boggling indeed!
Parent
Re:This is simply mind-boggling. (Score:4, Funny)
BTW what's this 'Android' you're talking about?
Parent
Re:This is simply mind-boggling. (Score:5, Insightful)
I can perfectly well imagine someone purposely piping all the user input to root shell for easy debug and development, then forgetting to disable it in the release version.
Parent
Re:This is simply mind-boggling. (Score:4, Informative)
Parent
Re:This is simply mind-boggling. (Score:5, Informative)
The latest OTA update is RC30, which patches the issue (I confirmed this on my G1).
Parent
Scary (Score:5, Funny)
Imagine the scamming possible: "reply to this text message with the access code telnetd for a chance to win $1000!"
Confluence (Score:5, Funny)
Suddenly, the memory-and-keystroke-saving command names of the past combine with the keystroke-saving text-speak of the present to create the nightmarish user interaction bugs of the future.
Re:Confluence (Score:5, Funny)
The extraordinary synergistic elements of modern input paradigms combined with the forward thinking interactivity of the past pushes the envelope of tomorrow's technology to new heights.
Parent
reboot (Score:4, Funny)
doesn't wo
Open source, remember? fix already out (Score:5, Informative)
Re:Open source, remember? fix already out (Score:5, Insightful)
Parent
Re:Open source, remember? fix already out (Score:5, Interesting)
Bingo - You won't see this sort of turnaround time for a fix for the iPhone.
and this is why FOSS is a champion to me - the community fixes the issue and everyone else can check the fix to make sure it's not malicious.
And this is why all gov't entities in the USA should use FOSS. The people/community as a whole can do a better job of keeping the government secure than corporations can.
Parent
Re: (Score:3, Insightful)
Re: (Score:3, Insightful)
I am a programmer and I am entirely and absolutely dumb-struck by this revelation.
That is absolutely the most asinine debug method I have ever head and I am seriously wondering if it was an intentional backdoor.
Never, Ever send random commands to a shell. Hell, we are talking a unix base, there are hundreds, of not thousands of 2 and 3 letter functions which do 'something' and a significant number of them are not harmless. I realize the phone is not likely to have all of them, but it will have a number of t
Re: (Score:3, Insightful)
Re: (Score:3, Interesting)
python -c 'sys,time=__import__("sys"),__import__("time"); time.sleep(3); beepn = lambda x: [(sys.stdout.write(chr(7)), sys.stdo
Re: (Score:3, Interesting)
Life under the thumb of cellular phone companies.. (Score:5, Interesting)
Are we really that messed up as a society?
If I type "Reboot" and the device actually reboots, doesn't that mean it's working?
Re:Life under the thumb of cellular phone companie (Score:5, Insightful)
Not when it reboots as a result of you including the reboot command into, to pick a ramdom example, the text of a comment that you are posting to Slashdot.
Parent
Re:Life under the thumb of cellular phone companie (Score:5, Funny)
Parent
Re: (Score:3, Insightful)
If that was the iPhone slashdot users would be going ballistic right now - and rightly so.
Re:Life under the thumb of cellular phone companie (Score:5, Funny)
Instant karma's a bitch.
Parent
A Conversation (Score:5, Funny)
Re:A Conversation (Score:5, Funny)
Parent
Re: (Score:3, Funny)
funny yes, but the shell is already root so there is no sudo necessary.
Re:A Conversation (Score:4, Funny)
A relative to little Bobby Tables [xkcd.com] perhaps? ;-)
Parent
Seriously Google... (Score:4, Interesting)
I'm starting to get a little suspicious, to be frank. You've existed for many, many moons, Google...you have over 20,000 employees. You have computing capacity that's normally limited to that of small countries. Shouldn't you be a little further along by now?
Re: (Score:3, Interesting)
I have read the headline as "Android allows remote root access" and was like "Not a big surprise" immediately.
Ordinary people, not just techies got way paranoid about Google and such bugs only serves to validate them.
People modding you as troll should understand what Android is supposed to race with. Damn secure, stable, 200 million installed Symbian which is soon to be open source and Windows Mobile by the mafioso style company Microsoft which gets huge support from their Windows desktop dominance. Lets no
Scary (Score:4, Interesting)
I must be tired (Score:3, Funny)
Re: (Score:3, Funny)
I am typing this from my Android. I have tried this and I don't have any pr
NO CARRIER
Nah it'll never work (Score:3, Insightful)
shred won't be installed.
cat /dev/urandom > /dev/hda is far more likely to work.
HTH
Re: (Score:3, Interesting)
While true, you're not raising the bar much. I don't think anyone has managed to fit an IDE drive into the phone yet.
Re: (Score:3, Funny)
Re: (Score:3, Funny)
Re:False (Score:5, Informative)
I restarted my phone manually, and tried this on a fresh boot. My phone did immediately restart. Yikes.
Parent
Re: (Score:3, Interesting)
Try this:
echo hello | passwd --stdin
Free root?
You might want to save passwd before doing this, though ;-)
Re: (Score:3, Insightful)
Re:Easier than the iPhone (Score:5, Funny)
Parent
Re:Easier than the iPhone (Score:4, Funny)
In the name of all that is holy, who has a file matching *.* in their root?!
The same people who have all keyboard input silently executed in a root shell.
Parent
Re: (Score:3, Interesting)
Re:Easier than the iPhone (Score:4, Funny)
Good. You should never enter a command you don't understand. I'm all for raising the bar above water level.
Parent
Re: (Score:3, Funny)
I'm beginning to suspect it could be intentional for free advertising at this point.
Only if they're advertising iPhones or BlackBerrys.
Re: (Score:3, Interesting)
Their install process on OS X (Google Desktop) has horrified people so much that there is article about it on Daring Fireball, Gruber's blog.
http://daringfireball.net/2007/04/google_desktop_installer [daringfireball.net] , especially the part where it messes with /System (shouldn't even go there unless you code kernel extensions)
Their recent Chrome install process on Windows is also a horrible way of doing things,
http://robmensching.com/blog/archive/2008/09/04/Dissecting-the-Google-Chrome-setup.aspx [robmensching.com]
If you notice, they are all p
Re: (Score:3, Interesting)
Why is everyone assuming that having root on your own phone is a security bug? I mean it's odd that it's exposed there, but it's your phone. A bug, sure, but a big security issue? Not really. So someone with physical access to the phone can theoretically hack into it. But that's always the case.