Prompted to sign in to my Apple ID for iCloud in my browser (URL: idmsa.apple.com)
Starting this morning, 1Password is auto starting Safari or creating a new tab about every 30 seconds and requesting my Apple ID and Password. I’ve never had this behavior before and I am suspicious whether this is a spoof to obtain my Apple Info. I haven’t entered any info but it’s driving me nuts. I’ve searched the forum and found similar complaints but not exactly the problem I’m having. I’ve included a screen shot.
1Password Version: 6.2.1
Extension Version: 4.5.6
OS Version: OS X 10.11.5
Sync Type: iCloud
Comments
1Password automatically opens browser tab with url: «idmsa.apple.com. » permanently! This happens when 1Password is open and unlocked. No matter whether 1Passowrd mini is enabled or disabled. It appeared today — I made no changes in the browser settings or in 1Password. What is wrong? My favorite browser is firefox 46.0.1
1Password Version: 6
Extension Version: 4.5.6
OS Version: OS X 10.11.5
Sync Type: iCloud
Referrer: kb-search:opens tabs, kb-search:idmsa.apple.com
Same thing happening to me. What’s going on?

Hi @RobHey, I’m sorry you’re experiencing this issue. Are you using the Mac App Store version of 1Password or the version downloaded from the AgileBits store?

@chrlswtt @ncs51 thanks for reaching out. We believe this is caused by the expiration of the token used for syncing your data via iCloud for the version of 1Password that hasn’t been downloaded from the Mac App Store. Can you both please let me know if:
- You’re using the Mac App Store or AgileBits store version of 1Password
- You’re syncing your information via iCloud
I am having the same problem. I am using: 1Password 6 Version 6.2.1 (621002) AgileBits Store. This morning, each time I go to log in to a website, I also get a new window that tries to login to Apple. I finally relented and let 1Password send me a four digit code to my iPhone. I am now (apparently) permanently signing in to:
What is going on here? Has 1Password been hacked or something? 1Password has never done this before, and I’m not sure what I should do with my Safari browser. (I’m running Mac OS 10.11.5 with Safari 9.1.1.)

Sorry for the inconvenience. Indeed this is something that has been happening since this morning.
Hope this helps.
@nathanvf Thank you for this hint — it worked well!
Also thank you to @nmott for the quick reaction.

No problem @robhey. :chuffed:
I have the AgileBits version, and yes I sync via iCloud.

Thanks for letting me know! This is a known issue, and we’ve published the fix here. This is the most relevant bit:
- Open the 1Password application and go to Preferences and click on Sync.
- Select the Primary vault and set Sync to none. Do not check the box to remove data from iCloud when asked. You want to leave it there.
- Set Sync back to iCloud and it will ask you to log in with your Apple ID one more time. This should be the last time, until your login token expires at some point in the future.
Sorry for the inconvenience 🙁 But that should take care of the problem!
Thank you. This seems to have solved the problem.
@ncs51 on behalf of nmott, you’re welcome, I’m glad to hear it worked. Please don’t hesitate to ask if there’s anything else that we can help you with! :chuffed:
Worked for me! thank you
@ThirdLeft152 Glad to hear that! On behalf of nathanvf, you’re welcome! :chuffed:
Thanks Nathan and all: the suggested solution worked for me. And sorry for this late response; I’ve been out and about all day. Cheers!
Sorry I couldn’t get back to you sooner but the fix also worked for me. Thank You
@chrlswtt It’s great to hear that! Please don’t hesitate to ask if there’s anything else that we can do to help! :chuffed:
@rkbaker48 I’m glad to hear it’s all up and working now! On behalf of Nathanvf, you’re welcome! Please don’t hesitate to ask if there’s anything else that we can do for you :chuffed:
Since upgrading to 1P 6.3, over 2 days I’ve twice seen this error: «iCloud session expired.» I had never seen this before.

Then I’m asked to log in:

Is this to be expected? How quickly do the tokens expire? Why isn’t this happening with other apps that use CloudKit?
1Password Version: 6.3
Extension Version: 4.5.6
OS Version: 10.11.5
Sync Type: iCloud

