| ▲ | ShinyLeftPad 5 hours ago |
| > the apps open the real facebook.com login inside their own browser, so they can read Facebook's session cookies I thought Apple doesn't allow third party browser engines? |
|
| ▲ | piva00 5 hours ago | parent | next [-] |
| WKWebView is used for displaying web content, as the app developer you have full control of it when running inside your app. It's just Safari running inside your app, no 3rd party engine. |
| |
| ▲ | silon42 5 hours ago | parent [-] | | 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 3 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 2 hours 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 2 hours 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 5 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 an hour ago | parent | prev [-] | | [dead] |
|
|
|
| ▲ | ceejayoz 5 hours ago | parent | prev | next [-] |
| This is just a webview, but they do (unwillingly) in the EU now. > iOS and iPadOS include capabilities that let apps use alternative browser engines — browser engines other than WebKit — for dedicated browser apps and apps providing in-app browsing experiences in the EU. To use an alternative browser engine in your app, you’ll need to request the Web Browser Engine Entitlement (for browser apps that want to use alternative browser engines) or the Embedded Browser Engine Entitlement (for apps that provide in-app browsing experiences that want to use alternative browser engines). These capabilities are available to EU users on devices running a minimum of iOS 17.4 or iPadOS 18. https://developer.apple.com/support/alternative-browser-engi... |
| |
| ▲ | Vinnl 4 hours ago | parent [-] | | Only theoretically: https://blog.mozilla.org/en/mozilla/internet-policy/apple-io... | | |
| ▲ | ceejayoz 4 hours ago | parent [-] | | > One of the conditions requires us not to disclose non-public information related to the project, but here’s an example of what we are up against: to use Gecko, we can’t simply update the Firefox app people already use and love. We’d have to build a whole separate app, a second Firefox. Then we’d have to ask every Firefox user to download it, move their bookmarks, passwords and history across, and manually switch over, step by confusing step. I don't doubt Apple's putting in as many roadblocks as they can, but this one seems very surmountable. Bite the bullet once, make a migration flow. Apple seems to permit that just fine, given the number of times I've had to "upgrade" to an app's more expensive v2 with a separate instance of the app. | | |
|
|
|
| ▲ | rpdillon 3 hours ago | parent | prev | next [-] |
| You're conflating the number of browser engines with a number of instances of a browser engine running on the phone. By spawning their own instance of a browser, they can add telemetry and see what you're doing inside of it in a way that would not be possible inside of Safari. |
|
| ▲ | rileymat2 5 hours ago | parent | prev | next [-] |
| You can use webkit, and have full access. “There own browser” not engine. |
|
| ▲ | afavour 5 hours ago | parent | prev [-] |
| Here “their own browser” means a system webview. It’s notable that you are allowed to sniff cookies via this webview though. I have limited sympathy for Facebook here, their own app uses the same webview that lets them sniff all kinds of data about user browsing. There is a more secure and user friendly webview alternative, and there has been for years. But they don’t use it. |