Stop the bleeding with malicious NodeDB overwrites (#7596)

This commit is contained in:
Jonathan Bennett
2025-08-11 15:52:28 -05:00
committed by GitHub
parent e69da71d4e
commit f2b935f48f

View File

@@ -14,6 +14,9 @@ bool NodeInfoModule::handleReceivedProtobuf(const meshtastic_MeshPacket &mp, mes
{ {
auto p = *pptr; auto p = *pptr;
if (mp.from == nodeDB->getNodeNum()) {
return false;
}
if (p.is_licensed != owner.is_licensed) { if (p.is_licensed != owner.is_licensed) {
LOG_WARN("Invalid nodeInfo detected, is_licensed mismatch!"); LOG_WARN("Invalid nodeInfo detected, is_licensed mismatch!");
return true; return true;