External-catalog proxy lets any signed-in user reach any public host

Aperta
#265 0 commenti 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
62/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python
Ambito
security

Direzione di ricerca

Start by tracing the proxy route and outbound request guard to see how catalog URLs are currently checked; the issue does not name their files, so locate them from the proxy route. Keep the registered external catalog list server-side and reject targets absent from it. Add tests for registered and unregistered targets, including a deceptive prefix match, and update docs/ISSUES.md.

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

Descrizione

ready

Left open when login was added to the proxy route (#212).

The proxy checks that the requested address belongs to the catalog being browsed, but both values come from request headers the caller sets, and the comparison is a simple prefix match (https://a.com.evil.com passes against https://a.com). So the check is not a real gate: any signed-in user can use the app to fetch from any public host. Private and internal addresses are still blocked by the outbound request guard.

Fix direction: keep the list of external catalogs on the server and allow the proxy to reach only those, instead of trusting headers.

Done when: the proxy refuses a target that is not a registered catalog, with tests, and docs/ISSUES.md is updated.

🤖 Generated with Claude Code

Lingua principale
Python
Stelle
0
Fork
2
Merge medio
8h 26m
PR unite (30g)
47

Preparare l'ambiente

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 TechTraverse/stac-higher

Tutte le issue di TechTraverse/stac-higher

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.