Perl 的 FindBin::Bin 模块从 4.0.1 到 5.4.0 之前的版本,通过字符串 eval 执行“脚本所在目录名”中的代码。 该模块通过把脚本所在目录(对于 则为当前目录)插入字符串 eval 内的单引号字面量中来定义 Bin,且不进行转义。目录名中的单引号会终止该字面量,目录名的其余部分将被编译为 Perl 代码。FindBin::Bin 仅在 Perl 5.40 及更新版本中安装,并且 FindBin::libs 会加载它。 攻击者若能够命名目录,就可以以运行该目录内脚本的任何用户的身份执行代
Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.
| Vendor | Product | Affected Versions | CPE | Subscribe |
|---|---|---|---|---|
| - | - | 4.0.1 ~ 5.4.0 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POC