News for hackers. Stuff that matters.
Re:A new Cloudflare Web Application Firewall by jgrahamc on Monday March 29, 2021 @09:43AM (#26621396)
The plan is to open source the old WAF code (that I wrote long ago) once the new WAF is fully rolled out.
Re:A new Cloudflare Web Application Firewall by alberth on Monday March 29, 2021 @11:08AM (#26622860)
Sad to see LuaJIT is no longer in use.

LuaJIT was so far ahead of it's time (and still is), it's sad to see the current state of it since Mike Pall has moved on. The learned lesson for me is that, even if you have a vastly superior offering - the success of something is hugely correlated to the community behind it.

Re:A new Cloudflare Web Application Firewall by fsfod on Monday March 29, 2021 @12:27PM (#26624254)
Mike Pall is still working on LuaJIT just last week he pushed the first stage of string buffer support sponsored by some network company https://github.com/LuaJIT/LuaJIT/commit/4c6b669c419f313306b9...
Re:A new Cloudflare Web Application Firewall by exikyut on Monday March 29, 2021 @01:04PM (#26624883)
*Activates [APPLAUSE] indicator*
Re:A new Cloudflare Web Application Firewall by exikyut on Monday March 29, 2021 @12:52PM (#26624673)
Wow. I was imagining the possibilities of being able to share some of the basic techniques behind the system, but being able to have an actual MWE of real racing stripes™ is cooler than I could ever have imagined would be viable. Thanks.
Re:A new Cloudflare Web Application Firewall by _kyran on Monday March 29, 2021 @10:38AM (#26622327)
Curious if you have any stories from working on this? I'd love to hear what some of the hardest problems to solve were?
Re:A new Cloudflare Web Application Firewall by jgrahamc on Monday March 29, 2021 @10:40AM (#26622369)
Re:A new Cloudflare Web Application Firewall by exikyut on Monday March 29, 2021 @12:54PM (#26624696)
Couple of points from the video:

1. The regular expression simplifier (https://youtu.be/nlt4XKhucS4?t=1102) stood out as particularly interesting - I get the impression it was partly "mostly simple", and partly battle-tested/nontrivial/hand-tuned. Speaking not-entirely-rhetorically, this would probably be a very interesting tidbit to study.

2. You mentioned at https://youtu.be/nlt4XKhucS4?t=2272 in response to a question that you apparently pass PNGs and other binary content "straight through" (in the context of file upload), ie bypassing the WAF. Given things like...

- webpage in JPEG (http://lcamtuf.coredump.cx/squirrel/, https://news.ycombinator.com/item?id=12262470, https://news.ycombinator.com/item?id=4209052),

- JavaScript in EXIF (https://blog.sucuri.net/2013/07/malware-hidden-inside-jpg-ex...)

- PHP in EXIF (https://web.archive.org/web/20130708132109/https://websec.io...)

- HTML+JavaScript+1021 byte demo inside PNG: https://news.ycombinator.com/item?id=24824299, http://www.p01.org/MONOSPACE/ (general NB: "Packed version" link under "Additional links" actually loads the demo for me in Chrome, but clicking through from HN and loading the URL directly doesn't - some sort of bizarre CORS-related thing?)

...I presume the status quo has changed somewhat here. Hearing how/what's going on in this space would be very interesting.

Re:A new Cloudflare Web Application Firewall by exikyut on Monday March 29, 2021 @12:36PM (#26624404)
Slides: https://github.com/cloudflare/jgc-talks/raw/master/nginx.con...

Above link is direct download, which I'm biased towards since Chrome's PDF viewer supports left and right arrow keys.

Protip for users with tiny* screens: right-click video twice, enable Picture-in-Picture, arrange video so slides are still visible so you can follow along)

(* Specifically <24", ie laptops)

Re:A new Cloudflare Web Application Firewall by anotherhue on Monday March 29, 2021 @10:51AM (#26622563)
Do you get to go 'off-call' then?
Re:A new Cloudflare Web Application Firewall by jgrahamc on Monday March 29, 2021 @10:54AM (#26622615)
I haven't been on call for that code for a long time. There's a whole team that works on it and has been improving it for quite a few years.
Re:A new Cloudflare Web Application Firewall by anotherhue on Monday March 29, 2021 @10:59AM (#26622700)
Glad to hear! It's a little jarring that the Web-UI throws it's hands in the air when you add a few boolean clauses so I look forward to some improvements there.

Cloudflare is, in general, a delight to use.

Re:A new Cloudflare Web Application Firewall by alberth on Monday March 29, 2021 @11:03AM (#26622783)
> "Cloudflare is, in general, a delight to use."

Agreed. There's lots of companies in the space that Cloudflare operates in. Cloudflare is the "macOS/Apple" of the market whereas their competition is the unwieldily mess that is "Linux".

Re:A new Cloudflare Web Application Firewall by luckylion on Monday March 29, 2021 @11:46AM (#26623558)
On a technical level: I agree, it works great. Their dashboard needs some work. What I find annoying is mostly the "load everything in single ajax requests, but don't set the size of it in HTML", which makes elements jump around while stuff above them is being rendered. That's very annoying when your connection isn't great for some reason and buttons get replaced by different buttons. I get it, "use the API", but when you need to do something manually, I'd prefer a higher total load time over something that's asking for mistakes. There's a good reason Google is heavily advising to get rid of layout shifts.

The other thing I took personally was them removing the "remember me" functionality in a two step process: first it was broken, and then they removed the feature alltogether it instead of fixing.

Re:A new Cloudflare Web Application Firewall by jgrahamc on Monday March 29, 2021 @11:01AM (#26622728)
Email me (jgc) any issues.