-
-
Notifications
You must be signed in to change notification settings - Fork 26
Description
Hi, I was wondering how secure would something like Shelly BLU Button be for opening a garage for example. For me a basic replay protection is a must.
I found this bit of code. I see new_encryption_counter >= 100 as a condition to discard the advertisement. My guess would be that it needs to be more than > 0, because you would have only one attempt to sync after changing a battery.
Am I right that first 100 presses (and also 100 after 4 billion presses) are not protected from replay?
But I would expect something like > 10 and a clear description in the comment and in the device manual that you need to press it N times before it becomes secure-ish. I also wonder if Shelly gateway uses the same code?
If there was a two way communication (as discussed here #146) there could be a challenge response thingy which would be much more secure. The Shelly BLU Button seems like it can vibrate, so there has to be some sort of two way communication when used in the Shelly ecosystem.