我们公司的安全审计发现我们的 bcrypt 哈希的前缀是“$2a$”。根据 [1] 和 [2],这可能表明使用了较旧的、易受攻击的 bcrypt 实现。
所以 - 这里是我的问题:
- Spring Security 的 bcrypt 实现是否包含漏洞?
- Spring Security 是否支持“$2x$”和“$2y$”前缀?
参考文献:
[1] http://blog.ircmaxell.com/2012/12/seven-ways-to-screw-up-bcrypt.html
[2] http://www.openwall.com/lists/oss-security /2011/06/21/16