Skip to content

Commit b6cd3c4

Browse files
authored
Update security-checklist-zh.md
1 parent bcd7d56 commit b6cd3c4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

security-checklist-zh.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@
1313
- [ ] 当解析用户注册/登陆的输入时,过滤 javascript://、 data:// 以及其他 CRLF 字符.
1414
- [ ] 使用 secure/httpOnly cookies.
1515
- [ ] 移动端使用`OTP`验证时,当调用`generate OTP` 或者 `Resend OTP` API时不能吧OTP(One Time Password)直接返回。(一般是通过发送手机验证短信,邮箱随机code等方式,而不是直接response)
16-
- [ ] Limit attempts to `Login`, `Verify OTP`, `Resend OTP` and `generate OTP` APIs for a particular user. Have an exponential backoff set or/and something like a captcha based challenge.
17-
- [ ] Check for randomness of reset password token in the emailed link or SMS.
18-
- [ ] Set an expiration on the reset password token for a reasonable period.
19-
- [ ] Expire the reset token after it has been successfully used.
16+
- [ ] 限制单个用户`Login``Verify OTP` `Resend OTP``generate OTP`等API的调用次数,使用Captcha等手段防止暴力破解.
17+
- [ ] 检查邮件或短信里的重置密码的token,确保随机性(无法猜测)
18+
- [ ] 给重置密码的token设置过期时间.
19+
- [ ] 重置密码成功后,将重置使用的token失效.
2020

2121

2222
##### USER DATA & AUTHORIZATION

0 commit comments

Comments
 (0)