From 9a9f188c58e9e34472ec5f8abea728682ab9fe6e Mon Sep 17 00:00:00 2001 From: Gerrit User 1039237 <1039237@d5d70762-12d0-45a1-890d-524b12d3f735> Date: Sun, 1 Feb 2026 09:52:06 +0000 Subject: [PATCH] Create change MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GitHub Pull Request: https://github.com/bs-community/blessing-skin-server/pull/676 修复邮箱验证链接安全问题 @shhzhang 发现当前邮箱验证链接存在以下安全问题: 1. 验证链接永不过期 2. 验证链接仅对用户ID进行了签名 其中问题2比较严重,如果用户在收到验证链接后故意不完成验证,又把邮箱改成其他任意邮箱,之前收到的验证链接仍然能继续使用,从而可以绑定任意邮箱。 #675 的修复似乎仅在签名中增加了时间戳,只解决了问题1,且修复方式较为复杂,本 PR 使用 `temporarySignedRoute` 进行修复。 Patch-set: 1 Change-id: If629a7e922ce67b18bd9c0453a948b52c3dabb09 Subject: fix: generate temporary email verification link with email hash included Branch: refs/heads/dev Status: new Topic: Commit: ba3cc6fe91986b54ec60b957109bf58ec2e00438 Tag: autogenerated:gerrit:newPatchSet Groups: ba3cc6fe91986b54ec60b957109bf58ec2e00438 Private: false Work-in-progress: false