Can folder names be user input?
If you interpolate them into a script context! yes. Swift devs often use AppleScript, but it's as dangerous as eval(). Learn about a vulnerability we found in OpenInTerminal:
www.sonarsource.com/blog/escape-...
#appsec #security #vulnerability
sonarsource.com
Escape from AppleScript: Even folder names can be user input
Learn how an AppleScript injection flaw in OpenInTerminal let crafted folder names execute arbitrary code and how safer APIs prevent similar attacks.