You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Hash method mismatch in comsuming preloads can allow response not matching consumer's integrity #7973
the user-agent has determined that preloadIntegrityMetadata is stronger than consumerIntegrityMetadata
but this can cause a response that doesn't match with consumerIntegrityMetadata to pass SRI check, if it does match with preloadIntegrityMetadata.
For example,
where received foo.js's SHA512 hash is aaaaa and SHA256 hash is ccccc, not bbbbb.
This can problematic when bbbbb is the correct hash and the received foo.js and the <link rel=preload>'s hash aaaaa are wrong.
Maybe the "stronger than" condition should be removed?
Activity
hiroshige-g commentedon Jun 1, 2022
@noamr @domenic @annevk
This is implemented only in Firefox (https://bugzilla.mozilla.org/show_bug.cgi?id=1762520).
[WPT] Do not allow hash method mismatch in comsuming preloads
noamr commentedon Jun 1, 2022
I am OK with removing this (if Firefox are not opposed)
Do not allow integrity hashing mismatch in consuming preloads
Do not allow integrity hashing mismatch in consuming preloads
[WPT] Do not allow hash method mismatch in consuming preloads
[WPT] Do not allow hash method mismatch in consuming preloads
[WPT] Do not allow hash method mismatch in consuming preloads
[WPT] Do not allow hash method mismatch in consuming preloads
Bug 1772047 [wpt PR 34272] - [WPT] Do not allow hash method mismatch …
Bug 1772047 [wpt PR 34272] - [WPT] Do not allow hash method mismatch …