You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
--save-script destination can be redirected by other local users who can write an ancestor directory #4565
open --save-script=<path> creates a missing parent directory and moves the script into place by rename or link. This happens on the daemon host for a local daemon, and on the client for a remote daemon (#4511).
When another local user can write a directory on the way to the destination, they can swap that directory or plant a symbolic link between the parent's creation and the final rename. Examples are a shared group-writable directory, or a world-writable directory without the sticky bit. The script then lands where they choose, or they can read it from a directory they control. Local and remote recordings have the same exposure.
The issue reports a concrete security defect in --save-script handling where writable ancestor directories can let another local user redirect or read the script, and it specifies required behavior plus test/docs completion conditions.
Activity
apex-sentinel-staging commentedon Nov 15, 2026
Apex Sentinel · Issue review
Suggested label:
bugThe issue reports a concrete security defect in
--save-scripthandling where writable ancestor directories can let another local user redirect or read the script, and it specifies required behavior plus test/docs completion conditions.Required sections
fix(daemon): refuse a batch that would close an armed remote recording