@OpenAI: If you are wondering whether your website is affected, we have packaged a Codex skill to help check. Point your Codex a…
Summary
OpenAI 发布了一个 Codex skill(php2shell-checker),帮助用户检查网站或本地 PHP 是否易受 php2shell 漏洞影响,作为其 Patch the Planet 安全倡议的一部分。
View Cached Full Text
Cached at: 10/21/26, 06:34 PM
If you are wondering whether your website is affected, we have packaged a Codex skill to help check. Point your Codex at this repo to guide you through it: https://github.com/openai/php2shell-checker…
openai/php2shell-checker
Source: https://github.com/openai/php2shell-checker
PHP Version Checker
Check a website or local PHP binary to see if it’s vulnerable to php2shell.
To install both skills, ask Codex:
$skill-installer install both skills from https://github.com/openai/php2shell-checker
Use phpcheck-server when you have server access, or phpcheck-url when you only have a URL:
$phpcheck-url check https://example.com
$phpcheck-server check the PHP version serving my site
Run directly
Check a website:
node phpcheck.js "https://example.com"
Check the local CLI PHP
node phpcheck.js --local
Results
| Result | Exit code | Meaning |
|---|---|---|
OK | 0 | Stable PHP patch version above the embedded cutoff for a listed major/minor branch. |
VULNERABLE | 1 | PHP version at or below the embedded cutoff for that branch. |
UNKNOWN | 3 | No PHP version or response, an unrecognized version/branch, or a newer prerelease build. |
Use --json for machine-readable output (patch_status is ok, vulnerable,
or unknown). Invalid arguments exit with code 2.
Tests
node --test phpcheck.test.js
Tests run the CLI against local HTTP servers and a fake PHP executable. No PHP installation or external website is required.
Limitations
The checker only evaluates versions exposed in HTTP response headers or by
php -v. It reads X-Powered-By and Server, sends HEAD, and falls back to
GET only when HEAD returns 405 or 501. It does not follow redirects or
inspect response bodies. Missing or hidden PHP headers return UNKNOWN.
OK is a version comparison based on the assumption that subsequent stable patches in each listed branch contain the fix.
It does not independently verify a security fix. Check the versions against
the official PHP security release. Headers can be hidden or changed, and distribution backports may
not change the upstream version. UNKNOWN does not mean the target is patched!
Contributing
OpenAI is not accepting external code contributions to this project. Bug reports and non-code feedback are welcome through GitHub issues. See CONTRIBUTING.md.
License
This project is licensed under the Apache License 2.0.
OpenAI (@OpenAI): OpenAI models helped researchers—operating as part of our Patch the Planet initiative—discover critical security flaws in PHP, an open-source programming language used to run an estimated 70% of websites.
Over the past two months, we led a coalition of maintainers, researchers,
Similar Articles
PHP2Shell: AI uncovers critical RCE in PHP
Wiz Research 发现了 PHP 核心中一系列严重的内存安全漏洞,包括未经认证的远程代码执行,影响过去十年发布的几乎所有 PHP 版本(占全球 70% 网站),并借助前沿 AI 模型构建了复杂的利用链,促使 PHP 于 2026 年 10 月 21 日发布补丁。
Upgrade your PHP installs immediately to protect against php2shell
两个评分高达9.2/10的PHP远程代码执行漏洞(php2shell)被公开,官方已发布紧急补丁版本,要求所有PHP服务立即升级,否则可能遭遇在野利用。
The PHP Meltdown Shows How AI Makes Bugs More Exploitable
新披露的 PHP2Shell 漏洞在公开数小时内引发数百万次利用尝试,而 AI 工具既帮助研究人员发现并利用了这些长期存在的漏洞,也使攻击者能更快地 weaponize 安全缺陷。
PHP Armageddon: OpenAI, Google’s Wiz find ancient holes, panicking the internet
OpenAI's Patch the Planet initiative and Google's Wiz used AI models like GPT-5.6 Sol and Gemini 4 Argon to uncover two critical, decades-old PHP vulnerabilities present since 2004, prompting an NSA warning and urgent patches from the PHP Foundation for the ~70% of websites running PHP.
@yaojingang: Open-sourced a website scanning skill: yao-websecurity-skill. I've learned that at least three public companies have deployed GEOFlow, and many friends have done various secondary developments based on this system, including commercial SaaS versions. Its security issues need to be taken seriously. Additionally, more and more...
Open-sourced yao-websecurity-skill, an AI-based website security audit skill. It includes 275 security checks, supports static and dynamic audit modes, and automatically generates security scoring reports to help developers discover and fix security risks.