Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

T-Mobile G1 Rooted

Posted by CmdrTaco on Wed Nov 05, 2008 10:35 AM
from the that-didn't-take-long dept.
An anonymous reader writes "T-Mobile's G1 phone, the first commercially available Android based phone, has been rooted. The exploit is extremely simple to execute, just requiring you to run telnetd from a terminal on the phone, and then connecting to the phone via telnet."
+ -
story

Related Stories

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
More
Loading... please wait.
  • Rooted? (Score:5, Funny)

    by earthcreed (1292180) on Wednesday November 05 2008, @10:40AM (#25642461) Homepage
    This just in, all machines that you have root access on rooted! If you have access to run telnetd you already have root.
    • Re:Rooted? (Score:4, Insightful)

      by deniable (76198) on Wednesday November 05 2008, @11:06AM (#25643237)
      More importantly, if you have physical access to the console, all bets are off.

      News Flash

      Houses are rootable. If you unlock your doors and hang out a 'rob me' sign, people can break in.

      • Re:Rooted? (Score:4, Insightful)

        by Pope (17780) on Wednesday November 05 2008, @11:30AM (#25643889) Homepage

        If the door's unlocked, it's hardly "breaking in," is it?

        • Re:Rooted? (Score:5, Informative)

          by paeanblack (191171) on Wednesday November 05 2008, @11:41AM (#25644211)

          If the door's unlocked, it's hardly "breaking in," is it?

          Yes it is.

          The "Breaking" part of "Breaking & Entering" refers to breaking the plane of entry, not physically damaging anything.

          "Breaking" is not actually a separate action from "Entering". The reason they are used together is for clarity...one word derives from Old English, and the other word derives from French. Writing laws this way was useful when the Normans and Saxons were trying to cohabitate on the same island.

          There are many legal terms constructed the same way:
          Null and void
          Cease and desist
          Last Will and Testament
          Aid and Abet
          Goods and Chattels
          Terms and Conditions
          etc.

      • Re:Rooted? (Score:5, Funny)

        by Koiu Lpoi (632570) <koiulpoi@gm[ ].com ['ail' in gap]> on Wednesday November 05 2008, @11:36AM (#25644057)
        I would honestly bet that a house with a rob me sign would not be robbed. Most burglars would feel it's some kind of trick.
        • Re:Rooted? (Score:4, Funny)

          by Anonymous Coward on Wednesday November 05 2008, @11:39AM (#25644131)

          That reminds me of the van owner that put up a sign saying 'No tools or valuables inside'

          The next morning it had been broken into and the theives had left a note saying 'Just checking'

              • Re:Rooted? (Score:4, Funny)

                by Anonymous Coward on Wednesday November 05 2008, @12:27PM (#25645247)

                No. Needs citation and permanent link to reputable source. We will then run it past the legal department and conduct a full analysis of all facts and observations and, upon filing the requisite forms, of course, only then will we consider your suggestion of "humor". Please allow the standard six to eight weeks for the laugh.

    • Re:Rooted? (Score:5, Funny)

      by neowolf (173735) on Wednesday November 05 2008, @11:13AM (#25643409)

      Agreed. Non-story. This is just stupid.

      Excuse me sir... I would like to hack into your phone. Could you please type this in for me...

      • Re:Rooted? (Score:4, Insightful)

        by Olix (812847) <Olix.shel@gmail.com> on Wednesday November 05 2008, @11:28AM (#25643833)

        To be fair though, lots of people /are/ stupid enough to fall for this kind of thing... consider how well that "I love you" worm or whatever it was did a few years back.

        With the right method, I'm sure you could con people into doing something silly with an Offical-sounding text message, and then exploit it.

        • Re:Rooted? (Score:5, Funny)

          by lysergic.acid (845423) on Wednesday November 05 2008, @12:05PM (#25644747) Homepage

          i dunno. tech support operators have a hard enough time walking the average person through how to run ipconfig on their windows PCs. trying to get the average person to open a terminal in Linux to run anything would be like trying to walk a cow down a flight of stairs.

        • Re:Rooted? (Score:4, Insightful)

          by sexconker (1179573) on Wednesday November 05 2008, @12:23PM (#25645157)

          The BEST ringtones!
          The FUNNIEST jokes!
          REAL horoscopes tailored for YOU!

          Sports! Fashion! Celebrity gossip! Keno numbers!

          Just text FAIL to 37528!

          Sign up now and get a free spinning rim background!

          SPECIAL BONUS for G1 owners!
          After texting FAIL to 37528, open up telnet to receive your mystery gift!

          Text FAIL to 37528, TODAY!

      • Re: (Score:3, Informative)

        by jmorris42 (1458) *

        > Agreed. Non-story. This is just stupid.

        Guess you didn't actually read the material. This shouldn't work but somehow a privledge escalation is allowing a non-root user to invoke telnetd and then to connect from outside and actually get a root shell. So the owner of the hardware is able to break int T-Mobile's software. Oh the horror!

        So far it is more likely to simply get patched instead of developing into a full jailbreak but stay tuned. The camel's nose has entered the tent, it just might be able t

      • Re:Rooted? (Score:5, Funny)

        by Deadplant (212273) <deadplant_ca@@@hotmail...com> on Wednesday November 05 2008, @11:06AM (#25643227)

        in related news, researchers have discovered that if you open a root console on any flavour of linux and stick the keyboard out a window anyone walking by will be able to gain root access to you machine.

        • Re:Rooted? (Score:4, Informative)

          by Anonymous Coward on Wednesday November 05 2008, @11:41AM (#25644199)

          And it also works in the other way... you can put your already rooted equipment into any window, and anybody inside that house will be able to gain root access, and also call the
          police

      • Re:Rooted? (Score:5, Insightful)

        by deniable (76198) on Wednesday November 05 2008, @11:08AM (#25643283)
        Well, yeah. You did run telnet for them. Why else would you run it? Hasn't it been on the list of don't run services for years now?

        The much better question is: why is there a telnetd on the phone in the first place?

        • Re:Rooted? (Score:5, Insightful)

          by Sparr0 (451780) <sparr0NO@SPAMgmail.com> on Wednesday November 05 2008, @11:35AM (#25644027) Homepage Journal

          Because telnetd has some tiny fraction of the system overhead of ssh daemons, even "tiny" ones.

          • Re:Rooted? (Score:5, Funny)

            by cream wobbly (1102689) on Wednesday November 05 2008, @12:08PM (#25644791)

            "System overhead"? Oh please.

            Do try to stay on topic: we're not talking about low-capability embedded devices, we're talking about a cellphone!

          • Re: (Score:3, Informative)

            by ncc74656 (45571) *

            Because telnetd has some tiny fraction of the system overhead of ssh daemons, even "tiny" ones.

            CPU usage for an SSH daemon during an interactive session, while it probably is higher than a telnet daemon, is still low enough (0.005% instead of 0.001%, perhaps?) that it'll most likely get lost in the noise. I have dropbear running on a WRT54GL, and it has no trouble keeping up. The trivial CPU usage is worth the added security. It might crunch a bit more during session setup when it's using public-key encr

  • by Loibisch (964797) on Wednesday November 05 2008, @10:41AM (#25642499)

    ...wasn't this supposed to be an open platform anyway? I don't quite get it.

  • Coral to the rescue (Score:4, Interesting)

    by MightyYar (622222) on Wednesday November 05 2008, @10:41AM (#25642533)

    Coral Cache [nyud.net]

    On a side note... a hyphenated domain name! How retro...

    • by Philosinfinity (726949) on Wednesday November 05 2008, @10:51AM (#25642789)
      It could be worse... I chose a domain name with a double hyphen... aleph--null.com Whenever a web form states that my email address is invalid, i realize my folly just a bit more.
      • by Splab (574204) on Wednesday November 05 2008, @11:13AM (#25643413)

        I've never understood why so many web programmers insist on parsing E-mail addresses, very few are capable of doing it correctly. I usually use splab+someidentification@mydomain.tld - this way I can track where I submitted the address they got - but since programmers insists on parsing the E-mail address they almost always considers + to be invalid.

        Just send the person a confirmation E-mail and bobs your uncle.

            • Re: (Score:3, Informative)

              by GXTi (635121)
              I don't understand why placeholder arguments aren't used 100% of the time a string is placed into a SQL query. It's completely baffling. Were that the case, SQL injection attacks would be totally infeasible, excepting even dumber TheDailyWTF-grade scenarios like having clients send SQL to the server. I suspect that PHP doesn't have them (or makes them harder to use), which would explain why it's such a horrible language.

              As for validating emails, check that there's at least one @ and that the part after th

  • Bad Idea (Score:4, Insightful)

    by TheAmit (1011767) on Wednesday November 05 2008, @10:47AM (#25642653)
    Waiting to see how many non-Linux types try this and get in trouble. Its not a good idea to change permissions on sh. All other apps you run on your phone and use sh are now running as root [:)] I would be very scared of this setup. Going to enjoy this
  • Wait...so.... (Score:4, Insightful)

    by kcbanner (929309) on Wednesday November 05 2008, @10:48AM (#25642699) Homepage Journal
    The user...has to run telnetd...as root...how...how is this an exploit? Maybe its more complex than this but the site is currently 503ing for me.
    • Re:Wait...so.... (Score:4, Informative)

      by MrMr (219533) on Wednesday November 05 2008, @10:58AM (#25643005)
      No it's not more complex. The curious bit is that telnetd appears to set uid=0 after login, which allows you to make a setuid root shell.
    • by Animats (122034) on Wednesday November 05 2008, @11:15AM (#25643477) Homepage

      It's apparently weirder than that. Running "telnetd" as an ordinary user apparently allows remote logins as root. This happens even though the "telnetd" executable does not apparently come with permissions set-UID to root. If that's correct, there's a security hole somewhere else that's being used by accident here. Is "login" a set-UID program on Android phones?

      (As a robotics guy, I hate the name "Android" being used for a telephone. It's the worst choice since "U.S. Robotics" which ended up as a modem company.)

      • by SnowZero (92219) on Wednesday November 05 2008, @12:07PM (#25644783)

        Just about everyone in the robotics community calls them humanoid robots anyway. "Android" and "droid" are pretty much confined to sci-fi, and by the time we have real androids, I'm pretty sure this phone OS will be a thing of the past. Sure, Ishiguro's current work in this area is pretty interesting, but even those robots are only mistaken for humans from a distance, and they aren't mobile.

  • by NitroWolf (72977) on Wednesday November 05 2008, @10:51AM (#25642777) Homepage

    This is like saying something is "bricked" when it's just a bad firmware flash that can be fixed.

    The phone isn't rooted. Rooted means someone gained root access through an exploit and/or installed a root kit. Running telnetd and then connecting as root is a normal method of logging in, no exploits required.

    Or are they saying every UNIX system that has a method of remote access is rooted?

    • by Anonymous Coward on Wednesday November 05 2008, @11:01AM (#25643093)

      Well, I found an exploit to alter the root password on Unix systems. It's really simple. You just login or su to root, then run the command 'passwd'. Works every time.

    • by omeomi (675045) on Wednesday November 05 2008, @11:09AM (#25643301) Homepage
      The phone isn't rooted. Rooted means someone gained root access through an exploit and/or installed a root kit. Running telnetd and then connecting as root is a normal method of logging in, no exploits required.

      Well, given that it's a device that isn't designed to be root-accessible by the user, this did require somebody to do something that the manufacturer didn't intend in order to gain root access.
        • Re: (Score:3, Informative)

          by Eric Smith (4379)
          Android does NOT run everything as root. They have a security model that uses separate user ids for many things, and root for almost nothing. When you start the telnetd, it is as a non-root user, and the telnetd is not setuid. However, when you connect to the telnetd from a telnet client, you get a root shell. Something extremely weird and/or broken seems to be going on in there.
  • by LWATCDR (28044) on Wednesday November 05 2008, @11:06AM (#25643201) Homepage Journal

    What???
    Telnetd is one of those things that should just be deleted from every system that it is on.
    Just use SSH folks.

  • by Idimmu Xul (204345) on Wednesday November 05 2008, @11:47AM (#25644365) Homepage

    The point of this exploit isn't so you can remotely hack other people's phones, it's so mobile hackers can get to a lower level than Android permits users to do, which will allow them to flash the phone with unsigned custom updates and what not and customise their phone more.

    People should really read the articles and smarten up.

    • Re: (Score:3, Funny)

      by Anonymous Coward

      I claim this first root post for Spain!

    • Re: (Score:3, Interesting)

      by ColdWetDog (752185) *

      When I found this I didn't even bother posting it to xda for a couple days thinking it was so obvious that it had to be intentional/known.

      Guess other people were in fact interested!

      Next time, just run out and patent the idea. You could make some money.

    • Re: (Score:3, Informative)

      by amorsen (7485)

      Does this mean that telnetd is setuid root, or does it mean that you already have to have root to get root?

      Neither. That is why this article is news.