perl - 在使用 -T 开关运行时,DBI::db=HASH(0xa32bd40)->do method call 的参数 3 中显示错误 Insecure dependency

标签 perl taint

当我修改文件 show_bug.cgi 时,我在 DBI::db=HASH(0xa32bd40)->使用 -T 开关运行时执行方法调用的参数 3 中出现错误 Insecure dependency

原因是什么?

最佳答案

去污点即。变量$unsecure,应应用正则表达式

my ($secure) = $unsecure =~ / (\d+) /x
  or die q{we couldn't find number in $unsecure};

关于perl - 在使用 -T 开关运行时,DBI::db=HASH(0xa32bd40)->do method call 的参数 3 中显示错误 Insecure dependency,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16649845/

相关文章:

recursion - Perl:使用尾调用优化递归地查找数组的总和

node.js - 如何使用 LWP::UserAgent 接受自签名证书

regex - 如何将字符串按 4 分组?

用于 perl 应用程序中数据馈送的 XML、YAML 和 JSON?

mysql - 转义要在 Perl 中引用的字符串

security - 在 Haskell 中从 'Taint mode' 复制 'Fortify static checking tool'

c++ - 二进制读取mp3文件的ID3标签

java - Java 程序的静态污点分析

perl - 未修剪分支中常量的污染

kubernetes - 被主人污染-无法部署 pods