[Feature request] Paste a bug bounty program's scope (in scope, out of scope, wildcards) when creating a task

Aperta
#519 2 commenti 1 reazione 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
go

Direzione di ricerca

Start with ParseScopeLine in db/company_scope.go and its tests, since the wildcard rejection of *.example.com is the one self-contained step the issue proposes. Check how company domain scope matches on root_domain before deciding what a leading *. should map to. The maintainer has not yet answered the semantics questions in the thread, so confirm the intended behaviour before writing code. Done means the wildcard line parses and has tests, while the task-form preview and out-of-scope block rules stay out of scope for a first pass.

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

Descrizione

feature

The README lists authorized bug bounty programs as a permitted use, and findings already track report_state for submissions (#308). Setting up a task from a program's scope page is still slow and easy to get wrong, and on a bounty program a scope mistake means testing something the program doesn't allow.

What I hit setting one up

  • Wildcards are rejected. Most programs write in-scope entries as *.example.com. ParseScopeLine (db/company_scope.go) returns not recognizable as a valid domain/IP/CIDR: *.example.com, so every such line has to be rewritten by hand. Plain example.com, full URLs and host:port parse fine.
  • Out-of-scope entries are added one row at a time. Programs usually list several excluded hosts (admin.example.com, payments.example.com, a third-party status page). The task form's intercept rules editor takes one kind and pattern per row, while the company scope box already accepts a pasted list.
  • In scope and out of scope live in two places. In-scope goes into a company's scope, and exclusions go into the task's block rules. Nothing shows them side by side, so it is hard to check the setup against the program page before starting.

Proposal (vendor-neutral, plain text only)

One "Program scope" box on the task form. You paste text under In scope and Out of scope headings, or under two separate boxes. ARTEX shows a preview of what each line becomes before anything is saved:

  • *.example.com → domain scope for example.com and its subdomains
  • api.example.com, a URL or a CIDR → scope rows, using the existing parser
  • an out-of-scope line → a task-level block rule (exact_domain, fuzzy_domain, exact_url or cidr)
  • a line that can't be parsed → shown as an error in the preview and never silently dropped

There are no platform API integrations, tokens or scraping, just pasted text, so this stays generic like the rest of the provider and integration surface.

Suggested order, each step a small PR

  1. Accept a leading *. in ParseScopeLine as the domain itself, with tests. This is useful on its own.
  2. Let the task intercept rules editor take a pasted list (one pattern per line, kind inferred), using the same preview.
  3. The combined "Program scope" box with the in/out preview on the task form.

Questions before I start

  • Is a leading *. mapping to the domain scope (example.com and subdomains) the semantics you want, or should *.example.com exclude the apex?
  • When a program puts only specific subdomains in scope (api.example.com, but not the rest of example.com), what is the right place for that: a task subdomain scope row, or something else? Company domain scope matches on root_domain, so I want to avoid widening scope by accident.
  • Is the task form the right home, or would you rather have it on the company page?

I'm happy to do steps 1 and 2 first and hold step 3 until the shape is agreed.

Lingua principale
Go
Stelle
18.7k
Fork
7k
Merge medio
10h 41m
PR unite (30g)
342

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 BaaRai/ARTEX

Tutte le issue di BaaRai/ARTEX

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.