-
Notifications
You must be signed in to change notification settings - Fork 58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server DoS vulnerability via malformed handshake sequence #244
Comments
I appreciate your efforts in fuzzy testing with tinydtls. But, please, not pictures, they are useless! Please provide ip-captures! |
This pcap file is provided for reference and understanding the issue. Please review the attached pcap file for further details. |
with eclipse/tinydtls I get:
Waiting for a response... It seems to stick at the HVR. |
In my ex.py, both the cookie and random values were fixed to 01. Did you clone using git clone https://github.com/5angjun/tinydtls-fuzz.git? |
I didn't clone your fork. It's not that common to modify something, and the report some errors. For that test, I cherry-picked that commit onto my repo: https://github.com/boaks/tinydtls There the bug is gone. I guess, it's fixed by one of the pending PRs. I will check that next week. |
By the way: your capture shows port 20000 instead of 20220. |
I also don’t prefer modifying something and reporting on it, as it could compromise the integrity of the original program. By the way, the port mentioned above might be slightly different. However, only the port is different; the exchanged packets remain the same. The main issue and the packet content are identical. Thank you. |
Thank you, I was able to reproduce this issue as well. |
It seems to be caused by the ECC implementation of the current main branch. |
Bug Information
Description
A Denial of Service (DoS) vulnerability has been identified in TinyDTLS. By sending a crafted handshake sequence, an attacker can cause the server to cease responding to valid requests. Although the server does not crash, the service becomes unavailable, potentially disrupting legitimate client connections.
Steps to Reproduce
git clone https://github.com/5angjun/tinydtls-fuzz.git
./autogen.sh && ./configure && make -j$(nproc) && cd tests && ./dtls-server
python3 ./ex.py
cd tests && ./dtls-client localhost
Server Response Log
The text was updated successfully, but these errors were encountered: