[GH-ISSUE #7531] [Issue]: Read outside archives strictly (agent packages, custom repositories, .charx, .marinara) #4191

Closed
opened 2026-10-21 06:12:16 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Oct 13, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7531

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Marinara opens ZIP archives it did not create in four places: Agent package installs, custom Agent repositories, .charx character cards and .marinara packages. These archives should be read strictly, so that every existing size limit applies to what is actually read and an archive whose own records contradict each other is refused.

Expected behavior

  • Honest archives from common tools (git archive / GitHub downloads, Info-ZIP, macOS, Python, Java, JavaScript zip libraries, Marinara's own exports) import exactly as before, including ZIP64 archives and archives with data descriptors.
  • Every existing size limit stays as it is and holds for the bytes that are read.
  • A self-contradictory or unsupported archive is refused with a plain message.

Actual behavior

The size limits are checked against the sizes each archive states about itself, and the archive is not checked for internal consistency before it is read.

Steps to reproduce

  1. Found by code review; there is no user report.
  2. Affected entry points: Agent package install, custom Agent repository preview/sync, .charx import and inspect, .marinara package import.

Environment

  • Marinara Engine version: 2.5.0 / staging
  • Install type: all
  • OS + version: all
  • Browser or app shell: all

Logs, screenshots, or video

None.

Additional context

Full-backup restore, the NovelAI response reader and the sidecar download are out of scope.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Oct 13, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7531 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Marinara opens ZIP archives it did not create in four places: Agent package installs, custom Agent repositories, `.charx` character cards and `.marinara` packages. These archives should be read strictly, so that every existing size limit applies to what is actually read and an archive whose own records contradict each other is refused. ## Expected behavior - Honest archives from common tools (git archive / GitHub downloads, Info-ZIP, macOS, Python, Java, JavaScript zip libraries, Marinara's own exports) import exactly as before, including ZIP64 archives and archives with data descriptors. - Every existing size limit stays as it is and holds for the bytes that are read. - A self-contradictory or unsupported archive is refused with a plain message. ## Actual behavior The size limits are checked against the sizes each archive states about itself, and the archive is not checked for internal consistency before it is read. ## Steps to reproduce 1. Found by code review; there is no user report. 2. Affected entry points: Agent package install, custom Agent repository preview/sync, `.charx` import and inspect, `.marinara` package import. ## Environment - Marinara Engine version: 2.5.0 / `staging` - Install type: all - OS + version: all - Browser or app shell: all ## Logs, screenshots, or video None. ## Additional context Full-backup restore, the NovelAI response reader and the sidecar download are out of scope. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:12:16 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#4191
No description provided.