Menu

1 / 2

Building a Passive PHP2Shell Header Inspector with Next.js and Cloudflare

DEV Community: security·Yun·about 21 hours ago
#r4AmpMka
#devtosecurity#devto#dev#version#response
Reading 0:00
15s threshold

When maintaining a PHP website, a simple question can lead to several different investigations:

Which PHP version does the website advertise? Which version actually serves requests? Has the hosting provider backported a fix? Are temporary controls deployed correctly?

I built PHP2Shell Emergency Response Hub to help organize those steps. It combines a passive HTTP header inspector, a manual PHP version evaluator, and configuration guidance for several deployment environments.

The most important design decision was defining what each result could establish. Public headers provide useful evidence, but they cannot certify that a website is patched.

The application uses Next.js App Router, TypeScript, Tailwind CSS, and lucide-react . Here are the implementation choices and limitations behind it.

One inspection engine, two runtime adapters

The advisory pages are statically exported to Cloudflare Pages.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.