mirror of
https://github.com/rommapp/romm.git
synced 2026-11-29 01:58:41 +01:00
Security (from the step 1 audit): - Inflate zip entries a chunk at a time, so an entry whose header understates its size fails the CRC check instead of inflating in full. - Cap the broker manifest at 1 MiB before reading it. - Rebuild copied entries as regular files, keeping only permission bits, so a symlink entry cannot ride into the container. Code review (xhigh): - Bound the broker error body read at 1 MiB and truncate what is logged and returned. - De-duplicate refusal hints in Stream.vue. - Unpack only save members as zips; a zip-shaped state stays whole. - Pick the newest state off an archive by created_at. - Run newest_restorable off the event loop. - Name a carried base entry by its staged path in the manifest.