Skip to content
Access control Write-up Advanced

gaining access to anyones browser without them even visiting a website

Arc's Firestore security rules let any user update the creatorID field on their own boost document to another user's ID, so a malicious boost containing arbitrary JavaScript would run on the victim's browser when they visited the targeted site. The author also found that boosts execute on privileged chrome:// pages, allowing escalation.

kibty.town

Published on kibty.town

we start at the homepage of arc. where i first landed when i first heard of it. i snatched a download and started analysing, the first thing i realised was that arc requires an account to use, why do they require an account?

The author, on kibty.town

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 the Firestore security rules allowed a user to update the creatorID field on their own boost document to an arbitrary value, and the client trusted that field to decide which boosts to apply.

Impact

An attacker could run arbitrary JavaScript in a victim's Arc browser on any site they targeted, and because boosts also ran on privileged pages such as chrome://settings, this could escalate to code execution with browser privileges.

What the attacker needed

An Arc account; victim's user ID; victim visits the targeted site

The fix

Arc patched the issue, added a setting to disable boosts, and later moved off Firebase.

How it was found

  1. Sign up and capture the app's Firestore traffic, for example with a Frida script on the Objective-C Firebase SDK.
  2. Create a simple boost on a target site such as google.com from your own account.
  3. Update the boost's creatorID field to the victim's user ID.
  4. Obtain the victim's user ID via referrals, published boosts or shared easels.
  5. Have the victim visit the targeted site, where the boost's JavaScript runs.

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.

Arc is a web browser that lets people customise websites with small scripts called boosts. The browser stored these boosts in a shared cloud database and trusted a field saying who owned each one, but it never checked that the person editing the field was really that owner. So an attacker could take their own boost, relabel it as belonging to someone else, and the victim's browser would run the attacker's code on whatever site the boost targeted.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.