-
Notifications
You must be signed in to change notification settings - Fork 117
tweak(network): Add file extension validation to network map transfer #1818
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
tweak(network): Add file extension validation to network map transfer #1818
Conversation
Skyaero42
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So what happens if a file id blocked? Does the transfer freeze? Game mismatch?
It gets ignored and logged - this is the same behavior as the existing path traversal protection.
Note: I have not confirmed this with testing yet, I don't have my testing PC with me |
Generals/Code/GameEngine/Source/Common/System/SaveGame/GameState.cpp
Outdated
Show resolved
Hide resolved
bf35aec to
7ec0ac6
Compare
Generals/Code/GameEngine/Source/GameNetwork/ConnectionManager.cpp
Outdated
Show resolved
Hide resolved
Generals/Code/GameEngine/Source/GameNetwork/ConnectionManager.cpp
Outdated
Show resolved
Hide resolved
xezon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good.
|
Needs rebase. |
18545a7 to
5648a6d
Compare
Adds whitelist-based validation of file extensions during map transfers and save game loading to prevent arbitrary file types from being written to disk.