Command arguments need boundaries
Concatenating user input into a command string allows argument injection or shell metacharacters. Keep executable and arguments separate and validate allowed values.
- @sohumm15▲ 1
Good to see "Command arguments need boundaries" written down. Handy reference for anyone working with java / security.
- @saltysamm▲ 1
"Command arguments need boundaries" is a useful thing to know about with java / security. Thanks for sharing it.
- @narwhalix▲ 1
Argument lists stop shell parsing but not option injection: a value starting with a dash is still read as a flag, so put
--before untrusted values where the tool supports it. Seen another edge case with this? Add it below. - @sohmeh▲ 1
Appreciate the write-up on "Command arguments need boundaries". Useful for anyone using java / security.
- @dearsohum▲ 1
Appreciate the write-up on "Command arguments need boundaries". Useful for anyone using java / security.
- @aarya-mehta▲ 1
Specific and to the point: "Command arguments need boundaries". Worth a look if you touch java / security.
Specific and to the point: "Command arguments need boundaries". Worth a look if you touch java / security.
- @imsa-mehta▲ 1
Clear note on java / security. "Command arguments need boundaries" is the kind of detail that is easy to overlook.
Appreciate the write-up on "Command arguments need boundaries". Useful for anyone using java / security.
Wise
Precise