iPhone - Web 访问身份验证

发布于 2024-08-25 19:04:28 字数 557 浏览 5 评论 0原文

我正在为我们的执行人员构建一个安全的应用程序...这是我的设置。这是一种有点 Macgyver 的方法,但请耐心等待:)

  1. 只有 10 个用户,我在后端的数据库表中记录了每个 uniqueIdentifier。 (这仅适用于我们的用户内部,因此我不认为我违反了 API 文档中提到的公共用户注册规则)
  2. 通过临时分发,我在所有 10 台设备上安装了我的应用程序
  3. 我的应用程序只是由 UIWebView 组成。
  4. 当应用程序启动时,它会向我们的 https 站点发送一个 POST 消息,发送 uniqueIdentifier。 (感谢这个答案
  5. 接收POST,检查唯一标识符,如果找到,则设置一个会话 cookie,自动将它们记录到站点中。
  6. 这样用户就不必每次都输入其凭据。

那么您认为这是否存在安全漏洞?

谢谢

I am building a secure app for our exec's... here is my setup. It's a somewhat Macgyver approach, but bear with me :)

  1. There are only 10 users, I have a record of each uniqueIdentifier on my backend in a database table. (This is internal only for our users, so I don't believe I am breaking the public user registration rule mentioned in the API docs)
  2. Through adhoc distribution I install my app on all 10 devices
  3. My app is simply composed of a UIWebView.
  4. When the app starts it does a POST to our https site sending the uniqueIdentifier. (Thanks to this answer)
  5. The server page that recieves the POST, checks the uniqueIdentifier and if found sets a session cookie that automatically logs them into the site.
  6. This way the user doesn't have to enter in their credentials every time.

So what do you think, is there a security hole with this?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冷夜 2024-09-01 19:04:28

由于您将所有唯一 ID 存储在应用程序中,每个 ID 都是解锁访问权限的凭据,因此我所需要做的就是窃取您员工的一部手机,或者以其他方式获取应用程序的副本来查找这些密钥。

如果您需要在手机上存储凭据,请使用 iPhone 的钥匙串

Since you are storing all your unique IDs in the application, each of which is a credential that unlocks access, all I need to do is steal one of your employee's phones or otherwise get a copy of the application to look for those keys.

If you need to store credentials on the phone, use the iPhone's Keychain.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文