mirror of
https://github.com/opnsense/src.git
synced 2026-02-26 11:20:29 -05:00
Austin Group bugs #1226 and #1250 changed the requirements for shell scripts without #! (POSIX does not specify #!; this is about the shell execution when execve(2) returns an [ENOEXEC] error). POSIX says we shall allow execution if the initial part intended to be parsed by the shell consists of characters and does not contain the NUL character. This allows concatenating a shell script (ending with exec or exit) and a binary payload. In order to reject common binary files such as PNG images, check that there is a lowercase letter or expansion before the last newline before the NUL character, in addition to the check for the newline character suggested by POSIX. |
||
|---|---|---|
| .. | ||
| bg1.0 | ||
| bg2.0 | ||
| bg3.0 | ||
| bg4.0 | ||
| bg5.0 | ||
| bg6.0 | ||
| bg6.0.stdout | ||
| bg7.0 | ||
| bg8.0 | ||
| bg9.0 | ||
| bg10.0 | ||
| bg10.0.stdout | ||
| env1.0 | ||
| fork1.0 | ||
| fork2.0 | ||
| fork3.0 | ||
| func1.0 | ||
| func2.0 | ||
| func3.0 | ||
| hash1.0 | ||
| int-cmd1.0 | ||
| killed1.0 | ||
| killed2.0 | ||
| Makefile | ||
| Makefile.depend | ||
| not1.0 | ||
| not2.0 | ||
| path1.0 | ||
| pipefail1.0 | ||
| pipefail2.42 | ||
| pipefail3.42 | ||
| pipefail4.42 | ||
| pipefail5.42 | ||
| pipefail6.42 | ||
| pipefail7.0 | ||
| redir1.0 | ||
| redir2.0 | ||
| redir3.0 | ||
| redir4.0 | ||
| redir5.0 | ||
| redir6.0 | ||
| redir7.0 | ||
| set-C1.0 | ||
| set-n1.0 | ||
| set-n2.0 | ||
| set-n3.0 | ||
| set-n4.0 | ||
| set-x1.0 | ||
| set-x2.0 | ||
| set-x3.0 | ||
| set-x4.0 | ||
| shellproc1.0 | ||
| shellproc2.0 | ||
| shellproc3.0 | ||
| shellproc4.0 | ||
| shellproc5.0 | ||
| shellproc6.0 | ||
| subshell1.0 | ||
| subshell1.0.stdout | ||
| subshell2.0 | ||
| subshell3.0 | ||
| subshell4.0 | ||
| unknown1.0 | ||
| unknown2.0 | ||
| var-assign1.0 | ||