I only have a small subset of commands allowlisted, and one of them is cd. Cursor is now able to run ANY command because it runs cd first into the directory, then &&'s another command. the allowlist clearly only looks at the first command (cd), so it allows it. Pretty brutal edge case
Steps to Reproduce
I only have a small subset of commands allowlisted, and one of them is cd. Cursor is now able to run ANY command because it runs cd first into the directory, then &&'s another command. the allowlist clearly only looks at the first command (cd), so it allows it. Pretty brutal edge case
Expected Behavior
Follow the allowlist
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
@sanjeed5 any update here? this is actually a pretty brutal bug and is really slowing down our development since we had to turn command allowlisting off entirely to avoid it having free reign over any commands. It runs cd before everything, so we had to remove that and thus now have to approve every single command run
@sanjeed5 Oh great, wasn’t aware. I haven’t seen it happen yet today after turning sandbox back on, so things look good. will let you know if I see it again