See how bacnet-stack compares to other vendors in security performance
bacnet-stack through 1.7.0 contains a missing authorization vulnerability in bvlcbbmdenabledhandler that allows unauthenticated attackers to inject broadcasts by sending Distribute-Broadcast-To-Network messages without Foreign Device Table registration. Attackers can send a single UDP datagram to port 47808 to amplify Forwarded-NPDUs to local subnets, BDT peers, and foreign devices, and trigger local execution of broadcast confirmed requests.
BACnet Stack is a BACnet open source protocol stack C library for embedded systems. Prior to versions 1.4.4 and 1.5.1, there is a stack-based out-of-bounds write / stack-buffer-overflow in bacnet-stack when the server processes a malicious Atomic-Read-File request in record access mode. The bug is triggered on the real server side. A crafted request can set an excessively large RecordCount, which is later used as the loop bound for writing record data into a stack-allocated BACNETATOMICREADFILEDATA data structure. However, the stack object only has space for one fileData element. When the loop reaches i = 1, the code computes &data->fileData[1], which is already out of bounds, and the resulting invalid pointer is passed down to memmove(), causing a stack-buffer-overflow. This issue has been patched in versions 1.4.4 and 1.5.1.