Crazy amount of guests

Just going to leave this here, with the key point that the old ways of doing system administration, with humans looking at logs and thinking about new filtering rules, is completely unfit for what's coming.

On the joking side of things: Vibe-coders that don't know how to harden their web project(s) are in shambles.

This incident shows what an autonomous AI attack looks like in action: one operator prompt, hundreds of self-directed tasks, and probing that adapts every time a request fails.

That conclusion hits the nail on the head. From a generalistic WAF point of view, those probing attacks can generally be halted at the edge. Targeted attacks however, are a whole different ballgame. Which is what appears to have been performed against perplexity's services.

However, what they describe is VERY similar to the attacks i was taking in on a near 10-minute basis at one point, all originating from the google cloud infrastructure/network.
 
Just a small idea here guys, instead of bypassing Cloudflare challenges by using the xf_user cookie (which bots might now know about), I've just uploaded this tiny (it really is!) plugin that allows you to set a custom value in a xf_bc cookie for logged in users.

Set it to something random and filter on that instead.


:)
 
My site has stayed bot free (virtually - the odd one or two but nothing really) for weeks now. However someone somewhere is testing things. At 1am this morning the site was hit by virtually everything simultaneously - nothing got through. Some main swarm - it was a mix of residential proxies and hosting centres, all at the same time.

But nothing got through.

Today I suddenly had 1000 guests in the guest list - worldwide residential proxies. They weren't getting anything and going to a pathway that seemed pointless - so I think it was a test - to see which countries were exempt from one rule and had a referer in another rule - ie which countries got through.

So I suppose I can expect a lot more bots from my exempted countries (exempt from Cloudflare challenges). They still won't get through if my defences hold up! Except for this one pointless pathway. If that increases I'll have to challenge that too.

This happened after I had just blocked byteplus ASN 150436 because it seemed to be the biggest source of hosting centre bots in my hosting challenge. They solve as well.

Edit - stopped the new swarm with fingerprinting challenge.
 
Last edited:
Just a small idea here guys, instead of bypassing Cloudflare challenges by using the xf_user cookie (which bots might now know about), I've just uploaded this tiny (it really is!) plugin that allows you to set a custom value in a xf_bc cookie for logged in users.

Set it to something random and filter on that instead.


:)
It would be helpful for us to create our own cookie name--once the crawlers see the add-on in Resources, they'll know a new cookie exists. I don't know if that is possible, however....
 
That is the exact same problem I've been having on one of my sites, and the only difference is that the site with the broken avatars, etc. uses Cloudflare R2 buckets.

I just did some more research and actually feel like it may be related to the fact that my subdomain where XF images are hosted (data.website.com) do not typically have a cookie applied to them. I've checked my Network tab in the browser's Inspect section, and do not see any cookie showing when inspecting the broken images, which may mean that the skip rule does not take into account any images on this subdomain and thus visitors still need to pass a CF challenge for them to not be broken.

I got to the root of the problem and you're correct--since subdomains serving images are not using cookies, the cookie rule in CF will cause the image loading to fail. The actual access to the subdomain images generates a 403 challenge page from CF and, because it is hidden, there is no way to answer the challenge--browsers can't answer an <img> challenge, in other words.

The fix is to scope the cookies solely to the XF domain in CF's rules. Either by including the http.host for the forum, or excluding the R2 subdomains.

Code:
(http.cookie contains "xf_user=") and
(lower(http.host) not in {"r2-bucket1.example.com" "r2-bucket2.example.com"})

As I check cookies in a few places, this change cleared up our issue with R2 bucket images not loading.
 
It would be helpful for us to create our own cookie name--once the crawlers see the add-on in Resources, they'll know a new cookie exists. I don't know if that is possible, however....
I thought about this, but without them knowing the secret key it doesn't make any difference.

You can edit the source code though to change it if you want, it's a constant at the top of the listeners.php file.
 
I know this thread meanders at times but I didn't see a follow-up to the Imagick question of whether we should do a hard-stop in switching to GD immediately or if this is something that is not a real-world concern? 🤔
 
I know this thread meanders at times but I didn't see a follow-up to the Imagick question of whether we should do a hard-stop in switching to GD immediately or if this is something that is not a real-world concern? 🤔
It is well known that imagick can be a memory hog when it gets invoked, and even more so when it is invoked numerous times per second to render/process content. In the mindset of a forum, that process happens at the upload stage of new content being posted, which isn't generally enough to cause OOM/CPU-maxing. As such, and IMO, it's more of a XenForo issue and how it implements upon imagick at other endpoints.

There's also the risk of imagick having a larger 'attack surface' than that of PHP GD due to how many file formats it natively supports, but at that point you're looking at utilizing a policy.xml file to harden imagick.

Again, IMO, you're fine.
 
If you have certain image/link related settings enabled on your forum, a certain vector of attack can exist. However, from my personal testing of the issue (if it's the same one that Chris is alluding to), it would take hundreds of requests per second to begin to cause a server to 'slow down' prior to OOM events and excessive CPU utilization.

Right now with massive AI-scraping bot traffic, what Chris stated can cause the issue:
but there's also another that could be exacerbated by bot traffic.

Again, this is just my findings and humble opinion on the matter of imagick and XF's usage of it. :)
 
The issues are mostly on the XenForo side and they are fixed in the next release. I'd at least consider disabling Imagick until then. In any case, there's not really a compelling reason to use it over GD.

Processing animated images is about the only use case for which it's better than GD but it's that part in particular that can be heaviest.

Something is coming soon that's better. Details soon.
 
I have a mod that puts my sites into Cloudflare Under Attack Mode when traffic reaches a certain level. It emails the bot, and the bot analyses the traffic.
Yer, did that a while back, plugged it into CF api rules access so it just updates / rewrites rules on the fly and lets me know. I did automate the log viewing, but stopped that, and I just do it every now and then myself putting it through claude.
Just going to leave this here, with the key point that the old ways of doing system administration, with humans looking at logs and thinking about new filtering rules, is completely unfit for what's coming.

That sounds like ARTEX, to be honest. What I'm doing with that right now against my own systems, is exactly that, and its finding things, which I can then target further to see how far it can get, except I'm not unleashing it via residential proxies as I don't need to, as I'm not using it maliciously against servers I don't own.
My site has stayed bot free (virtually - the odd one or two but nothing really) for weeks now.
I bet you I could get ARTEX through all of it, find every exploit and then cause chaos on your site. I won't, but I will tell you with 100% certainty, with ARTEX I could, which means anyone with it can.
 
In any case, there's not really a compelling reason to use it over GD.
When images are resized GD does a poorer job of retaining colors for images that have embedded color profiles leading to resized GD images having washed out colors versus being resized in Imagick. It may seem slight but I assure you there is a demographic of XF users who can tell the difference (and will complain to the admin when it happens). :(

Something is coming soon that's better. Details soon.
Well, I'm intrigued! :D
 
Back
Top Bottom