News for hackers. Stuff that matters.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by way66 on Wednesday January 22, 2014 @01:40AM (#7101188)
Hey everybody, Pierre from @sunrise. This is the blog post we've just published to give more context:

"Users sometimes ask us why we require the user’s Apple ID and password in Sunrise, instead of using the local Calendar API. That’s a great question to ask, and we understand why users don’t want to share their credentials without context. We’ve thought a lot about that.

The two reasons why we are doing this are: - one, to provide a better user-experience - two, to offer a Sunrise experience everywhere, on all platforms (including web and Android)

Providing a better user-experience

Being able to access the data from our servers, instead of just client-side, has enabled us to write a better calendar app. We are working hard to make synchronization faster and more reliable, and it enables us to send push notifications or alerts to users without them having to open the app.

And this is just the beginning, a lot of new features that we are working on at Sunrise for the future will rely on our server-side infrastructure.

Sunrise everywhere

The two biggest feature requests we get from users are: “when is Sunrise going to launch on desktop” and “what about Android?”.

We understand our users, they want a unified Sunrise experience everywhere, and so we can’t use a local API for that.

How does it work? Is this secure?

When you type in your iCloud credentials, they are sent to our server only once in a secured way over SSL. We use them to generate a secure token from Apple. This secure token is the only thing we store on our servers, we never store your actual iCloud credentials.

What’s next?

In the future, we are thinking about ways to take advantage of the local Calendar API for users who don’t want to share their credentials, we understand their point of view.

We are also hoping that Apple will leverage OAuth to authenticate their calendar API, which will make things easier for everyone. We already support OAuth with Facebook, Google, Twitter, LinkedIn, Foursquare and Producteev. We support OAuth where we can.

We are a team of 7 people building a calendar with love & passion, and unfortunately we can’t always move as fast as we want, but as always, we want to address users’ issues with transparency and openness. We’re listening on @sunrise or [email protected]"

Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by objclxt on Wednesday January 22, 2014 @02:05AM (#7101256)
The one rather glaring fly in your ointment is that if your system was as secure as you make it out to be you wouldn't have been asking users to change their iCloud passwords after your database was compromised a few months ago.

http://www.theverge.com/2013/11/3/5061136/sunrise-calendar-a...

Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by aroch on Wednesday January 22, 2014 @09:09AM (#7102562)
In fairness, changing your password also deactivates any login tockens associated with the old password.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by lockmovdwordptr on Wednesday January 22, 2014 @02:22AM (#7101294)
I guess they have done that for triggering a reset of the validity of the "apple token" that was compromised.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by rismay on Wednesday January 22, 2014 @10:37AM (#7103146)
If you delete the app, this won't remove the account from sunrise's system then?
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by tannerc on Wednesday January 22, 2014 @11:15AM (#7103498)
There is no way for app developers to know which users have deleted the app from their device.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by jhgg on Wednesday January 22, 2014 @11:51PM (#7107036)
Not exactly true. If you send a push notification to a device using a token of an app that isn't installed anymore, the feedback service will let you know that the app isn't installed on the device anymore[0].

[0] https://developer.apple.com/library/ios/documentation/Networ...

Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by leviathan on Thursday January 23, 2014 @08:21AM (#7107946)
What about users who didn't allow location services to begin with?
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by nathancahill on Wednesday January 22, 2014 @02:14AM (#7101280)
Ouch.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by kevinpet on Wednesday January 22, 2014 @04:03AM (#7101588)
They should have rejected your app until they had an Oauth solution in place. That's the right answer to avoid training Apple users to be fishing targets.

Sunrise doesn't have a (known) security problem. Sunrise happened to reveal a glaring problem with Apple's security policies.

Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by weaksauce on Wednesday January 22, 2014 @05:02AM (#7101756)
It's actually phishing. I bring it up because I see more than one commenter on this page that has it wrong.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by hayksaakian on Wednesday January 22, 2014 @07:52AM (#7102273)
it might be autocorrect changing phishing to fishing
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by Bud on Wednesday January 22, 2014 @11:06AM (#7103428)
Anyone who is relying on autocorrect while posting comments on technical issues kinda deserves what they get.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by weaksauce on Wednesday January 22, 2014 @11:42AM (#7103682)
fwiw. I typed phishing on my iPad and it worked fine.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by pflats on Wednesday January 22, 2014 @05:10PM (#7105724)
Actually, as a poster mentioned above, Sunrise was compromised 3 months ago, and recommended all iCloud users change their passwords.

http://www.theverge.com/2013/11/3/5061136/sunrise-calendar-a...

Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by seandougall on Friday January 24, 2014 @01:58AM (#7113715)
How would OAuth help? The problem is training users that it's okay to enter their username and password into any schmuck's app... which is exactly what they'd be doing with OAuth. OAuth and its ilk are neat ways for honest app developers to avoid touching user credentials, and therefore (presumably) would have been a better solution for Sunrise, but they offer no protection against phishing in a native app.

Of course, OS X Authorization Services prompts for keychain access with a standard dialog that just pinky-swears it comes with the OS's blessing, so maybe Apple's approval of this practice shouldn't come as such a surprise.

Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by aestra on Wednesday January 22, 2014 @08:43AM (#7102455)
In your giant ad you missed the point so much it hurts.

You are asking sensitive user names and passwords you have no right to have. Just because you don’t do anything bad with them (that you say - and not yet) means nothing. You shouldn't be asking for them. Phishing attacks do exactly the same thing you do. You are not special, your users shouldn't trust you with their appleid and password anymore than any other spam email they get.

Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by shadesandcolour on Wednesday January 22, 2014 @09:45AM (#7102745)
Why does the application that accesses your calendar not have the right to the credentials for those calendars. Does my email application all of a sudden no longer have the right to my email credentials.

The issue here is not that Sunrise asks for your iCloud credentials, which it needs to be able to access your iCloud data, which you as a user of their service have given them the right to. The problem is that those same credentials are tied to your iTunes account and your credit card.

Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by dragontamer on Wednesday January 22, 2014 @01:43PM (#7104501)
Think cloud based. OAuth, if implemented by Apple, would have APPLE asking the users for their username / password combination. APPLE then tells Sunrise that the username / password is valid. There is no reason why Sunrise should ask for the username / password.

OAuth and even older, Paypal, use this methodology. It is a shared deficiency between Sunrise and Apple that they don't have a better way of performing user authentication.

-----------------

Your email application is a null / void example. Email applications run on your own computer. What is going on here is that Sunrise is collecting usernames / passwords on their own server, and promising that they won't do anything wrong with them. Whether or not we should trust them is beside the point, their approach to security is terrible.

Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by frenchy on Wednesday January 22, 2014 @02:47PM (#7104897)
I don't think anyone would disagree that OAuth is a far, far better solution. But there's not really anything Sunrise can do to make Apple implement OAuth.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by Angostura on Wednesday January 22, 2014 @04:36AM (#7101692)
Unfortunately, you are asking your users to engage in an inherently unsafe behaviour. Even if your implementation is rock solid, users shouldn't get used to supplying AppleID credentials to random applications.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by fhars on Wednesday January 22, 2014 @01:49AM (#7101212)
Submitting credentials "only once to our server" is a classical fishing attack. There is no way for the user to verify what happen with them.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by Xylakant on Wednesday January 22, 2014 @03:22AM (#7101453)
Seriously, there's no way for the user to verify what happens with them even if they don't send them to the server and generate the token in the app. They could still just encrypt them and hide them in the requests they send to their servers to retrieve calendar data. It's fundamentally a matter of trust, made worse by the fact that apple obviously doesn't offer oauth or a similar mechanism.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by edoloughlin on Wednesday January 22, 2014 @04:47AM (#7101725)
We understand our users, they want a unified Sunrise experience everywhere, and so we can’t use a local API for that.

Of course you can, but you need to do extra work to store and synchronise calenders.

Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by fpgeek on Wednesday January 22, 2014 @05:19AM (#7101816)
How many users would understand the calendar integration hiccups because their iPhone didn't have data coverage or was off or ...?
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by Khaine on Wednesday January 22, 2014 @03:26AM (#7101481)
Why don't you run your own caldav server instead of relying upon icloud?
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by 10feet on Wednesday January 22, 2014 @09:57PM (#7106794)
People want access to their apple calendar, on all their devices.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by koudi on Wednesday January 22, 2014 @02:53AM (#7101364)
Why not generate token on client and only submit that?
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by obsim on Wednesday January 22, 2014 @03:20AM (#7101444)
Can you explain how it is possible to generate secure tokens? I can't find anything related to it from the iCloud documentations.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by philo23 on Wednesday January 22, 2014 @04:45AM (#7101720)
I'm guessing, that they simulate an iCloud login and then store the cookie on their servers and then use that cookie to login in the future?

But thinking about it, it's a CalDAV server which normally uses email + password to authenticate..

Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by Moru on Wednesday January 22, 2014 @06:09AM (#7101936)
Not to play doomsday profet but: Apple does not want you to be able to use some other application to access data that apple is already having an application for. So expect to be shut down when apple finally realizes what your app is for.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by lylejohnson on Wednesday January 22, 2014 @07:51AM (#7102269)
Unless I'm misunderstanding your point, you seem to be ignoring the numerous third-party calendar iOS apps that access and manipulate your calendar. I'm using one called Fantastical, but there are many others.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by shadesandcolour on Wednesday January 22, 2014 @09:42AM (#7102728)
Fantastical uses EventKit. As do many of the other calendar apps.
Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by adamio on Wednesday January 22, 2014 @11:44AM (#7103698)
"We are a team of 7 people building a calendar with love & passion"

Love and passion?

Re:Apparently It’s OK For iOS Apps To Ask For Your Apple ID ... by dmur on Wednesday January 22, 2014 @02:04PM (#7104625)
Love and passion.