mirror of
https://github.com/nimbold/Firelink.git
synced 2026-09-03 06:27:57 +00:00
fix(handoff): close browser credential boundaries
- Filter custom credential headers and cookies at restricted handoff consumers. - Preserve ordinary single-file capture credentials for Add-window review. - Extend native and renderer redaction coverage with focused regressions.
This commit is contained in:
@@ -6086,15 +6086,16 @@ fn payload_has_credential_material(payload: &SpawnPayload) -> bool {
|
||||
.any(|name| header_name_has_credential_material(&name))
|
||||
}
|
||||
|
||||
fn header_name_has_credential_material(name: &str) -> bool {
|
||||
pub(crate) fn header_name_has_credential_material(name: &str) -> bool {
|
||||
let name = name.trim().to_ascii_lowercase();
|
||||
matches!(
|
||||
name.is_empty() || matches!(
|
||||
name.as_str(),
|
||||
"authorization"
|
||||
| "cookie"
|
||||
| "cookie2"
|
||||
| "proxy-authorization"
|
||||
| "set-cookie"
|
||||
| "set-cookie2"
|
||||
| "x-api-key"
|
||||
| "x-auth-token"
|
||||
| "x-access-token"
|
||||
|
||||
Reference in New Issue
Block a user