security: agent browser pages can still reach local addresses through public names that resolve to them
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- electron, typescript
Direzione di ricerca
Start with BrowserService.allowsRequest, which filters by hostname and literal address only, and with tools/net_proxy.ts, the existing filtering proxy the issue wants the agent session routed through via session.setProxy. The fix must check the resolved address, either in the proxy policy or by cancelling on details.ip in webRequest.onResponseStarted. Done means a test with a resolver stub, where a public-looking name resolves to a local server, shows that the server receives no request.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Follow-up to #235.
Problem
The agent browser's request filter (BrowserService.allowsRequest) refuses requests from a public page to local hostnames and address literals. It does not see what a name resolves to: a public name that resolves to 127.0.0.1, a LAN address or 169.254.169.254 (a DNS rebinding service, or an attacker's own DNS) still reaches the local service from a frame or fetch, and a screenshot or console output can pass it on.
Fix
Route the agent session through the existing filtering proxy (tools/net_proxy.ts, via session.setProxy) with a policy that allows public destinations and refuses local ones after resolving, or cancel on the resolved details.ip (webRequest.onResponseStarted) and stop the page.
Test
A page on a public-looking test host (resolver stub) frames a name that resolves to a local server; the server gets no request.
- Lingua principale
- TypeScript
- Stelle
- 2
- Fork
- 2
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di PierrunoYT/patch
-
tests
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
PierrunoYT/patch#393 · 1 commento ·
-
ci: macOS hardened-runtime smoke step fails because the re-signed app's helpers cannot connect (#28)Apertabug platform: macos tests
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
PierrunoYT/patch#392 · 1 commento ·
-
blocked platform: windows
Difficoltà 4/5 1-2 giorni Idoneità per principianti 52/100
PierrunoYT/patch#329 · 3 commenti ·
-
performance priority: low severity: low
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
PierrunoYT/patch#324 ·
-
enhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 36/100
PierrunoYT/patch#272 · 1 commento ·
Tutte le issue di PierrunoYT/patch
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
Automattic/data-liberation-agent#1115 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
Enhance blog readabilityApertaCSS enhancement good first issue
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
pychess/pychess-variants#2448 ·
I maintainer di solito rispondono entro 1 giorno
-
[architect] Stale planning/scratch files at repo root (COMPONENT_SPLIT_SUMMARY.md etc.) describe already-completed workForse già presa @hivecommons-hive l’ha presa oggi. Apertaagent/architect architecture help wanted stage/040-covered-by-pr tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
kubestellar/console#24716 ·
I maintainer di solito rispondono entro 1 giorno
-
helm-knative-apply.sh fails with Helm 4Forse già presa Una pull request collegata a questa issue è aperta o già unita. Apertaarea: triage theme: undefined
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
jhipster/generator-jhipster#35895 ·
I maintainer di solito rispondono entro 1 giorno