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

Handling wrong packet #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

michal-ordelt
Copy link

Having router socket binded to port x.
Obtain packet sender from https://packetsender.com/ or something similar
Use the packet sender and send packet with following hex value: ff ff ff ff ff ff ff ff e2 aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa aa
to port x
This results in:
System.OverflowException: Array dimensions exceeded supported range.
at NetMQ.GCBufferPool.Take(Int32 size)
at NetMQ.Msg.InitPool(Int32 size)
at NetMQ.Core.Transports.V1Decoder.EightByteSizeReady()
at NetMQ.Core.Transports.DecoderBase.ProcessBuffer(ByteArraySegment data, Int32 size)
at NetMQ.Core.Transports.StreamEngine.ProcessInput()
and this crashes whole application.

This can be triggered for example by security scanner (that's how we learned)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant