contiki-ng / tinydtls

A version of tinyDTLS that is refactored to be more easy to use "standalone" (e.g. without bindings to a specific IP-stack).
Other
8 stars 25 forks source link

epoch number wrongly reused #25

Open jerrytesting opened 2 years ago

jerrytesting commented 2 years ago

In the master branch 53a0d97, DTLS servers allow remote attackers to reused the same epoch number within two times the TCP maximum segment lifetime, which is prohibited in RFC6347. This vulnerability allows remote attackers to obtain sensitive application data of connected clients.

This bug could be reproduced by sending packets with the same epoch number to complete two times handshakes. The following shows the packets captured by Wireshark, which display the two times of handshakes completed. reused