`check_origin_from_privileged_client` drops browser signalling intermediate cross-origin iframes
Maintainer antworten meist innerhalb von 2 Tagen
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Anfängerfreundlichkeit
- 57/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- rust
- Bereich
- authentication, backend-api-design
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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.
- Vorherrschende Sprache
- Rust
- Sterne
- 310
- Forks
- 22
- Ø Merge
- 1 T. 15 Std.
- Gemergte PRs (30 T.)
- 13
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus linux-credentials/credentialsd
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
linux-credentials/credentialsd#277 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Update screenshotsOffendocumentation good first issue help wanted
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 62/100
linux-credentials/credentialsd#87 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
linux-credentials/credentialsd#275 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Cancel request when client disconnectsEvtl. vergeben @kpanuragh hat das heute übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
linux-credentials/credentialsd#274 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Produce .deb packagesEvtl. vergeben @kpanuragh hat das vor 6 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 38/100
linux-credentials/credentialsd#268 · 2 Kommentare · 1 Reaktion ·
Maintainer antworten meist innerhalb von 2 Tagen
Alle Issues in linux-credentials/credentialsd
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
swc-project/swc-next-issues#533 ·
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 77/100
nautechsystems/nautilus_trader#5718 ·
Maintainer antworten meist innerhalb von 1 Tag
-
`luvus --remote` cannot start on a host whose login shell is NushellEvtl. vergeben @schlich hat das heute übernommen. Offenstatus: needs triage
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 4 Tagen
-
cuTile: Tile::shape() fails during compilation to Tile IREvtl. vergeben @dzheltkov hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
NomicFoundation/slang#2391 ·
Maintainer antworten meist innerhalb von 3 Tagen