Repository navigation
security: follow-up hardening for the upload and capture fixes - #474
Merged
Merged
Conversation
Tighten existing spill blob permissions on startup, charge 32 bytes per hook range pair, and open uploads with O_NOFOLLOW on Unix. Tests cover the startup walk, the 32-byte charge and the no-follow open.
skittles-or-oilrz
added a commit
to skittles-or-oilrz/ARTEX
that referenced
this pull request
Nov 22, 2026
Brings the fork up to date with 329 upstream commits, including v0.7.0 and the BaaRai#474 hardening follow-up. Conflicts with the fork's own November fixes, resolved in favour of upstream where it fixed the same thing: - server/auth.go: upstream's same-origin check for cookie-authenticated state changes (ee35fb4) replaces our header-only rule; our test dropped. - server/workspace.go: upstream's resolveWithinRoot confinement replaces our symlink check; our test dropped. - mcphttp/client.go: upstream's origin check and redirect refusal replace ours; our bounded SSE handshake/timeout is kept on top of it. - agent/finding_recorder.go, server/task_llm.go: upstream's version.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #462, #464 and #465, with thanks to @Coff0xc for the original fixes.
Tests cover the startup tightening, the 32-byte charge and the no-follow open.