You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RSocket server is subject to empty frames flood denial-of-service #895
RSocket FrameReassembler1, 2 silently accepts empty Payload frames with follows flag set - ones with empty both data and metadata.
In this case RSocket stream does zero progress while consuming non-zero CPU, memory and network resources. Because empty frames rate is limited only by network connection width that can be quite large, this may be exploited by external rogue clients to reduce server capacity, responsiveness and lead to elevated costs caused by such parasite traffic.
We will be adding validation on the frame size > 64 as well as going to check that if empty or frame size is less than 64 bytes than this frame has to be the last one. Otherwise, the connection will be terminated.
For 1.1 the stream will be terminated instead of the whole connection
@rstoyanchev also, we need to add one more check to ensure that size of all fragments are equal and if the new one is less/greater than the last one, we have to consider it as a terminal frame as well. An attacker can send frames different in size, thus a check for homogenity should be added in place in order to detect a corruption
Activity
OlegDokuka commentedon Jul 24, 2020
Good catchup 👍
OlegDokuka commentedon Jul 27, 2020
We will be adding validation on the frame size > 64 as well as going to check that if empty or frame size is less than 64 bytes than this frame has to be the last one. Otherwise, the connection will be terminated.
For 1.1 the stream will be terminated instead of the whole connection
mostroverkhov commentedon Jul 30, 2020
I am not sure why this is marked as "enhancement" given It is covered by CVE - anyways, here another "enhancement" candidate - #898
OlegDokuka commentedon Jul 30, 2020
This is not a bug, but rather an improvement to an existing solution so it will be protected against specific malicious use-case
OlegDokuka commentedon Jul 30, 2020
@rstoyanchev also, we need to add one more check to ensure that size of all fragments are equal and if the new one is less/greater than the last one, we have to consider it as a terminal frame as well. An attacker can send frames different in size, thus a check for homogenity should be added in place in order to detect a corruption
Reject empty fragments
Reject empty fragments
Reject empty fragments
Reject empty fragments
Reject frames less than min MTU size
Reject frames less than min MTU size (#913)