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

Open
#472 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
22/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
devtools

Research direction

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.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
8
Forks
1
Avg merge
1h 24m
Merged PRs (30d)
192

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from 0xPolygon/codegenie

All issues in 0xPolygon/codegenie

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.