News for hackers. Stuff that matters.
Re:Shellcheck finds bugs in your shell scripts by reidjs on Thursday November 23, 2023 @07:59PM (#38399636)
What should we use for more security?
Re:Shellcheck finds bugs in your shell scripts by l0b0 on Thursday November 23, 2023 @08:13PM (#38399733)
Basically anything where it's difficult to treat variable values as code. Python, Ruby, Java, and even PHP are much better at this.
Re:Shellcheck finds bugs in your shell scripts by LelouBil on Friday November 24, 2023 @08:09AM (#38403605)
I have flashbacks of when my PHP teacher showed us how to turn query parameters into their own variables by using PHP's dynamic variables feature.

He waited a bit, and promptly said to never do that and started to explain the security risks.

Re:Shellcheck finds bugs in your shell scripts by stevekemp on Friday November 24, 2023 @12:56PM (#38406456)
Perl is probably worthy of a mention there, with it's taint-mode you're explicitly forced to test externally-influenced variables before using them.
Re:Shellcheck finds bugs in your shell scripts by zimmund on Friday November 24, 2023 @11:01PM (#38411061)
I've seen `eval()` in production code of several applications. The biggest vulnerability is more often than not the programmer :)
Re:Shellcheck finds bugs in your shell scripts by ovex on Saturday November 25, 2023 @02:58PM (#38416166)
But `eval()` does not violate a programmer's intuition as easily as an arithmetic expression resulting in code execution.