Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
blorgle
· 4y ago · 0 comments
You shouldn't pass unescaped/untrusted input into a subshell but your suggestion doesn't solve for every case. It protects against ";" but not path traversal with "../../../../../foo/bar".
Comments
[–]
yjftsjthsd-h
4y ago
You'd have to cover that if you wrote your own library function, though; it's attack surface, but not uniquely so.