Skip to content

Commit

Permalink
added protection against game-query-packet spam attack
Browse files Browse the repository at this point in the history
  • Loading branch information
efroemling committed Nov 8, 2024
1 parent 9fa5b8d commit bfb4581
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 48 deletions.
88 changes: 44 additions & 44 deletions .efrocachemap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### 1.7.37 (build 22082, api 9, 2024-11-07)
### 1.7.37 (build 22086, api 9, 2024-11-08)
- Bumping api version to 9. As you'll see below, there's some UI changes that
will require a bit of work for any UI mods to adapt to. If your mods don't
touch UI stuff at all you can simply bump your api version and call it a day.
Expand Down Expand Up @@ -145,6 +145,8 @@
- (build 22072) Added a 'Use insecure connections' option in settings ->
advanced. This may make it possible to play from places such as Iran where ssl
connections are being blocked. Do not enable this if you don't need to.
- (build 22085) Added protection against an attack consisting of spamming
invalid game-query packets.

### 1.7.36 (build 21944, api 8, 2024-07-26)
- Wired up Tokens, BombSquad's new purchasable currency. The first thing these
Expand Down
2 changes: 1 addition & 1 deletion src/assets/ba_data/python/baenv.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@

# Build number and version of the ballistica binary we expect to be
# using.
TARGET_BALLISTICA_BUILD = 22082
TARGET_BALLISTICA_BUILD = 22086
TARGET_BALLISTICA_VERSION = '1.7.37'


Expand Down
3 changes: 2 additions & 1 deletion src/ballistica/classic/support/classic_app_mode.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1506,7 +1506,8 @@ void ClassicAppMode::HandleGameQuery(const char* buffer, size_t size,
g_base->network_writer->PushSendToCall(msg_buffer, SockAddr(*from));

} else {
g_core->Log(LogName::kBaNetworking, LogLevel::kError,
// Log invalid packets only once to avoid weaponized log spam.
BA_LOG_ONCE(LogName::kBaNetworking, LogLevel::kError,
"Got invalid game-query packet of len " + std::to_string(size)
+ "; expected 5.");
}
Expand Down
2 changes: 1 addition & 1 deletion src/ballistica/shared/ballistica.cc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ auto main(int argc, char** argv) -> int {
namespace ballistica {

// These are set automatically via script; don't modify them here.
const int kEngineBuildNumber = 22082;
const int kEngineBuildNumber = 22086;
const char* kEngineVersion = "1.7.37";
const int kEngineApiVersion = 9;

Expand Down

0 comments on commit bfb4581

Please sign in to comment.