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

Aperta
#472 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
devtools

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
TypeScript
Stelle
8
Fork
1
Merge medio
1h 24m
PR unite (30g)
192

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di 0xPolygon/codegenie

Tutte le issue di 0xPolygon/codegenie

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.