{"id":34720,"date":"2022-01-17T14:49:38","date_gmt":"2022-01-17T19:49:38","guid":{"rendered":"https:\/\/mjtsai.com\/blog\/?p=34720"},"modified":"2022-01-25T16:21:30","modified_gmt":"2022-01-25T21:21:30","slug":"safari-15-indexeddb-information-leaks","status":"publish","type":"post","link":"https:\/\/mjtsai.com\/blog\/2022\/01\/17\/safari-15-indexeddb-information-leaks\/","title":{"rendered":"Safari 15 IndexedDB Information Leaks"},"content":{"rendered":"<p><a href=\"https:\/\/fingerprintjs.com\/blog\/indexeddb-api-browser-vulnerability-safari-15\/\">Martin Bajanik<\/a> (<a href=\"https:\/\/news.ycombinator.com\/item?id=29947396\">Hacker News<\/a>, <a href=\"https:\/\/www.macrumors.com\/2022\/01\/16\/safari-15-webkit-indexeddb-bug\/\">MacRumors<\/a>):<\/p>\n<blockquote cite=\"https:\/\/fingerprintjs.com\/blog\/indexeddb-api-browser-vulnerability-safari-15\/\"><p>In this article, we discuss a software bug introduced in Safari 15&rsquo;s implementation of the IndexedDB API that lets any website track your internet activity and even reveal your identity.<\/p><p>[&#8230;]<\/p><p>In Safari 15 on macOS, and in all browsers on iOS and iPadOS 15, the IndexedDB API is violating the same-origin policy. Every time a website interacts with a database, a new (empty) database with the same name is created in all other active frames, tabs, and windows within the same browser session.<\/p><p>[&#8230;]<\/p><p>The fact that database names leak across different origins is an obvious privacy violation. It lets arbitrary websites learn what websites the user visits in different tabs or windows. This is possible because database names are typically unique and website-specific. Moreover, we observed that in some cases, websites use unique user-specific identifiers in database names. This means that authenticated users can be uniquely and precisely identified.<\/p><p>[&#8230;]<\/p><p>In this case, private mode in Safari 15 is also affected by the leak.<\/p><p>[&#8230;]<\/p><p>Apple engineers began working on the bug as of Sunday, have <a href=\"https:\/\/github.com\/WebKit\/WebKit\/commit\/f73005ed826014988f8ee447de23927749fb56e5\">merged potential fixes<\/a>, and have marked our report as resolved. However, the bug continues to persist for end users until these changes are released.<\/p><\/blockquote>\n<p>The bug was originally <a href=\"https:\/\/bugs.webkit.org\/show_bug.cgi?id=233548\">reported<\/a> in November.<\/p>\n\n<p><a href=\"https:\/\/twitter.com\/jaffathecake\/status\/1482627132903858176\">Jake Archibald<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/jaffathecake\/status\/1482627132903858176\">\n<p>This is a huge bug. On OSX, Safari users can (temporarily) switch to another browser to avoid their data leaking across origins. iOS users have no such choice, because Apple imposes a ban on other browser engines.<\/p>\n<\/blockquote>\n\n<p><a href=\"https:\/\/twitter.com\/slightlylate\/status\/1482460240075395073\">Alex Russell<\/a>:<\/p>\n<blockquote cite=\"https:\/\/twitter.com\/slightlylate\/status\/1482460240075395073\"><p>TFW you <a href=\"https:\/\/infrequently.org\/2021\/08\/webkit-ios-deep-dive\/#apple's-security-argument\">tell regulators<\/a> you need to prevent real competition &ldquo;because privacy and security&rdquo;[&#8230;]<\/p><p>[&#8230;]<\/p><p>Some of us are salty about this because:<\/p><ol><li>our engines don&rsquo;t have this problem<\/li><li>our products on iOS <em>do<\/em> have this problem<\/li><li>Apple won&rsquo;t let us keep our users safe<\/li><\/ol><\/blockquote>\n\n<p><a href=\"https:\/\/safarileaks.com\/\">Safari 15 IndexedDB Leaks<\/a> (<a href=\"https:\/\/news.ycombinator.com\/item?id=29951385\">Hacker News<\/a>):<\/p>\n<blockquote cite=\"https:\/\/safarileaks.com\/\">\n<p>The demo illustrates how any website can learn a visitor's recent and current browsing activity (websites visited in different tabs or windows) using this leak. For visitors, logged into Google services, this demo can also leak Google User IDs and profile pictures.<\/p>\n<\/blockquote>\n\n<p>Previously:<\/p>\n<ul>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/07\/27\/safari-frustrations\/\">Safari Frustrations<\/a><\/li>\n<li><a href=\"https:\/\/mjtsai.com\/blog\/2021\/06\/15\/safari-indexeddb-bug\/\">Safari IndexedDB Bug<\/a><\/li>\n<\/ul>\n\n<p id=\"safari-15-indexeddb-information-leaks-update-2022-01-19\">Update (2022-01-19): <a href=\"https:\/\/pxlnv.com\/linklog\/safari-15-indexeddb\/\">Nick Heer<\/a>:<\/p>\n<blockquote cite=\"https:\/\/pxlnv.com\/linklog\/safari-15-indexeddb\/\">\n<p>You know what is most wild about this for me? I came across this bug when working on some web development last autumn, but I assumed I must be misinterpreting what I was seeing because there was no way such a critical vulnerability would be so transparently visible.<\/p>\n<\/blockquote>\n\n<p id=\"safari-15-indexeddb-information-leaks-update-2022-01-25\">Update (2022-01-25): <a href=\"https:\/\/www.macrumors.com\/2022\/01\/20\/safari-data-leak-bug-fix-ios-15-3\/\">Juli Clover<\/a>:<\/p>\n<blockquote cite=\"https:\/\/www.macrumors.com\/2022\/01\/20\/safari-data-leak-bug-fix-ios-15-3\/\">\n<p>With the  macOS Monterey  12.2 and iOS 15.3 release candidates now available, we could see these updates be made available to the public as soon as next week.<\/p>\n<\/blockquote>","protected":false},"excerpt":{"rendered":"<p>Martin Bajanik (Hacker News, MacRumors): In this article, we discuss a software bug introduced in Safari 15&rsquo;s implementation of the IndexedDB API that lets any website track your internet activity and even reveal your identity.[&#8230;]In Safari 15 on macOS, and in all browsers on iOS and iPadOS 15, the IndexedDB API is violating the same-origin [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"apple_news_api_created_at":"2022-01-17T19:49:41Z","apple_news_api_id":"3a286d4d-6161-48ad-b25c-1bf8e7d25b8f","apple_news_api_modified_at":"2022-01-25T21:21:34Z","apple_news_api_revision":"AAAAAAAAAAAAAAAAAAAAAg==","apple_news_api_share_url":"https:\/\/apple.news\/AOihtTWFhSK2yXBv459Jbjw","apple_news_coverimage":0,"apple_news_coverimage_caption":"","apple_news_is_hidden":false,"apple_news_is_paid":false,"apple_news_is_preview":false,"apple_news_is_sponsored":false,"apple_news_maturity_rating":"","apple_news_metadata":"\"\"","apple_news_pullquote":"","apple_news_pullquote_position":"","apple_news_slug":"","apple_news_sections":"\"\"","apple_news_suppress_video_url":false,"apple_news_use_image_component":false,"footnotes":""},"categories":[2],"tags":[131,143,31,2078,30,2077,355,103,96,328],"class_list":["post-34720","post","type-post","status-publish","format-standard","hentry","category-technology","tag-bug","tag-database","tag-ios","tag-ios-15","tag-mac","tag-macos-12","tag-privacy","tag-safari","tag-web","tag-webkit"],"apple_news_notices":[],"_links":{"self":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/34720","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/comments?post=34720"}],"version-history":[{"count":4,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/34720\/revisions"}],"predecessor-version":[{"id":34794,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/posts\/34720\/revisions\/34794"}],"wp:attachment":[{"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/media?parent=34720"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/categories?post=34720"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mjtsai.com\/blog\/wp-json\/wp\/v2\/tags?post=34720"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}