锁定策略和一次性密码

发布于 2024-10-12 01:06:31 字数 291 浏览 3 评论 0原文

我使用 RFC 4226 为我的网站实现了一次性密码系统。该密码通过短信发送到移动设备。用户只能在移动设备上接收密码,密码将在 15 分钟后过期。

用户还拥有通常使用的标准字母数字“主密码”。我已经实施了 3 次故障锁定工作流程。此锁定持续 15 分钟。

我的问题是,从安全角度来看,仅锁定“主密码”是否可以接受?如果用户使用一次性密码功能,我是否应该允许他们绕过锁定策略?我是否打开了任何类型的安全漏洞?

I have a one time password system implemented for my website using RFC 4226. This password is sent via SMS to a mobile device. The user can only receive the password on their mobile device, and the password expires after 15 minutes.

Users also have the standard alpha-numeric "master password" that is typically used. I have implemented a 3 failure lockout workflow. This lockout lasts for 15 minutes.

My question is from a security standpoint is it acceptable to only lockout the "master password"? Should I allow the user around the lockout policy if they use the one time password feature? Am I opening any kind of security holes?

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

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

发布评论

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

评论(2

樱花落人离去 2024-10-19 01:06:32

我理解您对安全性与可用性的观点,我为您提供静态密码锁定机制,该机制已成为几乎每个网站的事实上的标准。

这里解释得很好,所以我不需要再次输入:

大部分密码锁定机制
今天是静态的,这意味着,他们
达到一定数量后锁定用户
错误密码尝试次数。这
实现该功能是为了防止
暴力尝试登录
功能。尽管这
功能做了它应该做的事情,它
也有自己的缺点。来自一个
从安全的角度来看,这个功能
可以被坏人滥用来锁定
大多数或所有用户通过编写
具有所有可能的脚本
的排列和组合
用户名(主要是字母,
如果不是字母数字),结果是
拒绝服务

从可用性来看
的观点,总有一个
关于尝试次数的争论
在锁定用户之前被允许
帐户。大多数网站允许 3
尝试,而有些(极少数)允许 5
有时是 7 个。

Intellipass 试图弥合差距
在安全性和可用性之间
此功能的一个方面。通过存储
用户的每次登录尝试,
Intellipass可以智能地
了解用户过去的行为并
采取相应行动。对于前。如果一个用户
每次都把自己锁在门外,然后
Intellipass会动态增加
尝试次数从 3 到 5 或
从 5 到 7。另一方面,如果
用户第一次或第二次登录
每次他或她尝试登录时
过去,但由于某种原因
这次尝试了3次,
Intellipass会自动减少
尝试次数从 7 到 5 或
5至3.第二个组成部分
Intellipass 正在随机抛出
验证码或在之间插入时间延迟
登录尝试阻止
自动攻击。

i understand your point of view security vs. usability, i offer you implement static password lockout mechanism, which has become a de-facto standard for almost every website.

here explained really well so i don't need to type again:

Most of the password lockout mechanism
today are static, which means, they
lock a user out after a certain number
of incorrect password attempts. This
feature is implemented to prevent
brute force attempts against the login
functionality. Even though this
feature does what it’s supposed to, it
has its own shortcomings too. From a
security point of view, this feature
can be abused by a bad guy to lock
most or all of the users by writing a
script with all the possible
permutations and combinations for a
username (which are mostly alphabets,
if not alphanumerical), resulting in a
denial of service.

From usability
point of view, there is always a
debate as to the number of attempts to
be allowed before locking a user
account. Most websites allow 3
attempts while some (very few) allow 5
or sometimes 7.

Intellipass tries to bridge the gap
between the security and the usability
aspect of this feature. By storing
every login attempt of a user,
Intellipass can intelligently
understand user’s past behavior and
act accordingly. For ex. If a user
locks himself out every time, then
Intellipass will dynamically increase
the number of attempts from 3 to 5 or
from 5 to 7. On the other hand, if a
user logs in first or second time
every time he or she tried to login in
the past, but for some reason has
taken 3 attempts this time,
Intellipass will automatically reduce
the number of attempts from 7 to 5 or
5 to 3. The second component of
Intellipass is throwing in a random
captcha or insert a time delay between
the login attempts to prevent
automated attacks.

亽野灬性zι浪 2024-10-19 01:06:31

这并不完全是您问题的答案,但是在构建这样的系统时,您必须记住,每次两个对接时,可用性都会胜过安全性。对最终用户制定的安全策略越严格,他们就越有动力想出不安全的解决方法来完成工作。

施奈尔说的比我在这里总结的要好,我'我建议在那里阅读他的东西。

It's not exactly an answer to your question, but when building systems like this you have to keep in mind that usability trumps security every time the two butt heads. The more arduous you make your security policy on end-users, the more they'll be motivated to come up with insecure workarounds to get their jobs done.

Schneier said it better than I can summarize here though, I'd suggest reading up on his stuff there.

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