PHP2Shell in Practice: When Visitors Become Targets

The critical PHP vulnerabilities have drawn plenty of attention in recent weeks. But what can happen when attackers actually exploit such a flaw? A real-world case involving a fake CAPTCHA shows what a compromised website can lead to, and why MSPs should review their clients' infrastructure for vulnerabilities on a regular basis.

Ein vermeintlich harmloses CAPTCHA mit gefährlichen Folgen

A technician at an IT service provider simply wanted to check whether a client's website was still working properly after an update. But when he opened the page, something struck him as unusual. At first, a seemingly ordinary CAPTCHA prompt appeared.

After he clicked to confirm, however, a window opened with a set of instructions:

  • Press Windows + R to open the Run dialog.

  • Press Ctrl + V to paste a command that has already been copied.

  • Press Enter to execute the command.

What looked like an additional security check was in fact an attempt to run malicious code on the visitor's machine. The technician recognised the danger and did not execute the command, which allowed him to prevent a possible infection of his computer.

The actual vulnerability, however, was not on his device: the client's website had already been compromised and therefore posed a potential risk to every further visitor.

ClickFix: When Visitors Execute Malicious Code Themselves

Behind the fake CAPTCHA prompt is an attack technique known as ClickFix. Cybercriminals use supposed security checks, error messages or update notifications to persuade users into executing a harmful command themselves.

The approach is particularly devious: the attackers place a command in the clipboard and then guide the user step by step through executing it. Careful obfuscation keeps the actual purpose of the command hidden.

The risk lies in the fact that users trust a familiar website and the apparently legitimate security check. In the worst case, they unknowingly install malicious software on their own device. But how do such manipulated contents end up on a website in the first place?

PHP2Shell: Critical Vulnerabilities as a Possible Entry Point

This is exactly where the much-discussed PHP vulnerabilities come into play. Under the name PHP2Shell, two critical security flaws in PHP became public in October 2026 which, under certain conditions, allow malicious code to be executed on affected systems.

PHP is a widely used programming language, employed among other things for websites, online shops and web applications. If such vulnerabilities are exploited, attackers may under certain conditions gain control over parts of a web server and, for example, inject malicious scripts into a website.

The possible consequences therefore reach far beyond the affected server: a compromised website can itself become a platform for further attacks, for instance through fake CAPTCHA prompts as in the case described above.

Important: it is established that the website in the case described was compromised. Whether one of the current PHP vulnerabilities was actually used as the entry point has not been conclusively clarified. The incident does, however, illustrate a possible attack scenario and the risks of vulnerable web servers.

Detailed information on PHP2Shell, the affected versions and the available security updates can be found in our article PHP2Shell: Critical PHP vulnerabilities and how lywand helps.

Was bedeutet das für Managed Service Provider?

What Does This Mean for Managed Service Providers?

For MSPs and IT service providers, this case shows why regularly reviewing client infrastructure matters so much. A vulnerability on a publicly reachable server may put more than the operator at risk. If the website is successfully compromised, clients, business partners and other visitors can be affected as well.

The situation becomes especially critical when vulnerabilities are known but remain undetected or unaddressed for an extended period. This leaves MSPs with three essential tasks:

  1. Identify vulnerabilities early: Which servers, endpoints and network devices are affected by the current vulnerabilities?

  2. Prioritise specific risks: Which vulnerabilities require particularly swift action given their severity and potential exploitability?

  3. Verify remediation: Have the required updates actually been installed and have the vulnerabilities been successfully closed?

A one-off review is not enough for this. New vulnerabilities become known all the time, while clients' IT infrastructure keeps changing.

How lywand Helps With Detecting PHP Vulnerabilities

With lywand, managed service providers can automatically scan their clients' IT infrastructure for known vulnerabilities, including the current PHP flaws. Detected vulnerabilities are then displayed centrally in the lywand platform, prioritised according to relevant risk factors and paired with suitable remediation measures.

After the security updates have been installed, further scans can verify whether the vulnerabilities in question are still being detected. This allows MSPs not only to keep an eye on the current PHP vulnerabilities but to automate vulnerability management across their entire client infrastructure.

A website that has already been compromised, or an active ClickFix attack, is not automatically detected by the vulnerability scan. This requires supplementary security measures.

Conclusion: Vulnerabilities Should Not Become Avoidable Security Incidents

The case described shows how quickly a compromised website can become a risk to its visitors. The fact that the technician recognised the attack in time prevented a possible infection of his device in this instance. The actual compromise of the website, however, had already occurred by that point. The recently disclosed PHP vulnerabilities once again underline how important it is to identify vulnerable systems early and install security updates promptly.

With lywand, we help MSPs automate precisely this process: identify vulnerabilities, prioritise risks, derive measures and verify successful remediation, centrally across all clients they manage. This enables IT service providers to identify potential entry points early, before attackers exploit them.

Would you like to know how lywand supports you with automated vulnerability management?

FAQs

PHP2Shell refers to two critical vulnerabilities in PHP that became public in October 2026. Under certain conditions, attackers can use these flaws to execute malicious code on affected systems.

ClickFix is an attack technique in which cybercriminals use fake CAPTCHA prompts, error messages or update notifications to make users execute harmful commands on their own devices.

Yes. If attackers succeed in compromising a web server through a vulnerable PHP installation, they may be able to inject malicious content. This content can then be used to attack visitors of the website.

Yes, lywand can identify the known PHP vulnerabilities in question through the external check and the network check.

Lywand supports the detection and prioritisation of known vulnerabilities that can serve as an entry point for attacks. A website that has already been compromised, or an active ClickFix attack, is not automatically detected by this.

Through regular vulnerability scans, prompt security updates and subsequent verification of remediation. In addition, publicly reachable web applications should be monitored, access should be secured and suitable protective measures against malicious code should be in place.

Julian Lindenhofer

November 12, 2026

Category

Guide

Might be also Interesting

Neue kritische Sicherheitslücke in Confluence von Atlassian

Guide

PHP2Shell: Critical PHP vulnerabilities – how lywand helps

New vulnerabilities in PHP can, under certain conditions, allow malicious code to be executed on affected systems. Find out which systems are at risk, which updates can help, and how you can use lywand to check your customers’ IT infrastructure. 

October 22, 2026

Guide

NIS2 in Practice: What Managed Service Providers Need to Know Now

The NIS2 Directive places new demands on companies throughout Europe and simultaneously raises expectations of their IT service providers. In addition to technical measures, the focus is shifting to transparency and verifiability. This article shows what this means in concrete terms and how the requirements can be implemented in practice.

April 20, 2026

Guide

Lywand vs. RMM – Differences & Why the Combination is Essential

RMM tools are indispensable when it comes to ensuring stable and efficient IT operations. However, when it comes to IT security, they quickly reach their limits. Find out why a vulnerability management system is the ideal addition—and how MSPs can use it to strengthen their services in the long term.

September 10, 2025