Skip to content

engine: fix a possible crash exploit#172

Closed
RaphaelIT7 wants to merge 1 commit intoSource-Authors:masterfrom
RaphaelIT7:rmod-patch-9
Closed

engine: fix a possible crash exploit#172
RaphaelIT7 wants to merge 1 commit intoSource-Authors:masterfrom
RaphaelIT7:rmod-patch-9

Conversation

@RaphaelIT7
Copy link
Contributor

@RaphaelIT7 RaphaelIT7 commented Feb 4, 2026

Found this while working on my networking stuff, where I was overflowing the packetNumber causing lots of issues.
Making them unsigned should ensure that if they were negative for some reason, either they get still handled OR they hit one of the limits.
From testing around- anyone could have sent the malformed packet to a socket, and it would've crashed the server(probably worked on clients too) or could've been exploited further.
GMod & TF2 seems to have fixed this
image
as they internally use an unsigned int too.
image

Note

TF2 for example shows 255/shows the unsigned value unlike GMod which saved the signed value to display

Found this while working on my networking stuff
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.

1 participant