Skip to content
Access control Write-up Intermediate

Vulnerability Report at ToDesktop

The build container had broader permissions than necessary, allowing a postinstall script in an application's package.json to retrieve Firebase credentials. An attacker could have accessed the ToDesktop database, user accounts, and deployed unauthorised updates to applications.

todesktop.com

Published on todesktop.com

On October 2nd 2024, a security researcher (T/A xyz3va) reported that she was able to gain access to ToDesktop’s Firebase Service Admin Account.

The author, on todesktop.com

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

Impact

An attacker could have accessed the ToDesktop database, user accounts, and deployed unauthorised updates to applications, but no malicious usage was detected.

What the attacker needed

Ability to submit an app with a postinstall script

The fix

The vulnerability was fixed by removing the Firebase Service Account token and implementing a restricted-access solution granting only minimal permissions for builds.

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.

When an app is built, a script can run automatically after installing dependencies. Here, that script could read secret keys that gave access to the company's Firebase admin account. With those keys, someone could have read or changed data and pushed malicious app updates.

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.