LabTechUDF / LabTechUDF/python-services
Bug: Email action token not enforced or invalidated, allowing multiple actions on the same event
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
描述
Preconditions:
An event exists with status pending review.
Steps to Reproduce:
- Trigger a status update email for an event (e.g., “Approve” / “Reject”).
- Open the email and click the provided action link.
- The event status is updated successfully.
- Reuse the same link or a different link from the same email.
- Observe the behavior.
Expected Result:
The email token is validated and tied to a single action.
Once an action is performed, the token becomes expired/invalid and cannot be reused.
A second attempt with the same token should return an error (e.g., “Token expired or invalid”).
The system should prevent conflicting actions (e.g., approving and then rejecting with the same token).
Actual Result:
The same token can be reused multiple times.
Different actions (approve and reject) can be performed using the same token.
The token is not considered in validation logic after the first use.
'Acceptance Criteria:
Token is strictly validated against the requested action.
After a successful action, the token is invalidated and cannot be reused.
Attempting a second use returns an error message and no status change occurs.
Conflicting actions cannot be performed with the same token.
https://github.com/user-attachments/assets/0aa2a6ab-12e7-4b86-bfc3-53990fc2f93f
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
Issue 中没有确定源文件、测试或入口点。首先定位电子邮件操作令牌处理程序及其验证路径;完成的标准是:操作与请求的令牌和操作绑定,成功使用会使令牌失效,而重复使用会返回错误且不改变状态。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- authentication, security
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100