Allow repo-local leading-slash paths in blind-sheet leak scan

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

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

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

Hướng nghiên cứu

The work is in the blind-sheet leak scanner's handling of leading-slash path tokens, resolved against the case repoRoot. Read the scanner's token-matching and containment code, then the existing refusal tests, before adding regression fixtures for in-root, traversal, one-segment and private-root tokens. Done means in-root tokens pass unchanged, out-of-root and private-root tokens are still refused, and the frozen #460 exporter is untouched. The issue is blocked until an operator assigns an owner after #460 grading finishes.

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

Mô tả

bug stage7-harness

Status

Backlog, dev-only follow-up after #460 grading. Owner: unassigned; operator assigns implementation after the campaign's blind grading and reconciliation finish. Do not change the frozen #460 exporter or its binding.

Problem

The blind-sheet leak scanner can refuse a leading-slash path token even when that path resolves to a file inside the selected case's repository root. Rewriting such text is not acceptable because it is graded content.

Acceptance

  • For a leading-slash path token, resolve it relative to the case repoRoot using containment-safe path handling.
  • Accept the token unchanged only when it resolves inside that repoRoot and is not under machine-private roots (/home, /tmp, /Users, /var, eval directories, or worker home).
  • Continue refusing tokens that resolve outside repoRoot or under private roots; do not rewrite or redact graded text.
  • Check each matched token independently and preserve the existing refusal behavior for other leak classes.
  • Add regression fixtures for leading-slash tokens with and without a directory component (for example /src/x.ts and a one-segment token), traversal/out-of-root paths, and private-root paths. Exercise containment for short tokens too; do not broadly exempt arbitrary unresolved slash strings.
  • Land only as a dev-only repo-runner change after #460 grading is complete; do not alter that campaign's frozen exporter or results.

Next step

After #460 blind grading and reconciliation, operator assigns an implementation owner; then add the containment-safe path check and tests in a separate PR.

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

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

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

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 0xPolygon/codegenie

Tất cả issue của 0xPolygon/codegenie

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.