apache / apache/mynewt-nimble

Notifications are a free for all, security be damned.

Open
#2,131 2 comments 1 reaction 1 assignee Claimed by @sjanc View on GitHub
Dominant language
C
Stars
893
Forks
512
Avg merge
13d 31m
Merged PRs (30d)
7

Description

Nimble automatically creates a Client Configuration Characteristic for every Characteristic that allows notifications or indications that is writeable without encryption or authentication:

https://github.com/apache/mynewt-nimble/blob/c802fe74b3034bd163f98e1de5761ac216ba43d6/nimble/host/src/ble_gatts.c#L823

This allows any connected client to subscribe to any notification and get the values in plain text, independent of the confidentiality settings of the characteristic itself.

It should probably set the appropriate `BLE_ATT_F_READ_*` and `BLE_ATT_F_WRITE_*` flags if any of `BLE_ATT_F_READ_{ENC,AUTHEN,AUTHOR}` is set for the base characteristic.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.