@OpenAI: If you are wondering whether your website is affected, we have packaged a Codex skill to help check. Point your Codex a…

X AI KOLs Following Tools

Summary

OpenAI 发布了一个 Codex skill(php2shell-checker),帮助用户检查网站或本地 PHP 是否易受 php2shell 漏洞影响,作为其 Patch the Planet 安全倡议的一部分。

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…
Original Article
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

ResultExit codeMeaning
OK0Stable PHP patch version above the embedded cutoff for a listed major/minor branch.
VULNERABLE1PHP version at or below the embedded cutoff for that branch.
UNKNOWN3No 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

Hacker News Top

Wiz Research 发现了 PHP 核心中一系列严重的内存安全漏洞,包括未经认证的远程代码执行,影响过去十年发布的几乎所有 PHP 版本(占全球 70% 网站),并借助前沿 AI 模型构建了复杂的利用链,促使 PHP 于 2026 年 10 月 21 日发布补丁。

@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...

X AI KOLs Timeline

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.