Morten Bak (@mortenebak) header
Morten Bak (@mortenebak) profile picture

Webdeveloper at https://nitter.cf/t.co/ObEcPXiqx0 and https://nitter.cf/t.co/UCPxeCOowJ - I'm into Laravel, Alpinejs, Livewire, Tailwind & Statamic!

Denmark
Joined November 2010
Photo by Morten Bak (@mortenebak)Photo by Morten Bak (@mortenebak)Photo by Morten Bak (@mortenebak)Photo by Morten Bak (@mortenebak)Photo by Morten Bak (@mortenebak)Photo by Morten Bak (@mortenebak)Photo by Morten Bak (@mortenebak)Photo by Morten Bak (@mortenebak)Photo by Morten Bak (@mortenebak)Photo by Morten Bak (@mortenebak)
Morten Bak retweeted
Unfortunately, it seems that mitigation is not enough folks. Update or mitigate by taking your public facing server offline... -> phpc.social/@Girgias/1174764… #php2shell
A moron has released a POC early for php2shell so here is what you need to do: If you’re on version prior to 8.2: Edit php.ini: session.upload_progress.enabled = Off Then reload php-fpm and restart apache If you’re on later version: Update (it’ll be available in a few hours) In any case, the mitigation for the php.ini should work either way. Not sure if it’ll cover both vulns though so keep an eye on that. I’ll be reporting on follow up activity on windows as a target. Good luck!
20
117
16
663
209,205
The PHP security team is giving advance notice: Upcoming security release Wed, Oct 21st 2026, 14:00UTC, two critical vulnerabilities, both rated CVSSv4 9.2. PHP users are encouraged to prepare to update. Earlier release if details become public or active exploit evidence.
336
4,150
1,253
18,473
7,104,086
Morten Bak retweeted
Here is a full list of what you can do NOW for PHP2Shell (CVE-2026-109618 / CVE-2026-109619) as a temporary mitigation. (generated and validated by LLM) 1️⃣ Do this first. In php.ini or the FPM pool, set: session.upload_progress.enabled = 0 Reload PHP-FPM, then update PHP right after the release (21 Oct, 14:00 UTC). 2️⃣ Edge block until you patch. It blocks the PHPSESSID cookie and query (also lowercase and URL-encoded), and all multipart/form-data requests. ⚠️ File uploads stop working until you remove it. ☁️ Cloudflare (WAF custom rule, action Block): (lower(url_decode(http.cookie)) contains "phpsessid") or (lower(url_decode(http.request.uri.query)) contains "phpsessid") or (any(lower(http.request.headers["content-type"][*])[*] contains "multipart/form-data")) 🟩 nginx (http {} context): map "$http_cookie|$args|$content_type" $block_php2shell { default 0; "~*(?:p|%[57]0)(?:h|%[46]8)(?:p|%[57]0)(?:s|%[57]3)(?:e|%[46]5)(?:s|%[57]3)(?:s|%[57]3)(?:i|%[46]9)(?:d|%[46]4)" 1; "~*multipart/form-data" 1; } In each server {} block: if ($block_php2shell) { return 403; } 🔒 Caddy: @php2shell expression `{header.Cookie}.matches("(?i)(?:p|%[57]0)(?:h|%[46]8)(?:p|%[57]0)(?:s|%[57]3)(?:e|%[46]5)(?:s|%[57]3)(?:s|%[57]3)(?:i|%[46]9)(?:d|%[46]4)") || {query}.matches("(?i)(?:p|%[57]0)(?:h|%[46]8)(?:p|%[57]0)(?:s|%[57]3)(?:e|%[46]5)(?:s|%[57]3)(?:s|%[57]3)(?:i|%[46]9)(?:d|%[46]4)") || {header.Content-Type}.matches("(?i)multipart/form-data")` respond @php2shell 403 🚦 Traefik v3 (Coolify: Server > Proxy > Dynamic Configurations). Add this to the https router and also to a copy for the http entrypoint: http: routers: block-php2shell: rule: "HeaderRegexp(`Cookie`, `(?i)(?:p|%[57]0)(?:h|%[46]8)(?:p|%[57]0)(?:s|%[57]3)(?:e|%[46]5)(?:s|%[57]3)(?:s|%[57]3)(?:i|%[46]9)(?:d|%[46]4)`) || QueryRegexp(`PHPSESSID`, `.*`) || HeaderRegexp(`Content-Type`, `(?i)multipart/form-data`)" priority: 100000 entryPoints: [https] middlewares: [deny-all] service: noop@internal tls: {} middlewares: deny-all: ipAllowList: sourceRange: ["255.255.255.255/32"] ✅ Test: curl -s -o /dev/null -w '%{http_code}\n' -H 'Cookie: PHPSESSID=x' https://your-app → 403 curl -s -o /dev/null -w '%{http_code}\n' -F a=b https://your-app → 403 The edge block does not protect direct origin access. Disable upload_progress and patch PHP.
24
86
13
617
104,872
“Pace the frontier” is such a low energy phrase they gotta stop saying that
22
4
172
13,796
Fellow clanker managers: how do you manage using multiple accounts of ex. Claude when using the cli?
1
111
I just learned that the webdeveloper school/course where one of my relatives teach, will probably close down in less than 6 month from now, arguing no point of teaching web development in its current form.
2
1
128
I need your help: The @stateoflaravel is going spectacular BAD this year. After 2 weeks we don't even have 1k participants. Please share it (again) if you can. And please subscribe to be notified the next years. Currently, there are only 300 on the list for the next years...
The State Of Laravel 2026 survey has started! You can now participate to identify how the ecosystem changed over the past 12 months! This year with a few AI questions: How are others using AI? Please RT for reach ❤️ stateoflaravel.com/?ref=2026
22
73
5
84
17,751
First day of #laravellivedk has ended. So many awesome talks! 🎉 I think @aarondfrancis talk really nailed a feeling I've also had for a while, so it was very motivating 🙂💪
1
6
360
Thursday can't come quick enough. Totally excited to be at #laravellivedk again for the 3rd time to hear a lot of talks, meet both old and new friends.
1
3
123
Also added another favorite of mine: Discworld! (by Sir Terry Pratchett): discworld.netbums.dk/
79
Saw the new Spiderman with some friends last week, and was asked if I knew "where we were at" with the MCU. I didn't. I haven't really paid much attention to the MCU. So I decided to a list of the viewing order mcu.netbums.dk/ it saves the progress in localStorage.
67
As a developer, I mostly feel "spec saturated". What do you guys do to keep it fun?
74
Turn out the Watch Later playlist at youtube is capped at 5000 vids. Dont ask me how I found out 😂
82
I really "need" Soloterm to be available to either Linux or Windows. Do you have a timeframe of any kind @aarondfrancis ? I think I'm just bummed that most cool tools are made almost exclusively for Mac, which is the one platform I'm not gonna touch (Linux=work and PC=gaming)
2
2
1,275
Morten Bak retweeted
Replying to @adamdotdev
Get out of the AI worm hole online. It’s exhausting, just build stuff how you want and use it how you want. All this doom and gloom about AI and software is so unnecessary and unsustainable
17
59
3
832
26,698
This monday we have "Time go!" on a project we've been working on since autumn. A complete booking engine for a business that sports; bowling, minigolf, darts, pool, table tennis, petanque and all sorts of fun stuff.
1
2
73
And we still have stuff to implement and make for this giant application that makes for another year of programming!!
1
11
Oh, and I forgot that this business has 5+ locations with differing activities, prices, etc.
11