Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cryptography_flutter] Isn't cryptography_flutter relatively vulnerable to Dart/native code interop monitoring? #171

Open
andynewman10 opened this issue Jan 9, 2024 · 0 comments

Comments

@andynewman10
Copy link

First, thanks for the great work.

I am puzzled about a possible vulnerability of this package compared to the pure-Dart cryptography package implementation.

Let's take the iOS example.

cryptography_flutter basically uses iOS interop that links against CryptoKit. CryptoKit gets basically loaded as an external library. Now, if I create a proxy library between the Dart code and CryptoKit (by tampering with the device's binary on a rooted device), I should be able to intercept all calls to CryptoKit, and therefore will get access to unencrypted strings and so on, right? A problem that does not happen with the pure-Dart cryptography package, where an attacker would need to dig into the compiled Dart code itself, which is significantly more tricky and time consuming.

Is there anything that I'm missing, something I misunderstand?

@andynewman10 andynewman10 changed the title [cryptography_flutter] Isn't cryptography_flutter relatively vulnerable to Dart/native code interop? [cryptography_flutter] Isn't cryptography_flutter relatively vulnerable to Dart/native code interop monitoring? Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant