Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

gate() accepts an unvalidated floor: enforce duplicate-identity rejection at the gate boundary

Đang mở
#223 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
accessibility, testing

Hướng nghiên cứu

Read the existing duplicate check in parseEvidenceFloor and inspect the exported gate() implementation and its GateInput type. Trace how duplicate keys become a last-wins map, then add coverage for passing duplicate entries directly to gate(). Done means this path rejects duplicates or accepts only a validated floor type, preventing an order-sensitive false green.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

area: engine bug security

Follow-up to #217.

What is wrong

#217 rejects duplicate floor identities in parseEvidenceFloor, which covers the real run path. But gate() is exported and accepts an EvidenceFloor directly, and it builds a last-wins map without validation. Two same-key entries passed straight to gate() let one current barrier be marked carried, so the verdict is order-sensitive and can be a false green.

Fix

Enforce duplicate-identity rejection at the gate boundary as well as at parse, or change GateInput to accept only a validated floor type.

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
2 giờ 48 phút
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của usabl-dev/usabl

Tất cả issue của usabl-dev/usabl

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.