Skip to content
Access control Disclosed report Beginner

[Android org.torproject.android] Possible to force list of bridges

Orbot's main activity accepted a bridge:// deep link without authentication, letting any installed app change the user's bridge configuration.

bagipro Follow

Originally disclosed on HackerOne

  • Disclosed after 30 days

Do the following thing from ADB to emulate the activity start:

adb am start -n org.torproject.android/.OrbotMainActivity -a android.intent.action.VIEW -d bridge://xxx

Or create a malware app with the following code:

Java
        Intent intent = new Intent("android.intent.action.VIEW");
        intent.setClassName("org.torproject.android", "org.torproject.android.OrbotMainActivity");
        intent.setData(Uri.parse("bridge://xxx"));
        startActivity(intent);

And new list of bridges will be applied (notification will be shown and new value will be added to shared_prefs).

It's dangerous because any not authorized app (third party app) installed on the same device will be able to modify settings. On the newest Android devices this not authozed change can be done remotely from any web-browser using Instant Apps (app that doesn't require install to execute any code).

Attachments

Screenshot_2017-07-22-21-29-11.png
Screenshot_2017-07-22-21-29-11.png From the original on HackerOne
Screenshot_2017-07-22-21-28-58.png
Screenshot_2017-07-22-21-28-58.png

The original report as published on HackerOne, by bagipro. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 exported activity processes the 'bridge://' deep link without verifying the caller or requiring user confirmation.

What the attacker needed

Attacker app installed on same device; or ADB access; or Instant Apps via browser

How it was found

  1. Use ADB to start the Orbot main activity with a VIEW intent carrying a bridge:// URI.
  2. Alternatively, build a malicious app that sends the same intent to the Orbot activity.
  3. Observe that the new bridge list is applied and stored in shared preferences.

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.

Android apps can expose activities that other apps can launch. Here, Orbot's main screen accepted a special link that changed its bridge settings without asking the user. Any other app on the phone could send that link, so a malicious app could silently alter how Orbot connects to the Tor network.

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.

More by bagipro

View all

13 more disclosed reports, best first.

More from Tor

View all

The newest disclosed reports for this program.

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.