Remix.run Logo
▲ silon42 4 hours ago

Why does that allow access to Safari cookies?

▲jshier 3 hours ago | parent | next [-]

If they're using WKWebView directly, it does not.

If they're using SFSafariViewController, it's essentially a remote process Safari instance that shares some, but not all, of the state with Safari itself, including cookies. Normally this is so users can use their existing logins for things between apps and their websites.

▲btown 2 hours ago | parent [-]

I may be incorrect, but I believe SFSafariViewController doesn't allow JS or cookie interaction from the app's code - you can get notified on a page navigation, which is sufficient for legitimate e.g. OAuth use cases, but shouldn't allow exfiltration of data from a non-cooperating website.

And this doesn't seem to be used, per the OP:

> Apple provides a safe way to "Log in with Facebook": the system sign-in window (ASWebAuthenticationSession), which shows the website's name and keeps its cookies away from the app. Meta's own login kit uses it. These apps use neither.

So this is just (pretty clever) social engineering to get someone to think they're needing to log in afresh to a Meta app, using a fresh isolated web view they can fully script and control.

▲jshier an hour ago | parent [-]

Yeah, I think they changed SFSafariViewController to be more restricted at some point. And even if it could access all the cookies, it's in a separate process and doesn't return anything to the app, so it's not really an exfiltration risk either, it would just mean the web content could be logged into your account.

▲monocularvision an hour ago | parent [-]

You have never been able to access cookies inside of a SFSafariViewController, at least through public API. Perhaps there was some vulnerability patched at some point, but the point of SFSafariViewController is that the hosting app can’t interact with the open web page at all.

▲kuschku 4 hours ago | parent | prev | next [-]

It doesn't, these apps ask you to log in again (in their webview), which users are trained to just do.

▲itshusseinsaleh 24 minutes ago | parent | prev [-]

[dead]