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

Disconnection upon receiving payloads encrypted with an unknown key #1831

Closed
looowizz opened this issue Sep 5, 2024 · 3 comments
Closed
Assignees
Labels

Comments

@looowizz
Copy link

looowizz commented Sep 5, 2024

Hi! Thank you for the app :)

I noticed that in the new 2.5.0 version, the app gives an error when decrypting locations from other users:

2024-09-05 20:55:48.373 E [MQTT Call: bramble] MQTTMessageProcessorEndpoint$mqttCallback: Connection Lost MqttException (0) - java.lang.RuntimeException: Decryption failed. Ciphertext failed verification

The app immediately disconnects after this error, doing the usual reconnection attempts afterwards.

  • App build number: 420500014
  • Android version: 14
  • Device: Google Pixel 4a 5G, Samsung Galaxy S22
  • Installation source: F-Droid, Google Play
@jpmens
Copy link
Member

jpmens commented Sep 5, 2024 via email

@looowizz
Copy link
Author

looowizz commented Sep 5, 2024

Other users have payload encryption enabled and we all have inputted the same secret key. However, now thinking about it, i did do some testing with my friend with a different symmetric key which was when the issue started actually. So yeah there are now users present that are using different secret keys.

Not sure but it might also be because my device has entries on the server that use two different encryption keys due to this testing with a friend.

I have disabled payload encryption and now seeing this log message and having the same problem. Will try to delete the old entries on the server when i get access to it again in a few days. and see if that fixes the problem.
2024-09-05 21:51:30.400 W [MQTT Call: bramble] MessageProcessor: Unknown message type received

@looowizz
Copy link
Author

looowizz commented Sep 5, 2024

Just another bit of information to add is that iOS devices work perfectly fine :)

@looowizz looowizz changed the title Unable to decrypt payloads using symmetric key Disconnection upon receiving payloads encrypted with an unknown key Sep 6, 2024
@growse growse added the bug label Sep 8, 2024
@growse growse self-assigned this Sep 8, 2024
@growse growse closed this as completed in 42f6d24 Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants