用于通过HTTP头和非破坏性登录表单探测验证PHP CVE-2026-17543暴露情况的安全PowerShell验证器。
用于检查 PHP CVE-2026-17543 潜在暴露风险的安全网络侧验证器。
该项目检查远程 Web 服务器是否暴露了受 CVE-2026-17543 影响的 PHP 版本,并可选择使用无害的引号/反斜杠字符执行非破坏性的登录表单探测。
这不是漏洞利用工具。
CVE-2026-17543 影响某些 PHP 版本,在这些版本中,攻击者可控参数中的反斜杠转义不当,可能导致受影响的 PostgreSQL 相关 PHP 代码路径中出现 SQL 注入条件。
该工具帮助防御者从网络侧验证暴露情况:
已知受影响的版本包括:
PHP 8.2.x before 8.2.33
PHP 8.3.x before 8.3.30
PHP 8.4.x before 8.4.24
.\Test-CVE-2026-17543.ps1 -BaseUrl "http://example.local/"
.\Test-CVE-2026-17543.ps1 `
-BaseUrl "http://example.local/" `
-LoginPath "/login.php" `
-UsernameField "Login[username]" `
-PasswordField "Login[password]" `
-TokenField "Login[token]"
以下是虚构/匿名化的示例输出。
=== PHP CVE-2026-17543 Exposure Validator ===
Target: http://example.local/
[*] Checking HTTP headers...
[*] Relevant headers:
Server: Apache
X-Powered-By: PHP/8.2.27
[+] Detected PHP version: 8.2.27
[!] Finding: PHP 8.2.27 is below fixed version 8.2.33.
[!] Status: Potentially vulnerable by version exposure.
[*] Starting optional safe login-form probes...
[*] Login URL: http://example.local/login.php
[*] Username field: Login[username]
[*] Password field: Login[password]
[*] Token field: Login[token]
------------------------------
[*] Testing username payload: [testuser]
[*] Token extracted: abc123...def456
[*] HTTP Status: 200
[*] Response Length: 5970
[+] No visible SQL/PHP error indicators found.
------------------------------
[*] Testing username payload: [']
[*] Token extracted: abc123...def456
[*] HTTP Status: 200
[*] Response Length: 5970
[+] No visible SQL/PHP error indicators found.
Done.
此工具不会:
UNION SELECT、OR 1=1、DROP、DELETE、UPDATE 或类似载荷。