Slashdot Mirror


.Mac Webmail Security Hole Allows Arbitrary Access

TexTex writes "Apple's release of .Mac brings their webmail system to the front as one way for .Mac users to access their email (previously webmail was in beta under iTools). However, it seems the URLs that Apple's scripting uses point directly to individual messages rather than requiring you to log in first. So I'm able to type any message's unique URL from any computer and read the contents, regardless if I'm a user of .Mac or not, and without logging in. MacFixIt has a full report of one reader's findings." While the URLs may not be easy to guess, they will show up in referer logs if a webmail user clicks a link in an email to go to another web site.

40 comments

  1. How quick to fix? by Montreal · · Score: 1

    They did pretty well on the Software Update security flaw - how long do you think they will take to fix this, given that it is a *ahem* Premium Service?

    1. Re:How quick to fix? by rjung2k · · Score: 1

      According to MacFixIt, it's fixed.

  2. Been there, done that by torinth · · Score: 3, Informative

    I vaguely remember something like this happening with Hotmail about 2 years ago. Somebody even figured out how to generate the URL's given a username, so you could go and read anybody's hotmail if you wanted to. The hole was probably a little different than this, but it's along the same lines.

    -Andrew

    1. Re:Been there, done that by sg3000 · · Score: 5, Funny
      I vaguely remember something like this happening with Hotmail about 2 years ago. Somebody even figured out how to generate the URL's given a username, so you could go and read anybody's hotmail if you wanted to. The hole was probably a little different than this, but it's along the same lines.
      No, this is a completely different situation. For one, Hotmail is free, but .Mac users pay for the privilege of this security hole.
      --
      Insert simplistic political, ideological, or personal proselytization here.
    2. Re:Been there, done that by Large+Green+Mallard · · Score: 2

      The hotmail one was due to the canadians taking over

      you could use "eh" as anyone's password and it would work.

      I'm serious too :> News article here

      Thoose MS Hoosers!

    3. Re:Been there, done that by Anonymous Coward · · Score: 0

      No it is different to hotmail's.

      The url is in the form of random garbase (url based session management). Hotmail was a poor cgi with parameters on the url easily changeable.

      Not the same in the slightest.

  3. Changed expectations by bpbond · · Score: 1

    Guess what, Apple? This would have been unacceptable in any case, but now that you're charging $100/yr for this service, customers (no longer just "users") or going to start being more demanding about service, reliability, and security. It's the flip side of the coin, almost literally.

    --
    "Science is a tribute to what we can know although we are fallible" -Jacob Bronowski
  4. quite a hole by smileyj68 · · Score: 1

    I've not tested this yet on other random numbers but that constitutes quite a hole. I'd imagine Apple will be quick to fix it though...they're getting enough media flak for charging for the service now.

    1. Re:quite a hole by sg3000 · · Score: 5, Funny

      > I've not tested this yet on other random numbers but
      > that constitutes quite a hole. I'd imagine Apple will be
      > quick to fix it though...they're getting enough media
      > flak for charging for the service now.

      Acutally, with Apple's current track record, they'll make a fix, but to get it, you have to pay an extra $29/year to upgrade to a "premium" account. Luckily, they'll bundle a rock that keeps tigers away (a $59 value), so it will still be a good deal!

      --
      Insert simplistic political, ideological, or personal proselytization here.
    2. Re:quite a hole by mbbac · · Score: 1

      Right...

      Just like the fix for Software Update that came less than a week after the exploit was published (and Apple wasn't even contacted first).

      Apple has a good track record for fixing the limited security issues that have been exposed. I'm confident this will be fixed in less than 5 days.

      --

      mbbac

    3. Re:quite a hole by Anonymous Coward · · Score: 0

      Hahaha, it'd be funny if it were..... true

  5. Referer-Headers are evil by Anonymous Coward · · Score: 1, Interesting

    Is there a good reason to have referer-headers these days? As far as I can tell they are only abused for locking people out and discovering information that should not be discovered. Yes, the .mac implementation is asking for trouble with or without referer headers, but still...

    1. Re:Referer-Headers are evil by chrismear · · Score: 1

      Well, if you run a website, they're pretty useful for finding out how people are getting to your site, what they're searching for to get to it, seeing which big site is linking to you and sapping all your bandwidth, etc. etc. Those are just off the top of my head.

      Of course, the main reason is that, without referer logs, you'd never have sites like Disturbing Search Requests.

    2. Re:Referer-Headers are evil by Senjaz · · Score: 3, Interesting

      They can be useful...

      1) If a page normally displayed within a frame set is navigated to from outside of the site it would not appear within the frame set. The page would be without its main form of site navigation.

      By checking the referrer header in javascript you can cause the page to be reloading within the frame set. This is one way you can repair frame sets.

      2) The referrer header allows a page author to see who is linking to him. A useful statistic.

      3) You can set up a redirect on your site so people linking from slashdot end up seeing google's cached version of your site so you don't get Slashdotted.

      Just some things of the top of my head, there are probably more legitimately useful things to use it for.

      --
      Don't blame me - this .sig had steal me written all over it.
    3. Re:Referer-Headers are evil by Anonymous Coward · · Score: 0

      1) can be replaced with a method which does not rely on the referer header. In fact this is the first time that I read someone does it like that. 2) sounds like a nice idea at first, but why should the page author know? It's more vanity than anything else. 3) locks people out. Not in the worst way imaginable, but effectively you're saying: Don't link to me from Slashdot (because you're not going to serve pictures).

    4. Re:Referer-Headers are evil by Anonymous Coward · · Score: 0

      I use referrer headers to put the top 5 links from for each page on my site. Instanto two-way links. Sure, it could be abused, but it isn't.

  6. Apple and security by theolein · · Score: 4, Interesting

    As other's have pointed out Apple will take some flak because of this because of the move to a subscription of $100/year for the .Mac stuff. Apple has been good about responding to security problems generally but they will also have to realise that the renewed popularity of the Mac and OSX is going to atract some "insects" to the light, so to speak. This is the same hole as Hotmail had about a year ago and Apple would be advised to wake up and be more careful in future.

    At MacFixit, the also point out that Apple's German version of the webmail service is so badly translated (archiv does not mean trash in English, Apple) and I find it Ironic that the info and post is on MacFixit, a site whose excellent service to the Mac community got it blacklisted by Apple at the last BS MacWorld NY.

    Once again Apple: wake the fuck up.

  7. Shouldn't take long. by PastorOfMuppets · · Score: 1

    As I understand it, the problem is that they've got WebObjects storing session information in the URL instead of using cookies. Should be an easy fix, but then again, I know jack sh*t about WebObjects.

    --
    If you don't have anything nice to say, shut up you stupid prick.
    1. Re:Shouldn't take long. by Anonymous Coward · · Score: 0

      WO Sessions timeout after a short time, so the URI will be valid for maybe 15 minutes. A security hole nonetheless!

  8. Hmmmm. by usr122122121 · · Score: 4, Funny
    Let me get this straight, Apple doesn't know how to use WebObjects correctly?

    Someone call Alanis Morissette, this is the real thing.

    --

    -braxton
  9. free... for the life of the product. by Anonymous Coward · · Score: 0

    iTools is dead. It's been reborn as .Mac for $100 per year. Take it if you want it, otherwise go get a Yahoo or Hotmail account.

    You thought YOU had free email for YOUR life Ha... Oldest sales trick in the book... or one of anyway.

  10. NOT a security hole. by Saithier · · Score: 3, Informative

    A little research is usually good, and a basic understanding of how WebObjects works usually helps. When you login to a webobjects app (webmail in this case) you get a unique session id that becomes part of the url and is passed to the app with every transaction. This is how it identifies the user. This session id is only used once. If the user logs out, and logs in again, they get a new session id. What is happening in this case is that whomever discovered this "security hole" copied the url to the email, did not logout of webmail, quit the browser (or opened a different one) and pasted the url in there, voila, the email shows up. However, if (s)he clicked the logout button before attempting to open the url it would not have worked. Try it yourself to verify if you don't believe me.

    Cheers

    1. Re:NOT a security hole. by Anonymous Coward · · Score: 0

      How does that make it "not a security hole"?! If I send you an email with a link in it to my webserver, and you click the link, my webserver logs have your session key! This is a huge security hole. Session keys should be stored in cookies, and other mechanisms should be used. A different UserAgent string should have alerted webobjects that something's up too. As should a different IP...

    2. Re:NOT a security hole. by scd · · Score: 1

      So if someone guesses the URL when I'm logged in, they can read my email. Less likely, but a security hole nonetheless

    3. Re:NOT a security hole. by Thr34d · · Score: 1

      Usually you also tie the session ID to an IP address so that the session ID is only valid if coming from that IP.

      Or, at least that's how I implement stuff like this.

      --
      -- This space intentionally left blank.
    4. Re:NOT a security hole. by derubergeek · · Score: 1

      So what do you do for users behind a NAT firewall or running through a load balanced proxy server? IPs can, and oftentimes do, change from one click to the next.

      --
      Trust me. This is an inactive account. Regardless of what the /. bean counters might report.
    5. Re:NOT a security hole. by valmont · · Score: 2
      Well it may become more of an issue with HTTP_REFERER http header which is the URL the user was on before clicking a link.

      If a user reads a malicious e-mail i sent which has link to somewhere on my web server, if i happen to be tailing my logs at that very moment, chances are i can turn around and paste their referrer URL into my own browser and be reading their e-mail.

      But that's an issue with URL-based session persistence/authentication tracking overall. This should at the very least be coupled with checking against the user's IP address.

      But a Cookie-Based session persistence scheme would seem more appropriate/secure in this case.

      I do hope Apple also took care of client-side scripting vulnerabilities. mmMMm.

  11. Lets all Bash Apple! by BitGeek · · Score: 5, Insightful

    Yet another excuse to Bash Apple.

    This is silly. First off, the URL is only valid for 15 minutes or so.

    Secondly, it is such an easy fix, I wouldn't be surprised to find out that it isn't already fixed and implemented. All they have to do is check the ip address of the machine making the request, or move to cookies for session info. Or, better yet, go to SSL.

    I can understand people being pissed about having to pay for ,Mac-- people are cheap SOBs in general. Including me. They misexecuted this one.

    But to have the highest moded post in this discussion being a straight out bash calling for Apple to "wake up" is absurd- and ignores the fact that they have long been delivering the best value for the money of any computer maker out there. They don't charge for iTunes,($30 worth), iMovie ($20 worth to me), Quicktime ($20 worth to me - I get pro features by writing my own player, the codecs are worth $20 to me easily.) iCal or iSync, $25 and $5 respectively. Mail.app, $25, Deve environment is worth $300, Sherlock3 is worth $30, iDVD $40 worth..... so in a sense, they've already paid for my first seven years of .Mac by giving me software worth that much *to me*. And I didn't even include iPhoto, or the FCP and Cinema tools discounts that I get for being a Mac user.

    If I'd had to buy that software retail it would have cost more than the values I've put down for it.

    If they continue to deliver free apps,and add value to the one's already out there -- something they've shown a willingness to do, then I continue to come out ahead.

    And to top it all off, if I wanted to, I didn't HAVE to pay for .Mac.

    The upgrade price of jaguar for current 10 users is a bit annoying, though. They add a lot and I understand why they're charging... but it should be $70 if you've already bought the box retail, as I have. (But, its easy for me to say since, as a developer, they'll send it to me anyway. Course that cost me $500, but this is just another $129 discount I'm getting, on top of the $2,000 in other discounts I've already gotten.)

    Apple treats its people well. Cheapscates will always whine when you try to charge for something that was free...while they happily use iTunes and don't pay for it and give it no value.

    Thats one downside to opensource-- its played into the pricing psychology discovered long ago. People will value something based on what you're asking for it. Ask $700 for a piece of software and they'll think its a great deal if they get it for $500. Ask $500 for the SAME SOFTWARE and they'll think its too expensive nad your sales are lower.

    Give away software for free, or internet services for free, and nobody pays for them-- which is why nobody's got a successful subscription service on the net (except for a couple situations.)

    Apple thought the added value of growing the userbase would offset the costs-- but it didn't, the costs were absurd, and so they are solving hte problem. Much as I hate to pay for .Mac, even though I'm getting a great deal at $50 and have lots of free software to balance it out, I would rather have them do this than have them eliminate the service.

    --
    Yeah, and you guys panned the ipod too: http://apple.slashdot.org/article.pl?sid=01/10/23/ 1816257
    1. Re:Lets all Bash Apple! by discogravy · · Score: 2
      This is silly. First off, the URL is only valid for 15 minutes or so.

      This does not make it OK, or a "lesser" offense. If you really think so, lend me your credit card number for 15 minutes, I'd like a new Mac myself.

  12. I tested the hole and hacked some guy's account by BlackBolt · · Score: 4, Funny

    From - Tue Jul 23 13:10:54 2002
    X-Mozilla-Status: 0001
    X-Mozilla-Status2: 10800000
    Message-ID: 3D3C8A0B.3160711 @ mac.com
    Date: Tue, 23 Jul 2002 13:10:34 -0400
    From: SexySteve33 stevejobs@mac.com
    User-Agent: Mozilla/5.0 (MacOS6; U; en-US; rv:1.0.0) Gecko/20020530
    X-Accept-Language: en-us, en
    MIME-Version: 1.0
    To: "Michael Dell" bigcheez@dell.com
    Subject: Please UNSUBSCRIBE ME from your Mailing List
    Content-Type: multipart/mixed;
    boundary="------------080203142303090106000203"

    This is a multi-part message in MIME format.
    --------------080203142303090106000203
    C ontent-Type: text/plain; charset=us-ascii; format=flowed
    Content-Transfer-Encoding: 7bit

    Mister Dell,

    FOR THE THOUSANDTH TIME, "DUDE, I *AM NOT* GETTING A DELL"!! IF I SEE THAT STEVEN IDIOT ONE MORE TIME SMILING STUPIDLY AT ME FROM MY INBOX I'M GONNA SNAP! SPAM ME ONE MORE TIME AND I WILL COME DOWN THERE AND RAM YOUR GODDAMN "DULL LATIDUDE CRAPTOP" UP YOUR FAT WINTEL ASS!!

    NOW REMOVE ME FROM YOUR EMAIL LIST!!!!!!!!!!!!!!!!!!!!!!1

    I MEAN IT - YOU SEND ME ONE MORE DELL SPAM AND I'M SENDING YOU THE ENTIRE COLLECTION OF SWITCH ADS IN HIGH-QUALITY QUICKTIME FORMAT.

    Sincerely,
    Steve

    "Michael Dell" bigcheez@dell.com wrote:

    > How Would YOU feel behind the wheel of a brand new grey plastic laptop?
    > Dell has a special one-time only deal on our fiery hot new P4 laptops,
    > guaranteed to run twice as hot as the old ones!
    >
    > We see by your customer profile that you have never had the pleasure of owning
    > a Dell. We would like you to switch! Now is the time for us as a wonderful vendor
    > and you as a potential victim to get together and make sweet financial love.

    [snipped in disgust]

    BlackBolt

    1. Re:I tested the hole and hacked some guy's account by Anonymous Coward · · Score: 0

      LOL! You crack me up. I recently wrote a letter like this to some stock trading idiots who were spamming me since forever.

      Sometimes, "Unsubscribe" in the header line just isn't enough. ;-)

      Marco

  13. they fix it!! by Anonymous Coward · · Score: 0

    I was using Webmail and was kicked out. After trying to login again I was able to get back to Webmail and this security hole is gone now...

    One thing I don't get in this thread is all the talk about the referer url : did you look at webmail URL when you are reading a mail ?

    webmail is not exposing the referer URL : it's using a redirection for every link like : http://webmail.mac.com/redirect

  14. Please re-file this article by mistermoonlight · · Score: 1
    under the Freaking-out-over-FUD department.

    Just because you don't want to pay for it doesn't mean you have to spread ill-researched crap about it.

    I'm keeping mine because I like the features. Roughly $8/mo isn't much to ask.

  15. Now fixed by BoVLB · · Score: 1

    Macfixit are now reporting that the security hole is fixed:

    Entering the URL of an e-mail message generated by .Mac's Webmail function on another computer now results in redirection to the .Mac home page; rather than displaying the private message.

    Apple is not alone is embedding a session key into the URL. Users should be aware that passing one such a URL will (at least for a short while) enable others to use their login.

  16. The hole has already been patched by blukens · · Score: 2
    Less than 24 hours later, this hole is now gone. Apple seems to be getting pretty good at coming out with fixes quickly.

    Here's MacFixIt's summary:

    Apple has apparently resolved the potentially serious .Mac security hole we first reported yesterday.
    Entering the URL of an e-mail message generated by .Mac's Webmail function on another computer now results in redirection to the .Mac home page; rather than displaying the private message.
  17. Proxy logs too. by Shanep · · Score: 2

    No doubt.

    Is Mac webmail encrypted?

    --
    War crimes, torture, lies, illegal spying... Would someone give Bush a blowjob, already, so he can be impeached?
    1. Re:Proxy logs too. by Alex+Thorpe · · Score: 1

      Only the login screen is encrypted.

      Sounds like a fast fix. They patched it before I'd heard about it.

      --
      "Common Sense Ain't" -Unknown
  18. Why don't you just use a REAL email service... by Anonymous Coward · · Score: 0

    ...instead of screwing around with .mac security holes? Hotmail has never had this type of problem!

    1. Re:Why don't you just use a REAL email service... by Anonymous Coward · · Score: 0

      Right....lmao... Hotmail is a big hot hole in itself. It has/had MAJOR security loopholes. Spend a couple of days on it and you know what i mean ;).