Skip to content

Zeroplex 生活隨筆

軟體開發和生活瑣事

小 縮小字型大小。 中 重設字型大小。 大 放大字型大小。

標籤: PHP

溝通問題導致 PHP RCE 漏洞提早被公開

Posted on 2026 年 10 月 24 日2026 年 10 月 28 日 By 日落 在〈溝通問題導致 PHP RCE 漏洞提早被公開〉中尚無留言

文章來自 Hacker News 的文章:

At the time of posting, I didn’t know about any embargo. My contact had told me there was no embargo, and her contact had told her the same thing.

As someone who follows the 4-weekly PHP release cycle and compiles it from source, my intention was to alert others in a similar position to be aware of the importance/urgency of the updates.

That clearly backfired in a pretty wild fashion. I have learned my lesson.

作者並沒有被告知需要先保密,而作者覺得需要告知身邊的人注意這個問題,所以消息就傳出去了。

Tags:PHP

PHP security patch

Posted on 2026 年 10 月 21 日2026 年 10 月 22 日 By 日落 在〈PHP security patch〉中尚無留言

PHP 針對 CVE-2026-109618、CVE-2026-109619 發布安全性更新,這次漏洞導致 RCE (Remote Code Execution),另外看到 OpenAI 表示 GPT-5.6 Sol 找到的漏洞。

PHP 官方一開始先表明有嚴重的漏洞,但沒有說明問題和迴避方式,一直到 patch 釋出才公佈詳細內容。這樣的流程導致在還沒有 patch 之前,就可能先有 bot 開始發動攻擊。

gslin 那邊有追蹤前後發生的事情。

AI 可以開始掃程式碼以後,0-day 應該會越來越多,看看之後各團隊怎麼調整更新流程吧。

Tags:PHP

PHP version support

Posted on 2026 年 10 月 7 日 By 日落 在〈PHP version support〉中尚無留言

按照官方的 PHP 維護時程來看,PHP 8.3 將在 2027-12-31 中止安全性更新;而 PHP 8.4 也將在 2026-12-31 中止功能更新,但仍有安全性更新。

先從測試機更新版本,看起來 Laravel 和多數的專案都遇到什麼問題。

PHP 社群看起來還蠻活躍的,從 RFC 上可以看到一些還不錯的提議,未來應該會有一些有趣的應用。

Tags:PHP

Laravel 預先定義的 constant

Posted on 2026 年 6 月 15 日2026 年 6 月 16 日 By 日落 在〈Laravel 預先定義的 constant〉中尚無留言

無意間發現 Laravel 在 public/index.php 有這樣一段:

define('LARAVEL_START', microtime(true));

這樣要取得程式執行時間就方便多了,不用做一些 workaround。

若要取得程式執行時間,可以這樣寫:

$elapsed = mocrotime(true) - LARAVEL_START;
Tags:Laravel, PHP

PHP Composer v2.9.x 新增的 security audit 功能

Posted on 2026 年 4 月 18 日 By 日落 在〈PHP Composer v2.9.x 新增的 security audit 功能〉中尚無留言

執行了 composer update 以後,發現會出現安全性警告:

  Problem 1
    - Root composer.json requires phpunit/phpunit ^11.5, found phpunit/phpunit[11.5.0, ..., 11.5.55] but these were not loaded, because they are affected by security advisories ("PKSA-5jz8-6tcw-pbk4", "PKSA-z3gr-8qht-p93v").....

看了 composer v2.9.0 release notes 才知道有這個功能。

感覺可以在 actions 裡面加個檢查。

ps. v2.9.2 中可以使用 -no-security-blocking 參數暫時關閉安全檢查

Tags:composer, PHP

文章分頁

1 2 ... 27 下一頁

其他

其他

關於我  (About me)

article RSS feeds  文章 RSS Feed

comments RSS feeds  留言 RSS Feed

Apache AWS Bash C/C++ Docker FreeBSD GCP Git Google Java JavaScript Laravel Linux Microsoft MSSQL MySQL Nginx PHP PHPUnit PostgreSQL Python Qt Ubuntu Unix Vim Web Windows XD 作業系統 分享 好站推薦 專題 小提琴 攝影 新奇搞笑 新聞 旅遊 生活雜記 程式設計 網路架站 網頁設計 資訊學習 資訊安全 遊戲 音樂


創用 CC 授權條款
本著作係採用創用 CC 姓名標示-相同方式分享 4.0 國際 授權條款授權.