Files
Dylan M. Taylor cac85b95a1 Scripts: refuse to write into the app's settings folder
With Allow Scripts to Write Files and Access Network on, a script could write
any path, including the app's own settings folder. Files there are run or
loaded without asking: Scripts/Startup at launch, Scripts/Shutdown at quit,
ScriptUI Panels from the Window menu, and helpers/ and Plug-ins/ hold programs
the app starts. One write therefore bought code execution at every later
launch, even after the preference was turned off.

Every script write under the settings folder is now refused whatever the
preference says. The check is in check_access, so write, append, copy
destinations, mkdir and remove all pass through it, and the path is normalized
first so a symlink cannot point around it. Writes elsewhere are unchanged.
2026-11-14 13:49:21 -05:00
..