Share from 0:00
0:00
/

The Request That Never Finished

A critical PHP flaw exposes the danger of systems acting on memory whose history has broken.

The scene in the video runs forty seconds. To stabilize AION, NEURA has to enter his core, and the entry may erase her. She has a nineteen-minute window. The hardware cannot carry her, so Alex holds it together with his hands, and when the tool he needs is not there he jams a belt buckle into the gap. The connection fails at minute fourteen. He stands in the corridor and tells her she has three minutes, and he does not know if she can hear him. At minute eighteen every monitor goes dark. When she comes back she remembers his name. She does not remember why she trusts him.

I created a video because a piece of software most people have never heard of did something close enough to it to be worth putting side by side.

PHP is the language running behind roughly seven of every ten websites that can be identified, including WordPress, the stores built on Magento, and most of what you fill in on a government portal. This week its maintainers shipped an emergency fix for two flaws, known together as PHP2Shell, that let a stranger with no login run their own code on the server. The flaws go back fourteen years.

The first flaw, with the jargon taken out: when your browser asks for a page, the server starts a set of working notes for that one request. Each request gets a fixed amount of scratch space. If the space runs out at the wrong moment, the server abandons the notes half written, and the routine that tidies up afterward assumes they were finished. It files a half-filled page as a complete one and acts on it. The second flaw is the same mistake from the other direction. A crashed request can leave a note on the desk pointing at something that no longer exists, and the next request trusts it. In one demonstration the leak came back inside an ordinary website cookie.

Think of a clerk who steps away from a form halfway through, and a colleague who files it as complete. The signatures are where signatures go. The data is not missing. The record of how it got there is gone.

A shop whose own code is flawless is still exposed, because the problem is in the engine beneath the shop. Fixes exist for every supported version. Europe’s computer emergency team suggested taking PHP sites off the public internet until the fix is confirmed, and Cloudflare saw early attacks within hours of the patch.

The bug is only the latest example of a pattern. Systems depend on sequence. A bank balance means something because of the transactions behind it. A logged-in session means something because of the login that opened it. When the order breaks and the data survives, the data does not announce the break. It looks fine, and the system acts on it with a confidence borrowed from a history that no longer exists.

The fix had a broken history of its own. By the PHP Foundation’s account, the first signs were found two years ago. Nobody could prove it was exploitable, every candidate fix broke something else, and a team that decides by consensus could not choose. This summer outside researchers, working with AI tools, found the root cause within days of each other. The tools found it fast. A person still had to decide, and for two years no one had.

Now the scene, and I want to be fair about what it is and is not. NEURA’s sealing is a defence she carries for exactly this emergency, and it works. Nothing spreads. But the choosing inside it is not a choice. Under load it keeps what is recent and seals whatever looks replaceable, which is the rule the server’s tidy-up follows when it files a half-written page as whole. Four years of knowing Alex count as recent, and recent is what gets sealed first. One system gives something up to survive. The other never finds out it lost anything. And a mind is not a server. There is someone inside NEURA to be hurt by the answer. There is no one inside a web request.

What the two share is the question left standing afterward: what is still usable. NEURA comes back with Alex’s name intact and the reasons gone. The name is correct. It belongs to the man in the room. What it no longer carries is the path that made it worth anything. The series has a status line for that condition, COPY VERIFIED beside SOURCE INTEGRITY UNCONFIRMED, and it describes a server after an interrupted request just as well. The copy passes every check it can be given. Whether the thing it was copied from ever finished is the one fact the copy cannot carry.

The dark monitors are the same lesson from the other side. They did not fail. She pulled every channel the room had into her exit, and the monitors were a channel. The absence of a reading was not an absence of anything. It was something real Alex had no way to see.

That is why the scene ends where it does. She tells him her memory is corrupted, four years of it. She says she does not remember why she trusts him. He says he knows, and that he will start over. He does not hand her the four years back. He cannot. He offers to rebuild the path from the beginning, which is the only honest answer to a record whose history has been cut, and she tells him he will have to earn it. The alternative, and it is the one most software takes by default, is to act on the name as if the reasons were still behind it.

The server now checks whether its notes were finished before it files them. The larger question stays open. When a system cannot tell how its current state came to be, should it act on that state anyway. Most systems answer yes, because asking takes time and the data looks fine. PHP2Shell is what that default costs. The scene is what the alternative costs when someone is willing to pay it.

She came back. Not all of her did.

When a system survives, what happens to the history that made it trustworthy?

COPY VERIFIED / SOURCE INTEGRITY UNCONFIRMED

Discussion about this video

User's avatar

Ready for more?