The WebDriver server accepts any `Host` and `Origin`, so a web page can reach it through DNS rebinding
I maintainer di solito rispondono entro 17 giorni
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- Mezza giornata
- Idoneità per principianti
- 15/100
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
- 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 Choochmeque/tauri-plugin-webdriver
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
Choochmeque/tauri-plugin-webdriver#134 ·
I maintainer di solito rispondono entro 17 giorni
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
Choochmeque/tauri-plugin-webdriver#117 ·
I maintainer di solito rispondono entro 17 giorni
Tutte le issue di Choochmeque/tauri-plugin-webdriver
Issue simili
-
bug(c-sdk): boxlite_box_exec does not check runtime liveness before dispatching streaming execApertabug rust SDK & CLI & REST API
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
boxlite-ai/boxlite#3292 ·
I maintainer di solito rispondono entro 1 giorno
-
Android bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
anefzaoui/misterdownloadmanager#2516 ·
I maintainer di solito rispondono entro 1 giorno
-
editor ui
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
state:triage tech-debt
Difficoltà 2/5 1-3 ore Idoneità per principianti 89/100
agent8-cash/ethpayserver#731 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100