Skip to content
DoS Write-up Intermediate

How to brick all Samsung phones

An exported broadcast receiver in Samsung's ContainerAgent app allowed any app on the device to send intents that lock the Knox container or switch to the first user, causing a local denial of service. An attacker could make the phone unusable by repeatedly triggering these actions.

medium.com

Published on medium.com

Few months ago, I bought a Samsung phone in order to analyse it. After few hours I found an unprotected receiver in the ContainerAgent application.

Elliot Alderson, on medium.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

Root cause

The broadcast receiver SwitcherBroadcastReceiver was exported by default and did not verify the sender or restrict the actions it would perform.

Impact

The device becomes inoperable due to a local denial of service, as the container is locked and the launcher resets repeatedly.

What the attacker needed

Malicious app installed on the device; victim opens the malicious app once

The fix

The receiver should be made non-exported or protected by a permission, and the vendor should validate the sender before performing sensitive actions.

How it was found

  1. Identify the exported receiver SwitcherBroadcastReceiver in ContainerAgent.
  2. Determine the expected action and extras: ACTION_COMMAND, EXTRA_COMMAND_ID, and user_handle.
  3. Send an intent with command ID 1001 and user_handle 150 to lock the Knox container.
  4. Send an intent with command ID 1002 and user_handle 0 to switch to the first user.
  5. Create a locker app that sends these intents every second and hides its icon.

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.

A broadcast receiver is a component in Android apps that can receive messages (intents) from other apps. If it is exported, any app can send it messages. Here, the receiver was exported and would perform actions like locking a secure container or switching users when it received certain messages, so a malicious app could abuse it to disrupt the phone.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.