A short introduction to the IndexedDB API
Safari 15's IndexedDB API violated the same-origin policy by creating cross-origin-duplicated databases, allowing any website to learn the names of databases used by other websites in the same browser session. This enabled tracking of visited sites and, when database names contained unique user identifiers, precise identification of users.
fingerprintjs.com
Published on fingerprintjs.com
In this article, we discuss a software bug introduced in Safari 15’s implementation of the IndexedDB API that lets any website track your internet activity and even reveal your identity.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely a bug in Safari's IndexedDB implementation that failed to isolate databases by origin, causing database names to be duplicated across all active frames, tabs, and windows in the same session.
Impact
Any website could track a user's browsing activity in real time and, if database names contained unique identifiers, precisely identify the user; private mode offered limited protection, and ad blockers or tracking prevention could block some leaks.
What the attacker needed
Safari 15 on macOS or any browser on iOS/iPadOS 15; victim visits a site that uses IndexedDB; attacker's site open in another tab or frame
How it was found
- Open Safari 15 on macOS or any browser on iOS/iPadOS 15.
- Visit a website that uses IndexedDB (e.g., YouTube, Google Calendar).
- In another tab, call indexedDB.databases() to list all databases.
- Observe cross-origin-duplicated databases from the first site.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
Websites are supposed to keep their data separate, like each having its own locked drawer. Safari 15 accidentally let any website see the names of drawers used by other websites open in the same browser. That means a malicious site could tell which other sites you visited and sometimes even who you are.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.