GHSL-2024-015: Cross-Site Request Forgery (CSRF) in the livemarks browser extension - CVE-2024-30252
The livemarks browser extension exposes a web-accessible subscribe page that takes a feed URL from the query string and fetches it with the extension's permissions. A malicious website could embed that page in an iframe to make the extension send an authenticated GET request to an arbitrary URL.
The livemarks browser extension is vulnerable to a CSRF attack. A malicious website may be able to coerce the extension to send an authenticated GET request to an arbitrary URL.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the extension exposed a page as a web-accessible resource that accepted an arbitrary URL from the query string and fetched it with the extension's cross-origin permissions, without checking who initiated the request.
Impact
A blind CSRF could break the integrity of servers on a private network by sending authenticated requests to them, but the attacker first needs to leak the extension's UUID, which is only possible by convincing the user to install another extension with suitable permissions.
What the attacker needed
Firefox with livemarks extension installed; Attacker can leak the extension UUID; Victim visits attacker-controlled page
The fix
The vulnerability was fixed in version 3.7.
How it was found
- Host an HTML page containing an iframe that points to the extension's subscribe page with an attacker-chosen domain in the query string.
- Visit that page with the livemarks extension installed.
- The extension sends an authenticated request to the attacker-supplied domain.
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 report has not been written yet. The Original tab links to the source.
A browser extension can have special permissions to make requests to any website, including ones on your home network. This extension had a page that any website could load in a hidden frame, and that page would fetch whatever address was in its link. So a bad website could make your browser send a request to a private server using the extension's permissions, even though the bad website itself could not.
What is CSRF?
Another site makes a signed-in user's browser perform an action they did not intend.