Skip to content
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

Fixed potential denial of service attack in DTLS server #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CoAP.NET/CoAP.Std10.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,7 @@ It is intented primarily for research and verification work.

<ItemGroup>
<PackageReference Include="Com.AugustCellars.COSE" Version="1.6.0" />
<PackageReference Include="Portable.BouncyCastle" Version="1.8.10" />
<PackageReference Include="System.Collections.Specialized" Version="4.3.0" />
<PackageReference Include="System.Net.NameResolution" Version="4.3.0" />
<PackageReference Include="System.Net.Primitives" Version="4.3.0" />
Expand Down
5 changes: 5 additions & 0 deletions CoAP.NET/DTLS/DtlsServer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ public DtlsServer(TlsKeyPairSet serverKeys, KeySet userKeys)
public OneKey AuthenticationKey => mPskIdentityManager.AuthenticationKey;
public Certificate AuthenticationCertificate { get; private set; }

public override int GetHandshakeTimeoutMillis()
{
return 60000; // 60 seconds
}

// Chain all of our events to the next level up.

private void OnTlsEvent(Object o, TlsEvent e)
Expand Down
2 changes: 1 addition & 1 deletion CoAP.Test/CoAP.Test.Std10.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<PackageReference Include="MSTest.TestAdapter" Version="1.3.2" />
<PackageReference Include="MSTest.TestFramework" Version="1.3.2" />
<PackageReference Include="PeterO.Cbor" Version="4.0.1" />
<PackageReference Include="Portable.BouncyCastle" Version="1.8.5" />
<PackageReference Include="Portable.BouncyCastle" Version="1.8.10" />
<PackageReference Include="Com.AugustCellars.COSE" Version="1.6.0" />
</ItemGroup>

Expand Down