Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

security: agent browser pages can still reach local addresses through public names that resolve to them

Chiusa
#260 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

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
Ambito
desktop, security

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

enhancement priority: low security severity: low

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

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 PierrunoYT/patch

Tutte le issue di PierrunoYT/patch

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.