fix(security): 代码审查 — 修复 9 个安全/稳定性 bug #2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/code-review-security-bugs"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
概述
代码审查发现并修复了 9 个 bug,涵盖 3 个致命、5 个高危和 1 个安全漏洞。
修复清单
CRITICAL
BridgeManager.phpenable_bridge()引用未定义变量$gpl_result,PHP 8 下致命错误AdminPage.phpajax_generate_api_key()catch 块缺 return,异常后可能写入空 keyBridgeManager.phpnew VendorManager()绕过单例,导致供应商状态不同步HIGH
SubscriptionManager.phpwc_am_product_list()返回 null 时数组访问 TypeErrorGiteeHandler.phpSourceResolver.phpconvert_source()未检查已加密数据,导致双重加密AdminPage/VendorAdmin/Pluginwp_send_json_error()后缺 returnBridgeClient.phpget_download_url()不检查空server_urlSECURITY
BackupManager.phpextract_zip()无 Zip Slip 防护,恶意归档可写任意路径测试
includes/全部通过影响范围
9 个文件,+173 / -36 行