Is Perl's taint mode useful?

前端 未结 6 1440
再見小時候
再見小時候 2021-01-01 11:43
perl -T

Do you use it? Does it help you finding security holes in your Perl scripts?

6条回答
  •  情书的邮戳
    2021-01-01 12:20

    Most definitely!

    $ echo '`rm -rf /`' | perl -Te 'eval while <>'
    Insecure dependency in eval while running with -T switch at -e line 1, <> line 1.

提交回复
热议问题