`check_origin_from_privileged_client` drops browser signalling intermediate cross-origin iframes
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 57/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- authentication, backend-api-design
Direzione di ricerca
Start in credentialsd/src/gateway/mod.rs at check_origin_from_privileged_client, especially the logic around lines 393–396, and trace how origin and topOrigin become client data fields. Compare the intended A → B → A behavior with the WebAuthn discussion linked in the issue. Done means intermediate cross-origin framing is represented as crossOrigin: true while preserving topOrigin: A; add or update focused tests for that case.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
credentialsd's request API has two fields to indicate the origin of a request: origin (L1) and topOrigin (L3+):
It does not have a way to explicitly set the crossOrigin field (L2), but this could be inferred in an L3+ client by topOrigin being set.
However, check_origin_from_privileged_client always treats a request with origin: A, topOrigin: A as being a same-origin request (origin: A, crossOrigin: false, topOrigin: unset):
These values could also indicate a cross-origin request with (unknown) cross-origin intermediate iframes (eg: a chain of A -> B -> A should be reported as origin: A, crossOrigin: true, topOrigin: A).
This incorrect assumption drops the signal from the browser that there is an intermediate cross-origin ancestor involved, and it will look like a same-origin request with an explicit crossOrigin: false like an L2+ client (ie: RPs can't rely on crossOrigin being set to exclude an L1 client).
This isn't a security risk for an RP, because it needs to explicitly opt-in to allowing WebAuthn to be used from iframes, and it could mitigate risks of framing by unexpected origins by setting a content security policy. If an RP has a HTML injection vulnerability that allows attacker to insert an arbitrary iframe (with extra allow parameter), then they probably have much bigger problems and an attacker doesn't gain anything out of using this bug. :)
However, an RP which expects collected client data of origin: A, crossOrigin: true, topOrigin: A (particularly if using the limited verification algorithm) may reject the request. These sorts can cause all sorts of weird issues that are extremely difficult for a client or browser to debug, as the check is on the RP's side.
- Lingua principale
- Rust
- Stelle
- 310
- Fork
- 22
- Merge medio
- 1g 15h
- PR unite (30g)
- 13
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 linux-credentials/credentialsd
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
linux-credentials/credentialsd#277 ·
I maintainer di solito rispondono entro 2 giorni
-
Update screenshotsApertadocumentation good first issue help wanted
Difficoltà 2/5 Mezza giornata Idoneità per principianti 62/100
linux-credentials/credentialsd#87 · 2 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
linux-credentials/credentialsd#275 · 3 commenti ·
I maintainer di solito rispondono entro 2 giorni
-
Cancel request when client disconnectsForse già presa @kpanuragh l’ha presa oggi. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
linux-credentials/credentialsd#274 ·
I maintainer di solito rispondono entro 2 giorni
-
Produce .deb packagesForse già presa @kpanuragh l’ha presa 6 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 38/100
linux-credentials/credentialsd#268 · 2 commenti · 1 reazione ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di linux-credentials/credentialsd
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
swc-project/swc-next-issues#533 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 77/100
nautechsystems/nautilus_trader#5718 ·
I maintainer di solito rispondono entro 1 giorno
-
`luvus --remote` cannot start on a host whose login shell is NushellForse già presa @schlich l’ha presa oggi. Apertastatus: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 4 giorni
-
cuTile: Tile::shape() fails during compilation to Tile IRForse già presa @dzheltkov l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
NomicFoundation/slang#2391 ·
I maintainer di solito rispondono entro 3 giorni