FreeRTOS-Kernel/FreeRTOS-Plus
Archit Aggarwal 5a4fe788d7
Update coreSNTP demo to avoid issues from open UDP socket (#647)
Issue
There is a possible vulnerability of Denial of Service attack by keeping the UDP socket for the SNTP client task always open in the coreSNTP demo. The Denial of Service attack can occur from receiving multiple server response (duplicated or malicious) for a single SNTP time request sent by the client, and thereby, filing the socket network buffer response packets that affect future time requests.

Solution
This PR fixes this vulnerability by updating the demo to keep a UDP socket open only for the time period of waiting for server response, closing the socket on either receiving a server response or experiencing server timeout, and re-creating a UDP socket for the next polling try. This PR also adds another security functionality using a random port for UDP socket to protect against spoofing attacks from "off-network path" attackers.
2021-07-14 13:21:40 -07:00
..
Demo Update coreSNTP demo to avoid issues from open UDP socket (#647) 2021-07-14 13:21:40 -07:00
Source [P3] Submodule pointer update to LTS Libraries (#640) 2021-07-14 12:10:35 -07:00
Test Aws only files spell check (#593) 2021-05-13 16:07:56 -07:00
ThirdParty Move mbedtls tag to v2.25.0 2020-12-14 20:52:09 -08:00
readme.txt Update version numbers to V7.4.1. 2013-04-18 12:58:17 +00:00

Directories:

+ The FreeRTOS-Plus/Source directory contains source code for some of the
  FreeRTOS+ components.  These subdirectories contain further readme files and
  links to documentation.

+ The FreeRTOS-Plus/Demo directory contains a demo application for every most of
  the FreeRTOS+ components.  Lots of the demo applications use the FreeRTOS
  Windows simulator for easy evaluation.  Be aware that FreeRTOS is much slower
  and not deterministic when executed in a simulated environment.

+ See http://www.freertos.org/plus