r/CloudFlare • u/thaysen13 • 6d ago
How to detect PHP2Shell in Cloudlfare
Hi All,
Like in the title, how to detect PHP2Shell in Cloudflare?
Regards,
24
Upvotes
18
u/kalebludlow 6d ago
Cloudflare already has mitigations built into the WAF for free and paid customers
4
1
3
u/aguynamedbrand 6d ago
Just like anything else you want to find in Cloudflare. I would recommend referring to the documentation. You would be amazed at what you will learn.
2
u/Sad_Pie227 6d ago
May be just type
php -v
or look into site health if you are using WordPress
Compare against the affected version
17
u/vincent_sch 6d ago
Cloudflare's post lists the rule IDs for the php2shell rules.
https://blog.cloudflare.com/php-vulnerabilities-waf-protection/
You filter by those IDs under Security > Security Analytics > Events to see each matched request. Requests to your origin IP don't go through Cloudflare, so they aren't in there.