The WebDriver server accepts any `Host` and `Origin`, so a web page can reach it through DNS rebinding

Aperta
#116 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 17 giorni

@tstreule ci sta già lavorando.

Dal 26/10/2026.

  • #115 di @tstreule — aperta

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
15/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Ferma
Stack tecnologico
rust, tauri
Ambito
security

Direzione di ricerca

Reproduce with the curl command in the issue against a running app with the plugin, which currently returns 200 for a foreign Host. The payload does not name the source file that reads the Host and Origin headers, so search the server's request handling for them. Pull request #115 already implements this check and is still open, so read it before writing anything new. Done means a foreign Host is refused while the local address and an absent or matching Origin still work.

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

Descrizione

The WebDriver server has no authentication. What keeps other parties out is the interface it binds: 127.0.0.1 on desktop and iOS, every interface on Android. It checks neither the Host nor the Origin header of a request.

DNS rebinding gets around the bind address. A web page open in a browser on the same machine first loads from the attacker's domain. It then points that domain's DNS at 127.0.0.1 and sends requests to the WebDriver port. The browser treats those requests as same-origin, so the page can read the replies. It can create a session, run scripts in the app's webview and read whatever the app shows. On Android, a page in any browser on the same network can do the same by rebinding to the device's network address.

To see the server accept a foreign name, start an app with the plugin and run:

curl -i -H 'Host: rebound.example:4445' http://127.0.0.1:4445/status

The server answers 200 where it should refuse the request.

The usual defence for an unauthenticated local server is to serve a request only when Host names the server by its address, and Origin is absent or the same. A rebound request always carries the attacker's hostname in Host. #115 does this.

Lingua principale
Rust
Stelle
42
Fork
5
Merge medio
12g 5h
PR unite (30g)
7

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 Choochmeque/tauri-plugin-webdriver

Tutte le issue di Choochmeque/tauri-plugin-webdriver

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.