Server 2.10.4: HTTPS for the web panel and hostile client hardening
- Panel over HTTPS on the game port (TLS handshake detected like HTTP); self-signed certificate in data/panel_cert.pfx (fingerprint in the log) or an own PFX (PanelCertificatePath); remote HTTP is redirected to HTTPS (not locally / behind a proxy); cookie Secure over HTTPS; PanelHttps=false turns it off - Panel login: also locked per user name (16 failures / 15 min), failure lists bounded, user names in the log without control characters - panel_users.json, panel_sessions.json, server.json, certificate: owner-only on Linux - Players: names/chat without control or direction characters (no fake log lines), no '<' '>' in names; '* ' system-style chat, msco.* messages (time/weather) and MSCO_INSTALL only from admins; NaN/absurd money changes dropped (could break the shared money for good) - Extra headers: Permissions-Policy, Cross-Origin-Opener-Policy - 11 new tests (165 pass) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+3
-1
@@ -158,7 +158,9 @@ public sealed class WorldState
|
||||
{
|
||||
ChangesSinceSave++;
|
||||
if (payload.Length < 4) return;
|
||||
MoneyDelta += BitConverter.ToSingle(payload, 0);
|
||||
float delta = BitConverter.ToSingle(payload, 0);
|
||||
if (!float.IsFinite(delta)) return;
|
||||
MoneyDelta += delta;
|
||||
Dirty = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user