Skip to content
Back to search

php2shell-checker

Get a version-based PHP2Shell warning from a website's PHP headers or local installation.

Safety scan

A static text scan, not a guarantee. Select the badge to see what was scanned and every finding.

Checked today
Badge for your README
findsafeskills safety rating

Markdown

[![findsafeskills safety rating](/api/listings/openai--php2shell-checker/badge.svg)](/listings/openai--php2shell-checker)

HTML

<a href="/listings/openai--php2shell-checker"><img src="/api/listings/openai--php2shell-checker/badge.svg" alt="findsafeskills safety rating" /></a>

Install

i

What was scanned

The files the safety scan read, as written by the repository's author and shown as plain text. Lines with a finding are marked.

README.md · README · 65 lines

View this file on GitHub (read at the repository's current version: the scan did not record which commit it read)

  1. # PHP Version Checker
  2. Get a version-based PHP2Shell warning from a website's PHP headers or local installation.
  3. To install both skills, ask Codex:
  4. ```text
  5. $skill-installer install both skills from https://github.com/openai/php2shell-checker
  6. ```
  7. Use [phpcheck-server](skills/phpcheck-server/SKILL.md) when you have server
  8. access, or [phpcheck-url](skills/phpcheck-url/SKILL.md) when you only have a URL:
  9. ```text
  10. $phpcheck-url check https://example.com
  11. ```
  12. ```text
  13. $phpcheck-server check the PHP version serving my site
  14. ```
  15. ## Run directly
  16. Check a website:
  17. ```sh
  18. node phpcheck.js "https://example.com"
  19. ```
  20. ## Results
  21. | Result | Exit code | Meaning |
  22. | --- | --- | --- |
  23. | `OK` | `0` | Advertised version meets an upstream fixed release. |
  24. | `POTENTIALLY VULNERABLE` | `1` | Advertised version is in an affected range. |
  25. | `UNKNOWN` | `3` | Missing or unrecognized version, prerelease, or failed check. |
  26. Use `--json` for machine-readable output. `patch_status` is `ok`,
  27. `potentially_vulnerable` or `unknown`. Invalid arguments exit with code `2`.
  28. Versions below a listed upstream fix return `potentially_vulnerable` and
  29. exit `1`. PHP 5.4–5.6, 7.0–7.4, 8.0 and 8.1 also return this warning, even
  30. with a higher patch number such as 8.1.35.
  31. ## URL checks
  32. URL mode reads `X-Powered-By` and `Server`, sends `HEAD`, and falls back to
  33. `GET` only when `HEAD` returns 405 or 501. It does not follow redirects or
  34. inspect response bodies. Missing or hidden PHP headers return `UNKNOWN`.
  35. The upstream fixed releases are 8.2.35, 8.3.36, 8.4.27 and 8.5.12, from the
  36. [October 21 PHP advisory](https://www.php.net/archive/2026.php#2026-10-21-5).
  37. HTTP headers cannot tell whether the version contains a backported fix. Even `OK`
  38. only describes the advertised version - it doesn't verify the installation!
  39. The checker does not send exploit probes.
  40. ## Contributing
  41. OpenAI is not accepting external code contributions to this project. Bug
  42. reports and non-code feedback are welcome through GitHub issues. See
  43. [CONTRIBUTING.md](CONTRIBUTING.md).
  44. ## License
  45. This project is licensed under the [Apache License 2.0](LICENSE).

Ratings and comments

Sign in to rate this skill.

Sign in

Free to use. If it’s helped, pass it on.