在 Perl 语言中,JQ::Lite 2.51 之前的版本存在一个安全漏洞:当查询中的正则表达式被编译时,若其中嵌入了 Perl 代码,系统会通过 执行该代码。 具体而言,传递给 、 函数,或 函数中 与 条件的正则表达式模式,会被放入 字面量中,并作为源代码文本进行编译。因此,模式中若包含 形式的代码块,即使未启用 ,该代码块仍会被执行。虽然模式中的单引号会被转义,但代码块本身在原地执行,无需转义即可运行。 攻击者若能够控制查询内容,或控制应用程序插入到正则表达式模式中的文本,便可在调用该函数的进程中执行任意
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 |
|---|---|---|---|---|
| - | - | 0 ~ 2.51 | - |
|
| # | POC Description | Source Link | Shenlong Link |
|---|
No public POC found.
Login to generate AI POCNo comments yet