aboutsummaryrefslogtreecommitdiff
path: root/NorthstarDedicatedTest/miscserverfixes.cpp
diff options
context:
space:
mode:
authorBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-03-22 19:46:13 +0000
committerBobTheBob <32057864+BobTheBob9@users.noreply.github.com>2022-03-22 19:46:13 +0000
commit2cb92fc902153b0fb50b367271517fbbd0900ace (patch)
treea891560a1924c53af29e682294b8ef3bbf2257d0 /NorthstarDedicatedTest/miscserverfixes.cpp
parent92f77b231ac324cc1326bef31251fc6b86df1f3b (diff)
downloadNorthstarLauncher-2cb92fc902153b0fb50b367271517fbbd0900ace.tar.gz
NorthstarLauncher-2cb92fc902153b0fb50b367271517fbbd0900ace.zip
remove ClientCommandKeyValues
Diffstat (limited to 'NorthstarDedicatedTest/miscserverfixes.cpp')
-rw-r--r--NorthstarDedicatedTest/miscserverfixes.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/NorthstarDedicatedTest/miscserverfixes.cpp b/NorthstarDedicatedTest/miscserverfixes.cpp
index 334c5fa3..fca9c169 100644
--- a/NorthstarDedicatedTest/miscserverfixes.cpp
+++ b/NorthstarDedicatedTest/miscserverfixes.cpp
@@ -21,4 +21,17 @@ void InitialiseMiscServerFixes(HMODULE baseAddress)
*(ptr++) = 0x90; // nop
*ptr = 0x90; // nop
}
+
+ // ret at the start of CServerGameClients::ClientCommandKeyValues as it has no benefit and is forwarded to client (i.e. security issue)
+ // this prevents the attack vector of client=>server=>client, however server=>client also has clientside patches
+ {
+ char* ptr = reinterpret_cast<char*>(baseAddress) + 0x153920;
+ TempReadWrite rw(ptr);
+ *ptr = 0xC3;
+ }
+}
+
+void InitialiseMiscEngineServerFixes(HMODULE baseAddress)
+{
+
} \ No newline at end of file