mirror of
https://github.com/meshtastic/firmware.git
synced 2025-05-09 23:02:00 +00:00
Fix vulnerability with "h.from == 0"
// altered packed with "from == 0" can do Remote Node Administration without permission
This commit is contained in:
parent
48ea836a5c
commit
3eaa054c68
@ -347,7 +347,11 @@ QueueStatus RadioLibInterface::getQueueStatus()
|
|||||||
airTime->logAirtime(RX_ALL_LOG, xmitMsec);
|
airTime->logAirtime(RX_ALL_LOG, xmitMsec);
|
||||||
} else {
|
} else {
|
||||||
const PacketHeader *h = (PacketHeader *)radiobuf;
|
const PacketHeader *h = (PacketHeader *)radiobuf;
|
||||||
|
// altered packed with "from == 0" can do Remote Node Administration without permission
|
||||||
|
if (h->from == 0) {
|
||||||
|
LOG_WARN("ignoring received packet without sender\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
rxGood++;
|
rxGood++;
|
||||||
|
|
||||||
// Note: we deliver _all_ packets to our router (i.e. our interface is intentionally promiscuous).
|
// Note: we deliver _all_ packets to our router (i.e. our interface is intentionally promiscuous).
|
||||||
|
Loading…
Reference in New Issue
Block a user