diff options
| author | salmonik <salmonik@tuta.io> | 2026-07-29 02:24:41 +0200 |
|---|---|---|
| committer | salmonik <salmonik@tuta.io> | 2026-07-29 02:24:41 +0200 |
| commit | c654a6d17eb58adbb15b9c47ab32bcc3a1666307 (patch) | |
| tree | 545544bf7d805254415da787fad1cdc711767833 /piolium/attack-surface/lite-recon.md | |
| parent | Add per-instance mod management with client-side detection (diff) | |
| download | minecraft-ui-c654a6d17eb58adbb15b9c47ab32bcc3a1666307.tar.gz minecraft-ui-c654a6d17eb58adbb15b9c47ab32bcc3a1666307.zip | |
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.
Diffstat (limited to 'piolium/attack-surface/lite-recon.md')
| -rw-r--r-- | piolium/attack-surface/lite-recon.md | 37 |
1 files changed, 37 insertions, 0 deletions
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 @@ | |||
| 1 | # Lite Recon — Q0 | ||
| 2 | |||
| 3 | Generated by piolium at 2026-07-28T23:31:42.161Z | ||
| 4 | |||
| 5 | ## Target | ||
| 6 | |||
| 7 | - Path: `/home/salmon/Documents/minecraft-ui` | ||
| 8 | - Repository: (unknown) | ||
| 9 | - Total files (scanned): 901 | ||
| 10 | - Total bytes (scanned): 332.4 MB | ||
| 11 | |||
| 12 | ## Git | ||
| 13 | |||
| 14 | - Commit: 74d2ada067bd2fd9436710ab7ac260e0eddf1314 | ||
| 15 | - Branch: master | ||
| 16 | - History available: true | ||
| 17 | |||
| 18 | Recent commits: | ||
| 19 | |||
| 20 | ``` | ||
| 21 | 74d2ada Add per-instance mod management with client-side detection | ||
| 22 | 97920e4 create example config on startup | ||
| 23 | ce30a87 remove unused code, also, third stable | ||
| 24 | 9ad52d0 second stable | ||
| 25 | ae7ef10 first stable | ||
| 26 | 0c2e661 architecture | ||
| 27 | ``` | ||
| 28 | |||
| 29 | ## Languages | ||
| 30 | |||
| 31 | - Rust: 16 file(s) | ||
| 32 | - JavaScript: 1 file(s) | ||
| 33 | |||
| 34 | ## Build / Project Manifests | ||
| 35 | |||
| 36 | - `Cargo.toml` | ||
| 37 | - `minecraft/docker-compose.yml` | ||
