sidlatau / flutter_email_sender

Allows send emails from flutter using native platform functionality.
Apache License 2.0
151 stars 84 forks source link

Security: fileprovider allow access to all app files #100

Open itzikkle opened 1 year ago

itzikkle commented 1 year ago

hi, after apk decompile, i see that the package gives access to all the files under app domain, since it uses "." Since the package add to the assembled manifest access to ALL files under the app, It makes a security vulnerability for the app.
All the files can be accesses by other apps, and its problematic policy. The problem, is that in the shared_file_paths.xml, the package put “.” (access to all files). Can you please add something more restrictive (specific files/directories)? manifest: **provider android:name="com.sidlatau.flutteremailsender.FlutterEmailSenderFileProvider" android:exported="false" android:authorities="com.fmr.meitavtradeapp.file_provider" android:grantUriPermissions="true">

**

_shared_filepaths.xml: **<?xml version="1.0" encoding="utf-8"?>

**