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
The Guard's Wait-Loop Rule Never Reads an eval Argument #2080
The wait-loop rule never reads the argument of eval. It reads a sh -c/bash -c payload as the script that shell runs, but eval runs its arguments as shell text just the same, and the guard passes them as plain operands.
Reproduce (constructed)
Both are allowed on develop, and both loop under timeout 3 bash until the timeout kills them:
eval"until true; do sleep 1; done"evaluntil [ -f y \";\"-lt 5 ]\;do sleep 1\;done
Done looks like
eval's arguments, joined with spaces as bash joins them, are read as a payload the way a shell wrapper's -c argument is, both commands above are denied, and self-test rows pin them.
Found by the local strict review of the #1998 fix (handoff #2073). It is older than that fix, and is the same kind of blind spot as a wait inside a script file.
Activity
Keep the Guard's Quote Mask When an Escape Sits Outside the Loop Cond…
Read an eval's Arguments as a Wait-Loop Payload in the Guard (#2452)
Promote develop to main: Read an eval's Arguments as a Wait-Loop Payl…