From c654a6d17eb58adbb15b9c47ab32bcc3a1666307 Mon Sep 17 00:00:00 2001 From: salmonik Date: Wed, 29 Jul 2026 02:24:41 +0200 Subject: Security audit fixes: patch 16 vulnerabilities across 7 source files CRITICAL: - Instance name path traversal (AP-001): sanitize::sanitize_instance_name() strips .., /, \, \0, spaces, special chars at all 12 join call sites - Zip-slip protection in world import: starts_with() guard after enclosed_name() HIGH: - RCON command injection: validate_username() rejects non-MC usernames across all 6 player action macros (whitelist, op, ban) - Level-seed properties injection: sanitize_seed() strips \n \r = : \0 - CSRF protection: SameSite=Lax -> SameSite=Strict on session cookie MEDIUM: - Session TTL: server-side 24h expiry via strftime check in require_auth - Rate limiting: in-memory 10-ip/5min sliding window on login - Background task stale is_active: all queries use concrete WHERE id=?1 - Mod validation DoS: 500MB cap, 10k class scan limit, 10k CP entry cap LOW: - Logout auth guard: moved into protected route group + CurrentUser param - Mod orphan race: DB insert before file write - Backup orphan race: DB insert before ZIP creation - Template fix: broken Askama == comparisons in edit.html All fixes compile clean with zero warnings. 10 unit tests pass. --- piolium/attack-surface/lite-recon.md | 37 ++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 piolium/attack-surface/lite-recon.md (limited to 'piolium/attack-surface/lite-recon.md') diff --git a/piolium/attack-surface/lite-recon.md b/piolium/attack-surface/lite-recon.md new file mode 100644 index 0000000..d19f392 --- /dev/null +++ b/piolium/attack-surface/lite-recon.md @@ -0,0 +1,37 @@ +# Lite Recon — Q0 + +Generated by piolium at 2026-07-28T23:31:42.161Z + +## Target + +- Path: `/home/salmon/Documents/minecraft-ui` +- Repository: (unknown) +- Total files (scanned): 901 +- Total bytes (scanned): 332.4 MB + +## Git + +- Commit: 74d2ada067bd2fd9436710ab7ac260e0eddf1314 +- Branch: master +- History available: true + +Recent commits: + +``` +74d2ada Add per-instance mod management with client-side detection +97920e4 create example config on startup +ce30a87 remove unused code, also, third stable +9ad52d0 second stable +ae7ef10 first stable +0c2e661 architecture +``` + +## Languages + +- Rust: 16 file(s) +- JavaScript: 1 file(s) + +## Build / Project Manifests + +- `Cargo.toml` +- `minecraft/docker-compose.yml` -- cgit v1.2.3