RESOLVED FIXED 282578
[WebCrypto] X25519 allows unwrapping a non-extractable key as extractable
https://bugs.webkit.org/show_bug.cgi?id=282578
Summary [WebCrypto] X25519 allows unwrapping a non-extractable key as extractable
Javier Fernandez
Reported 2024-11-04 17:01:05 PST
Created attachment 473138 [details] Test case to reproduce the bug STEPS TO REPRODUCE THE PROBLEM 1- Load the attached test case EXPECTED RESULT The last unwrapKey call should fail with the following error: "Unwrapping a non-extractable JWK as extractable fails as expected with DataError " ACTUAL RESULT The unwrapKey succeeds and the following message is shown in the console: "CONSOLE LOG Unwrapping a non-extractable JWK as extractable succeeded, but it should not !"
Attachments
Test case to reproduce the bug (7.95 KB, text/html)
2024-11-04 17:01 PST, Javier Fernandez
no flags
Javier Fernandez
Comment 1 2024-11-04 17:03:18 PST
This is the root cause of the failure in the wrapKey_unwrapKey.https.any.html, shown in the wpt.fyi [1] https://wpt.fyi/results/WebCryptoAPI/wrapKey_unwrapKey/wrapKey_unwrapKey.https.any.html?label=experimental&label=master&aligned WebKit is the only engine shown this error.
Javier Fernandez
Comment 2 2024-11-05 06:59:56 PST
Radar WebKit Bug Importer
Comment 3 2024-11-24 21:45:09 PST
Alexey Proskuryakov
Comment 4 2024-11-24 21:45:43 PST
The PR is still in Draft at this time.
EWS
Comment 5 2024-12-03 03:53:53 PST
Committed 287273@main (049cd4cf1bf9): <https://commits.webkit.org/287273@main> Reviewed commits have been landed. Closing PR #36184 and removing active labels.
Note You need to log in before you can comment on or make changes to this bug.