Title: [255847] trunk/Source/WebKit
- Revision
- 255847
- Author
- [email protected]
- Date
- 2020-02-05 13:26:30 -0800 (Wed, 05 Feb 2020)
Log Message
[IPC Hardening] Protect against bad ClientOrigin under Engine::readCachesFromDisk()
https://bugs.webkit.org/show_bug.cgi?id=207280
<rdar://problem/59013832>
Reviewed by Geoffrey Garen.
Protect against bad ClientOrigin under Engine::readCachesFromDisk(), as it is coming from
IPC from the WebContent process.
* NetworkProcess/cache/CacheStorageEngine.cpp:
(WebKit::CacheStorage::Engine::readCachesFromDisk):
Modified Paths
Diff
Modified: trunk/Source/WebKit/ChangeLog (255846 => 255847)
--- trunk/Source/WebKit/ChangeLog 2020-02-05 21:07:48 UTC (rev 255846)
+++ trunk/Source/WebKit/ChangeLog 2020-02-05 21:26:30 UTC (rev 255847)
@@ -1,3 +1,17 @@
+2020-02-05 Chris Dumez <[email protected]>
+
+ [IPC Hardening] Protect against bad ClientOrigin under Engine::readCachesFromDisk()
+ https://bugs.webkit.org/show_bug.cgi?id=207280
+ <rdar://problem/59013832>
+
+ Reviewed by Geoffrey Garen.
+
+ Protect against bad ClientOrigin under Engine::readCachesFromDisk(), as it is coming from
+ IPC from the WebContent process.
+
+ * NetworkProcess/cache/CacheStorageEngine.cpp:
+ (WebKit::CacheStorage::Engine::readCachesFromDisk):
+
2020-02-05 Alex Christensen <[email protected]>
Make WKWebView._negotiatedLegacyTLS accurate when loading main resouorce from network or cache
Modified: trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngine.cpp (255846 => 255847)
--- trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngine.cpp 2020-02-05 21:07:48 UTC (rev 255846)
+++ trunk/Source/WebKit/NetworkProcess/cache/CacheStorageEngine.cpp 2020-02-05 21:26:30 UTC (rev 255847)
@@ -394,6 +394,11 @@
return;
}
+ if (!m_caches.isValidKey(origin)) {
+ callback(makeUnexpected(Error::Internal));
+ return;
+ }
+
auto& caches = m_caches.ensure(origin, [&origin, this] {
auto path = cachesRootPath(origin);
return Caches::create(*this, WebCore::ClientOrigin { origin }, WTFMove(path));
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes