FreeRTOS-Kernel/FreeRTOS-Plus/Demo/coreSNTP_Windows_Simulator
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
..
DemoTasks Update coreSNTP demo to avoid issues from open UDP socket (#647) 2021-07-14 13:21:40 -07:00
common_demo_include.h Add unauthenticated mode demo for coreSNTP library for time synchronization (#621) 2021-06-10 13:42:42 -07:00
core_pkcs11_config.h Add authentication support to coreSNTP demo (#625) 2021-06-16 10:22:06 -07:00
core_sntp_config.h Add unauthenticated mode demo for coreSNTP library for time synchronization (#621) 2021-06-10 13:42:42 -07:00
core_sntp_demo.sln Add unauthenticated mode demo for coreSNTP library for time synchronization (#621) 2021-06-10 13:42:42 -07:00
demo_config.h Update coreSNTP submodule and coreSNTP demo (#631) 2021-06-25 12:19:00 -07:00
FreeRTOSConfig.h Add unauthenticated mode demo for coreSNTP library for time synchronization (#621) 2021-06-10 13:42:42 -07:00
FreeRTOSIPConfig.h Add unauthenticated mode demo for coreSNTP library for time synchronization (#621) 2021-06-10 13:42:42 -07:00
main.c Add authentication support to coreSNTP demo (#625) 2021-06-16 10:22:06 -07:00
mbedtls_config.h Add authentication support to coreSNTP demo (#625) 2021-06-16 10:22:06 -07:00
readme.url Add unauthenticated mode demo for coreSNTP library for time synchronization (#621) 2021-06-10 13:42:42 -07:00
WIN32.vcxproj Add authentication support to coreSNTP demo (#625) 2021-06-16 10:22:06 -07:00
WIN32.vcxproj.filters Add authentication support to coreSNTP demo (#625) 2021-06-16 10:22:06 -07:00

[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,11
[InternetShortcut]
IDList=
URL=https://www.freertos.org/sntp/sntp-demo.html