@odysseus I’m sorry for the inconvenience this has caused. This is to be expected; many of the tokens used for CloudKitJS were set to expire yesterday. All you have to do is enter your Apple ID credentials to continue syncing your 1Password data via iCloud :chuffed:
A more thorough explanation of what’s happened can be found here. The good news is that because you’re running 1Password 6.3 you shouldn’t have to go through the process outlined in that post; like I said, you just have to log in to iCloud.
I hope that answers your question! 😎
But I’ve already entered my credentials twice since yesterday!

@odysseus thanks for letting me know 🙁
Can you run through the steps outlined in that post to see if that helps? Here they are again just so they’re easy to find:
- Open the 1Password application and go to Preferences and click on Sync.
- Select the Primary vault and set Sync to none. Do not check the box to remove data from iCloud when asked. You want to leave it there.
- Set Sync back to iCloud and it will ask you to log in with your Apple ID one more time. This should be the last time, until your login token expires at some point in the future.
That should resolve the problem once and for all. Sorry again for the inconvenience, and I’m sure we’ll get this taken care of 🙂
I’m having the same problem, except that I don’t receive the first error screen. Every time I open the application, two browser windows open requesting me to sign into my iCloud account (the second screen) Worst of all is that when I login the screen keeps trying to download the page:
It seems that it’s not affecting the sync of information, but still, it’s pissing me off a lot.
How to Hack Apple ID
![]()
Everyone knows what’s inside a computer isn’t really real. It pretends to be, sure, hiding just under the pixels — but I promise you it isn’t.
In the real world, everything has a certain mooring we’re all attuned to. You put money in a big strong safe, and, most likely if somehow it opens there will be a big sound, and a big hole. Everything has a footprint, everything has a size, there are always side-effects.
As the electrons wiggle, they’re expressing all these abstract ideas someone thought up sometime. Someone had an idea of how they’d dance, but that’s not always true. Instead, there are half-formed ideas, ideas that change context and meaning when exposed to others, and ideas that never really quite made sense.
The Alice in Wonderland secret of computers is that the dancers and their music are really the same. It’s easy to mistakenly believe that each word I type is shuffled by our pixie friends along predefined chutes and conveyors to make what we see on screen, when in reality each letter is just a few blits and bloops away from being something else entirely.
Sometimes, if you’re careful, you can make all those little blits and bloops line up in a way that makes the dance change, and that’s why I’ve always loved hacking computers: all those little pieces that were never meant to be put together that way align in unintended but beautiful order. Each individual idea unwittingly becomes part of a greater and irrefutable whole.
Before the pandemic, I spent a lot of time researching the way web of YouTube, Wikipedia and Twitter meets the other world of Word, Photoshop and Excel to produce Discord, 1Password, Spotify, iTunes, Battle.net and Slack. Here all the wonderful and admittedly very pointy and sharp benefits of the web meet the somewhat softer underbelly of the ‘Desktop Application’, the consequences of which I summarised one sunny day in Miami.
I’m not really a very good security researcher, so little of my work sees the light of day because the words don’t always form up in the right order, but my experience then filled me with excitement to publish more. And so, sitting again under the fronds of that tumtum tree, I found more — and I promise you what I found then was as exciting as what I’ll tell you about now.
But I can’t tell you about those. Perhaps naïve, it didn’t occur to me before that the money companies give you for your security research is hush money, but I know that now — and I knew that then, when I set out to hack Apple ID.
At the time, Apple didn’t have any formal way of paying you for bugs: you just emailed them, and hoped for the best. Maybe you’d get something, maybe you wouldn’t — but there is certainly nothing legally binding about sending an email in the way submitting a report to HackerOne is. That appealed to me.
Part 1: The Doorman’s Secret
Computer systems don’t tend to just trust each other, especially on the web. The times they do usually end up being mistakes.
Let me ask you this: when you sign into Google, do you expect it to know what you watched on Netflix? Of course not.
That’s down to a basic rule of the web: different websites don’t default to sharing information to each other.
ICloud, then is a bit of a curiosity. It has its own domain, icloud.com, entirely separate from Apple’s usual apple.com yet its core feature is of course logging into your Apple iCloud account. More interestingly still, you might notice that most login systems for, say, Google, redirect you through a common login domain like accounts.google.com, but iCloud’s doesn’t.
Behind the looking-glass, Apple has made this work by having iCloud include a webpage that is located on the AppleID server, idmsa.apple.com. The page is located at this address:
Here, Apple is using OAuth 2, a capability based authentication framework. ‘Capability based’ is key here, because it means that a login from Apple.com doesn’t necessarily equate to one from iCloud.com, and also not all iCloud logins are necessarily the same either — that’s how Find My manages to skip a second-factor check to find your phone. This allows Apple to (to some extent) reduce the blast radius of security issues that might otherwise touch iCloud.
This is modified, however, to allow the login to work embedded in another page. response_mode=web_message seems to be a switch that turns this on.
If you visit the address, you’ll notice the page is just blank. This is for good reason: if anyone could just show the Apple iCloud login page then you could play around with the presentation of the login page to steal Apple user data (‘Redress Attack’). Apple’s code is detecting that it’s not being put in the right place and blanks out the page.
In typical OAuth, the ‘redirect_uri’ specifies where the access is being sent to; in a normal, secure form, the redirect uri gets checked against what’s registered for the other, ‘client_id’ parameter to make sure that it’s safe for Apple to send the special keys that grant access there — but here, there’s no redirect that would cause that. In this case the redirect_uri parameter is being used for a different purpose: to specify the domain that can embed the login page.
In a twist of fate, this one fell prey to a similar bug to the one from how to hack the uk tax system, i guess, which is that web addresses are extraordinarily hard to compare safely.
Necessarily, something like this parameter must pass through several software systems, which individually probably have subtly different ways of interpreting the information. For us to be able to bypass this security control, we want the redirect_uri checker on the AppleID server to think icloud.com, and other systems to think something else. URLs, web addresses are the perfect conduit for this.
Messing with the embed in situ in the iCloud page with Chrome Devtools, I found that a redirect_uri of ‘https://abc@www.icloud.com’ would pass just fine, despite it being a really weird way of saying the same thing.
The next part of the puzzle is how do we get the iCloud login page into our page? Consult this reference on embed control:
- X-Frame-Options: DENY
Prevents any kind of embedding
pros: ancient, everyone supports it
cons: the kids will laugh at you; if you want only some embedding, you need some complicated and unreliable logic - X-Frame-Options: ALLOW-FROM http://example.com
Only allows embedding from a specific place
pros: A really good idea from a security perspective
cons: was literally only supported by Firefox and Internet Explorer for a short time so using it will probably make you less secure - Content-Security-Policy: frame-ancestors
Only allows embedding from specific place(s)
pros: new and cool, there are probably TikToks about how to use it; prevents embeds-in-embeds bypassing your controls
cons: probably very old browsers will ignore it
If you check Chrome DevTools’s ‘network’ panel, you will find the AppleID signon page uses both X-Frame-Options: ALLOW-FROM (which essentially does nothing), and Content-Security-Policy: frame-ancestors.
Here’s a cut-down version of what the Content-Security-Policy header looks like when ‘redirect_uri’ is set to the default “https://www.icloud.com/”
This directs the browser to only allow embeds in iCloud. Next, what about our weirder redirect_uri, https://abc@icloud.com?
Very interesting! Now, humans are absolute fiends for context-clues. Human language is all about throwing a bunch of junk together and having it all picked up in context, but computers have a beautiful, childlike innocence toward them. Thus, I can set redirect_uri to ‘https://mywebsite.com;@icloud.com/’, then, the AppleID server continues to think all is well, but sends:
This is because the ‘URI’ language that’s used to express web addresses is contextually different to the language used to express Content Security Policies. ‘https://mywebsite.com;@www.icloud.com’ is a totally valid URL, meaning the same as ‘https://www.icloud.com’ but to Content-Security-Policy, the same statement means ‘https://mywebsite.com’ and then some extra garbage which gets ignored after the ‘;’.
Using this, we can embed the Apple ID login page in our own page. However, not everything is quite as it seems. If you fail to be able to embed a page in chrome, you get this cute lil guy: