java - 我是否需要使用 Google 帐户身份验证而不是 Spring 身份验证来避免 Firesheep cookie 嗅探攻击?

标签 java security google-app-engine spring-mvc spring-security

我正在阅读 Firesheep并想知道如何保护我的 Spring MVC 3.0 站点免受这样的攻击:

It's extremely common for websites to protect your password by encrypting the initial login, but surprisingly uncommon for websites to encrypt everything else. This leaves the cookie (and the user) vulnerable. HTTP session hijacking (sometimes called "sidejacking") is when an attacker gets a hold of a user's cookie, allowing them to do anything the user can do on a particular website. On an open wireless network, cookies are basically shouted through the air, making these attacks extremely easy.

Spring MVC 中是否有特定的配置设置可以帮助防止此类攻击?

根据文章:

The only effective fix for this problem is full end-to-end encryption, known on the web as HTTPS or SSL.

我有一个在 Google App Engine 上运行的 Spring 网站。这是否意味着如果我想避免这种攻击,我需要使用 Google 帐户身份验证而不是 Spring 提供的内置身份验证?

最佳答案

firesheep 的全部意义在于身份验证机制不是唯一的问题。大多数系统使用 HTTPS 保护身份验证步骤,但不保护与用户的后续交互。无论您使用哪种身份验证机制,您都应该确保涉及登录用户的所有交互都通过 HTTPS 进行。这在 App Engine 中是可能的,但前提是您在应用程序的 appspot 域 (myapp.appspot.com) 之外提供服务。

关于java - 我是否需要使用 Google 帐户身份验证而不是 Spring 身份验证来避免 Firesheep cookie 嗅探攻击?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4014128/

相关文章:

python - 如何验证 Python 脚本是纯数学函数?

windows - 在 PATH 环境中拥有本地目录不安全?

reactjs - [next-auth][错误][CLIENT_FETCH_ERROR] Google App Engine 上的下一个身份验证错误

java - 一个Synchronized Collection Wrapper工厂方法是如何将 "own"对象传入其中的呢?

security - PowerShell 安全日志

google-app-engine - 如何查询多对多关系模型? - 谷歌应用程序引擎

java - 如何修复 Eclipse 3.6 插件安装?

java - Ghost4J PDFConverter 生成 0KB PDF 文件

java - 如何使用 Scanner 和 while 循环进行 JUnit 测试 void 方法

Java Runtime.getRuntime().exec() 替代品