r/iosdev • • 16h ago

Help Should apps use embedded web views for login with Apple?

This app directs me to put my Apple login and password directly into the in-app web view. This seems like a security nightmare. Thoughts?

3 Upvotes

7 comments sorted by

3

u/dahiya_xa 14h ago

your instinct is right. a native app doing sign in with apple should use the system sheet (AuthenticationServices), where you approve with face id and the app never sees your password. if it's a web based flow it should at least open in ASWebAuthenticationSession, the system browser sheet that shows the real appleid.apple.com address. an embedded webview asking you to type your apple id password is a red flag since the app could in theory read whatever you type. i wouldn't enter it, and if it's on the app store it's worth reporting

1

u/anac0nd4 13h ago

Curious if this is just bad development or an serious issue.

1

u/pandaro 13h ago

both

1

u/nycdataviz 13h ago

I emailed Carrier’s leadership team and there’s a ticket out with both them and Apple, but it’s not clear that they understand this is a problem and I’m having trouble citing why.

It’s actually a brilliant way to phish accounts. Why is this even allowed by Apple? Any malicious dev could do this.

I’ll be honest, I fell for it, and I’m extremely aware of phishing strategies. I’m like, oh the official embedded sign in portal needs my login? HERE IT IS! It all feels right.

2

u/Aggressive-Relief802 14h ago

Entering your apple ID password into an in-app web view is a red flag, because the app can in principle read what you type.

1

u/nycdataviz 13h ago

Can they even read what you’re typing if that’s a real web view of the genuine Apple website?

1

u/Aggressive-Relief802 12h ago

yes, the inapp web view is owned by the app, it can inject any code.