hardening: audit shell_exec and exec paths for command injection
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
Start by reviewing the listed command-execution sites in flowview_devices.php, flowview_bulkarin.php, and functions.php, tracing how each dynamic value reaches shell_exec or exec. Check whether shell arguments and any pipeline components are fully escaped, and look for places where the shell pipeline could be replaced with direct PHP operations. Done means every listed path is safely handled; the issue does not name tests to run.
由索引模型根據 Issue 內容生成。
描述
Findings (validated by xAI Grok security review)
shell_exec/exec with dynamic inputs (HIGH)
flowview_devices.php:893,897,901: shell_exec with $safe_port in netstat/ss commandsflowview_bulkarin.php:127: exec with whois queries (partially escaped)functions.php:5820: exec with wget commandfunctions.php:6558: shell_exec with flow_export binary
Most paths use escapeshellarg() but some concatenate variables into shell pipeline strings.
Recommended fixes
Audit each exec path for complete escaping. Replace shell pipelines with direct PHP operations where possible.
- 主要語言
- PHP
- 星號
- 21
- 分支
- 13
- 平均合併
- 1 天 15 小時
- 30 天內合併 PR
- 13
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 沒有貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
Cacti/plugin_flowview 的其他 Issue
-
Include flows spanning the full report time window可能已有人在做 @somethingwithproof 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 77/100
Cacti/plugin_flowview#306 ·
維護者通常 1 天內回覆
-
refactor: DRY flowview filters page layout wrapper可能重新可做 關聯的 PR 已關閉且未合併。 未關閉enhancement
難度 3/5 1-2 天 新手友好度 30/100
Cacti/plugin_flowview#245 ·
維護者通常 1 天內回覆
-
bug
難度 4/5 3-5 天 新手友好度 35/100
Cacti/plugin_flowview#244 ·
維護者通常 1 天內回覆
-
bug unverified
難度 2/5 1-3 小時 新手友好度 55/100
Cacti/plugin_flowview#231 · 1 則留言 ·
維護者通常 1 天內回覆
-
enhancement
難度 4/5 3-5 天 新手友好度 35/100
Cacti/plugin_flowview#213 · 3 則留言 ·
維護者通常 1 天內回覆
查看 Cacti/plugin_flowview 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 75/100
維護者通常 1 天內回覆
-
priority:low type:bug
難度 2/5 1-3 小時 新手友好度 82/100
crazy-goat/workerman-bundle#1189 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 78/100
Automattic/blocks-engine#5003 ·
維護者通常 1 天內回覆
-
from-cloud mythic tracked
難度 1/5 1 小時以內 新手友好度 86/100
MythicalLTD/FeatherPanel#459 · 1 則留言 ·
維護者通常 1 天內回覆
-
[Bug]: PostgreSQL backend: Queue.remove() / Job.remove() never emit the QueueEvents "removed" event可能已有人在做 @1AbdullahButt 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 84/100
taskforcesh/bullmq#5085 ·
維護者通常 1 天內回覆