[Hardening] F-06: 2FA Field Set as Password Causes Password Manager Issues.
- Ngôn ngữ chính
- Java
- Star
- 3.1k
- Fork
- 1.4k
- Merge trung bình
- 6 ngày 19 giờ
- Pull request đã merge (30 ngày)
- 32
Mô tả
### The required feature described as a wish
**Description:** The 2FA input is defined as type="password". Password managers treat it like a regular password field, so they may save or autofill the 2FA code. This can overwrite the stored password and lock the user out of their account. The field was likely set this way to hide the Static PIN from bystanders or during screen sharing.
**Affected Components:** Management UI
**Impact:** Password managers may replace saved passwords with 2FA codes. This can lock users out and lead them to choose weaker passwords or store them insecurely.
**Steps to Reproduce:**
- Log in to the CloudStack Management UI with a user that has 2FA enabled.
- Enter valid credentials and continue to the 2FA screen.
- Inspect the 2FA input field in the browser’s developer tools.
- Confirm it is set to type="password".
**Recommended Remediation:** Change the 2FA input field to type="number" and add autocomplete="one-time-code". This informs password managers of the field's actual meaning.
Also, consider combining the password and 2FA into a single form. This way, attackers can’t tell which part failed, making password attacks harder.
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với biểu mẫu đăng nhập 2FA của CloudStack Management UI được mô tả trong issue #13337 và xem xét pull request đã được hợp nhất #13723 để biết phần công việc đã hoàn thành. Công việc được xem là hoàn tất khi trường 2FA được trình quản lý mật khẩu nhận diện là mã dùng một lần thay vì mật khẩu thông thường, trong khi đề xuất riêng về việc kết hợp các biểu mẫu vẫn là một vấn đề cần cân nhắc rộng hơn.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- authentication, frontend
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức phù hợp với người mới
- 20/100