Skip to content

访问授权码输入错误 3 次后加入验证码 #5429

Closed
@wkmyws

Description

@wkmyws

在什么情况下你需要该特性?In what scenarios do you need this feature?

将笔记部署在公网时,多次输入错误的授权码后仍然可以继续输入尝试,有通过字典暴力破解授权码的风险

描述可能的最优解决方案 Describe the optimal solution

多次输入授权码错误后,启用验证码进行机器人检测

描述候选的解决方案 Describe the candidate solution

No response

其他信息 Other information

No response

Activity

self-assigned this
on Jul 16, 2022
changed the title [-]部署在公网下的授权码安全问题[/-] [+]访问授权码输入错误 3 次后加入验证码[/+] on Jul 16, 2022
added this to the 2.1.0 milestone on Jul 16, 2022
added 2 commits that reference this issue on Jul 16, 2022
added 2 commits that reference this issue on Jul 16, 2022
wkmyws

wkmyws commented on Jul 18, 2022

@wkmyws
Author

十分感谢新加入的验证码功能,连续三次输入错误的密码后,确实出现了验证码的选项。
但我发现触发验证码的条件是写在cookie里的,
当我把本地的cookie (name="siyuan") 手动删除后,就可以不用输验证码了
那么这个验证码就失去了其意义。。。
我觉得触发验证码的逻辑或许应该写在服务端,服务端记录一个登录次数,当错误的登录次数超过三次时,则强制要求任何一个客户端的登录都需要验证码,直到成功登录为止。

88250

88250 commented on Jul 18, 2022

@88250
Member

@wkmyws 感谢指出问题,下个版改进 #5452

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @88250@Vanessa219@wkmyws

      Issue actions

        访问授权码输入错误 3 次后加入验证码 · Issue #5429 · siyuan-note/siyuan