AppId extension processing missing TrustedFacetList processing

Đang mở
#326 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
52/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
rust
Lĩnh vực
authentication, backend

Hướng nghiên cứu

Start with the AppId validation algorithm in libwebauthn/src/ops/webauthn/idl/mod.rs and compare it with the related-origins resolution path mentioned in the error log. Trace how an AppId is fetched and authorized, then determine how TrustedFacetList entries should affect the Google example. Done means an origin listed as a trusted facet can complete with appid: true, with coverage for this case.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

We use a reduction of AppId processing, e.g. stopping at step 3 above by just comparing the origin to the AppId hostname, but this doesn't work for sites that host the TrustedFacetList on a domain that is not equal to or a subdomain of the origin. Unfortunately, Google's implementation fits this category, so U2F credentials cannot be asserted with libwebauthn right now.

When logging in on https://accounts.google.com, these are the relevant inputs:

origin: https://accounts.google.com
rpId: google.com
appId: https://www.gstatic.com/securitykey/origins.json

Google's TrustedFacetList for that appId:

{
  "trustedFacets": [
    {
      "version": { "major": 1, "minor": 0 },
      "ids": [
        "https://accounts.google.com",
        "https://accounts-daily-0.sandbox.google.com",
        "https://accounts-daily-1.sandbox.google.com",
        "https://accounts-daily-2.sandbox.google.com",
        "https://accounts-daily-3.sandbox.google.com",
        "https://accounts-daily-4.sandbox.google.com",
        "https://accounts-daily-5.sandbox.google.com",
        "https://accounts-daily-6.sandbox.google.com",
        "https://accounts.sandbox.google.com",
        "https://myaccount.google.com",
        "https://myaccount-autopush.corp.google.com",
        "https://myaccount-staging.corp.google.com",
        "https://security.google.com",
        "https://admin.google.com",
        "https://admin-autopush.sandbox.google.com",
        "android:apk-key-hash:8P1sW0EPJcslw7UzRsiXL64w-O50Ed-RBICtay1g24M",
        "android:apk-key-hash:GXWy8XF3vIml3_MfnmSmyuKBpT3B0dWbHRR_4cgq-gA",
        "ios:bundle-id:com.google.GoogleAccounts.dev",
        "ios:bundle-id:com.google.GoogleAccounts.enterprise",
        "ios:bundle-id:com.google.GoogleAccounts",
        "ios:bundle-id:com.google.SecurityKeyExample.dev",
        "native://cloud.google.com/googlecloudsdk"
      ]
    }
  ]
}

In this case, I would expect the RP ID to be ignored and the ceremony to complete with appid: true, since the origin is in the trusted facet list. However, this is what I experience:

2026-11-04T23:17:20.533276Z DEBUG reqwest::connect: starting new connection: https://www.gstatic.com/
2026-11-04T23:17:20.534321Z DEBUG hyper_util::client::legacy::connect::http: connecting to 142.250.177.67:443
2026-11-04T23:17:20.545734Z DEBUG hyper_util::client::legacy::connect::http: connected to 142.250.177.67:443
2026-11-04T23:17:20.566396Z DEBUG h2::client: binding client connection
2026-11-04T23:17:20.566643Z DEBUG h2::client: client connection bound
2026-11-04T23:17:20.566698Z DEBUG h2::codec::framed_write: send frame=Settings { flags: (0x0), enable_push: 0, initial_window_size: 2097152, max_frame_size: 16384, max_header_list_size: 16384 }
2026-11-04T23:17:20.566886Z DEBUG hyper_util::client::legacy::pool: pooling idle connection for ("https", www.gstatic.com)
...
2026-11-04T23:17:20.585898Z DEBUG libwebauthn::ops::webauthn::idl: Related-origins resolution failed rp_id=www.gstatic.com err=unexpected HTTP status 404
2026-11-04T23:17:20.585957Z  INFO credentialsd::gateway::util: Failed to parse GetAssertion request JSON: Invalid AppID: appid is not authorised for the caller origin
2026-11-04T23:17:20.586058Z ERROR credentialsd::gateway: Could not parse passkey assertion request: TypeError

The current algorithm assumes that the origin is always AppId is registrable domain suffix, but sites that host the facet list on a separate domain will fail according to our implementation.

I think we should add an AppId fetcher, like we have for related origins, and then process the list accordingly.

Ngôn ngữ chính
Rust
Star
602
Fork
33
Merge trung bình
1 ngày 13 giờ
Pull request đã merge (30 ngày)
9

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của linux-credentials/libwebauthn

Tất cả issue của linux-credentials/libwebauthn

Issue tương tự

Thêm issue về Rust

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.