LabTechUDF / LabTechUDF/python-services
Bug: Email action token not enforced or invalidated, allowing multiple actions on the same event
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 0
- Fork
- 0
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Issue không xác định tệp nguồn, bài kiểm thử hoặc điểm vào nào. Hãy bắt đầu bằng cách xác định trình xử lý action-token của email và luồng xác thực của nó; được xem là hoàn tất khi các action được gắn với token và action được yêu cầu, việc sử dụng thành công làm token mất hiệu lực, và việc sử dụng lại trả về lỗi mà không thay đổi trạng thái.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- authentication, security
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100