Bản Tin
Bản tin 20/11Bulletin 20/11

Công nghệ & DevTech & Dev · 20/11 · Mã bàiArticle BT-263 · HOT

phpAfterShell (CVE-2026-126714, CVSS 9.2): RCE PHP mới vượt qua bản vá PHP2Shell — cập nhật lên 8.2.36 / 8.3.37 / 8.4.28 / 8.5.13phpAfterShell (CVE-2026-126714, CVSS 9.2): new PHP RCE bypasses the PHP2Shell patch — update to 8.2.36 / 8.3.37 / 8.4.28 / 8.5.13

Đăng bàiPostXem bài viết gốcView original article

Chỉ một tháng sau vụ PHP2Shell, nhóm nghiên cứu Depthfirst lại tìm ra một đường tấn công mới — phpAfterShell — cho phép chạy mã tùy ý trên máy chủ PHP mà không cần đăng nhập, ngay cả khi máy chủ đã cài bản vá tháng 10 cho PHP2Shell. Bản sửa đã có trong đợt phát hành bảo mật PHP ngày 19/11.Just one month after PHP2Shell, Depthfirst researchers found a new attack path — phpAfterShell — that runs arbitrary code on PHP servers with no login required, even on servers already patched in October for PHP2Shell. The fix shipped in PHP's November 19 security release.

Chỉ một tháng sau vụ PHP2Shell, nhóm nghiên cứu Depthfirst lại tìm ra một đường tấn công mới — phpAfterShell — cho phép chạy mã tùy ý trên máy chủ PHP mà không cần đăng nhập, ngay cả khi máy chủ đã cài bản vá tháng 10 cho PHP2Shell. Bản sửa đã có trong đợt phát hành bảo mật PHP ngày 19/11.

Diễn biến

Nhóm Depthfirst công bố phpAfterShell ngày 19/11/2026 (23:50 giờ Việt Nam), được gán mã CVE-2026-126714 với điểm CVSS 4.0 là 9.2. Đây là bản demo nghiên cứu đã chứng minh khai thác được trọn vẹn, chưa có bằng chứng kẻ tấn công đã dùng ngoài thực tế. Cần phân biệt rõ: hai lỗi PHP2Shell hồi tháng 10 đã được CISA đưa vào danh mục KEV vì bị khai thác thật; còn phpAfterShell thì chưa.

Đợt phát hành bảo mật PHP ngày 19/11 sửa tổng cộng 7 lỗi critical, trong đó có cả CVE-2026-115560 (lỗi PHP CRITICAL đã cảnh báo trước đó) và phpAfterShell. Các bản sửa: PHP 8.2.36, 8.3.37, 8.4.28 và 8.5.13. Bản vá tháng 10 cho PHP2Shell không chứa sửa này — nâng cấp từ bản vá tháng 10 vẫn chưa đủ.

Cơ chế

File session bị "cắt ghép" giữa chừng

Lỗi nằm ở bộ xử lý session mặc định của PHP khi lưu session xuống file — cách lưu mà phần lớn ứng dụng PHP dùng mặc định.

Khi tính năng theo dõi tiến độ upload (session.upload_progress) đang bật, PHP có thể mở và cập nhật file session ngay trong lúc đang đọc một request upload multipart — trước cả khi code của ứng dụng bắt đầu chạy. Vì vậy, kiểm tra đăng nhập trong ứng dụng không ngăn được PHP chạm tới đoạn code lỗi: chỉ cần request tới được Web SAPI dưới dạng multipart/form-data với upload progress đang bật là đủ, ứng dụng không cần có chức năng upload hay gọi session_start() ở endpoint đó.

Điểm yếu nằm ở cách ghi file. PHP ghi session đã serialize vào đúng inode cũ bằng pwrite() rồi ftruncate() — các thao tác này không nguyên tử. Nếu worker PHP chết đúng giữa chừng cập nhật, file session còn lại là một bản "lai": phần đầu của session mới ghép với phần đuôi của session cũ. Cả hai session gốc đều hợp lệ, và đáng ngạc nhiên là bản lai này cũng có thể hợp lệ — nhưng với một ý nghĩa hoàn toàn khác.

File lai này có thể được PHP đọc lại với ý nghĩa khác hẳn session gốc, và nhóm nghiên cứu đã chứng minh đường này dẫn tới thực thi mã từ xa trên máy chủ. Mã chạy với quyền của PHP worker — chưa hẳn là quyền root, nhưng đủ để đọc hoặc sửa credential, file ứng dụng hay dữ liệu khách hàng mà worker có quyền chạm tới.

Vì sao bản vá tháng 10 không chặn được? Bản vá PHP2Shell chỉ hạn chế *loại object nào* được tạo ra trong lúc callback upload-progress. Nó không sửa hành vi cập nhật file session — file vẫn được ghi đè tại chỗ, không nguyên tử, và một lần ghi bị ngắt vẫn để lại session lai hợp lệ.

Ở góc độ phòng thủ, điểm cần nhớ là lỗi nằm ở tầng xử lý session của PHP và phát huy tác dụng trước khi code ứng dụng chạy — vì vậy kiểm tra đăng nhập hay tường lửa ở tầng ứng dụng không thay thế được bản vá. Việc rà soát nên bắt đầu từ các hệ thống còn chạy bản PHP trước đợt phát hành 19/11 với session lưu bằng file mặc định; tắt session.upload_progress chỉ là biện pháp giảm thiểu tạm thời trong lúc chờ nâng cấp, không phải cách khắc phục triệt để.

Phạm vi ảnh hưởng

  • Mọi phiên bản PHP được hỗ trợ đang chạy với session lưu bằng file (mặc định) và bật session.upload_progress đều có thể bị ảnh hưởng.
  • Ứng dụng lưu session trong Redis hoặc cơ sở dữ liệu thay vì dùng file handler mặc định thì không bị lỗi này.
  • PHP 8.0 và 8.1 đã hết hỗ trợ — không có bản sửa; cần chuyển lên nhánh được hỗ trợ.

✅ Việc cần làm ngay

  • Nâng cấp PHP lên 8.2.36, 8.3.37, 8.4.28 hoặc 8.5.13 (tùy nhánh đang chạy). Nếu dùng PHP do distro Linux cung cấp, kiểm tra advisory của distro vì số phiên bản gói có thể khác với upstream.
  • Nếu chưa nâng cấp được ngay: đặt session.upload_progress.enabled = 0 trong php.ini của web service rồi khởi động lại các PHP worker. Cách này chặn đúng đường tấn công qua upload-progress, nhưng không sửa bộ xử lý session — vẫn phải vá.
  • Kiểm tra đúng phiên bản đang phục vụ web (không chỉ binary ở command line), vì hai thứ có thể khác nhau. Với deployment container, rebuild và redeploy lại image ứng dụng.
  • Ưu tiên các máy chủ lộ ra internet và các ứng dụng dùng session file mặc định.

Just one month after the PHP2Shell affair, the Depthfirst research team has found a new attack path — phpAfterShell — that executes arbitrary code on PHP servers with no login required, even on servers that already installed October's PHP2Shell patch. The fix shipped in PHP's November 19 security release.

Timeline

Depthfirst disclosed phpAfterShell on November 19, 2026 (23:50 Vietnam time); it was assigned CVE-2026-126714 with a CVSS 4.0 score of 9.2. This is a research demonstration that proved end-to-end exploitation — there is no evidence attackers have used it in the wild yet. Keep the distinction clear: the two PHP2Shell flaws from October were added by CISA to the KEV catalog because they were genuinely exploited; phpAfterShell has not been.

PHP's November 19 security release fixes 7 critical flaws in total, including CVE-2026-115560 (the PHP CRITICAL flaw flagged earlier) and phpAfterShell. The fixed versions are PHP 8.2.36, 8.3.37, 8.4.28 and 8.5.13. October's PHP2Shell patch does not contain this fix — upgrading from the October patch is still not enough.

Mechanism

Session files spliced mid-write

The flaw sits in PHP's default file-based session handler — the storage method most PHP applications use by default.

When upload progress tracking (session.upload_progress) is enabled, PHP can open and update the session file while it is still reading a multipart upload request — before any application code runs. Application login checks therefore cannot keep PHP away from the buggy code: a request only needs to reach the Web SAPI as multipart/form-data with upload progress enabled; the application does not need an upload feature or a session_start() call at that endpoint.

The weakness is in how the file is written. PHP writes the serialized session back into the same inode with pwrite() followed by ftruncate() — operations that are not atomic. If a PHP worker dies mid-update, the session file left behind is a hybrid: the head of the new session spliced onto the tail of the old one. Both original sessions are valid, and remarkably the hybrid can be valid too — but with a completely different meaning.

That hybrid file can be read back by PHP with a completely different meaning from the original session, and the researchers proved this path leads to remote code execution on the server. The code runs with the PHP worker's privileges — not necessarily root, but enough to read or modify credentials, application files or customer data the worker can reach.

Why didn't October's patch stop this? The PHP2Shell patch only restricted *which object types* may be created during the upload-progress callback. It did not change the session-file update behavior — the file is still overwritten in place, non-atomically, and one interrupted write still leaves a valid hybrid session.

Scope of impact

  • Every supported PHP version running file-based sessions (the default) with session.upload_progress enabled may be affected.
  • Applications that store sessions in Redis or a database instead of the default file handler are not affected by this flaw.
  • PHP 8.0 and 8.1 are end-of-life — no fix is available; move to a supported branch.

✅ What to do now

  • Upgrade PHP to 8.2.36, 8.3.37, 8.4.28 or 8.5.13 (matching your branch). If you use your Linux distribution's PHP packages, check the distro's advisory, since package version numbers may differ from upstream.
  • If you cannot upgrade immediately: set session.upload_progress.enabled = 0 in the web service's php.ini and restart the PHP workers. This blocks the upload-progress attack path, but does not fix the session handler — you still have to patch.
  • Verify the version actually serving web traffic (not just the command-line binary), since the two can differ. For container deployments, rebuild and redeploy the application image.
  • Prioritize internet-facing servers and applications using the default file sessions.

Nguồn tham chiếuSource: Cyber Security News

Đăng bàiPostXem bài viết gốcView original article

Đọc tiếpKeep reading

Công nghệ & DevTech & DevQuốc tếInternational

GitHub giới thiệu Replica và Open Source Accessibility Framework cho mã nguồn mởGitHub introduces Replica and the Open Source Accessibility Framework for open source

Công nghệ & DevTech & Dev · GitHub Blog · Quốc tếInternational · 20/11

GitHub giới thiệu Replica và Open Source Accessibility Framework, các dự án mã nguồn mở mới nhằm hỗ trợ hợp tác và hòa nhập.GitHub introduced Replica and the Open Source Accessibility Framework, new open source projects to support collaboration and inclusion.

Đọc bài đầy đủ →Read the full article →
HOTCông nghệ & DevTech & DevQuốc tếInternational

Cloudflare ghi nhận lưu lượng và tấn công mạng trong bầu cử giữa kỳ Mỹ 2026 từ hơn 1.400 trang được bảo vệCloudflare records Internet traffic and attacks during the 2026 U.S. midterm elections from more than 1,400 protected sites

Công nghệ & DevTech & Dev · Cloudflare Blog · Quốc tếInternational · 20/11

Cloudflare phân tích dữ liệu từ hơn 1.400 trang được bảo vệ về lưu lượng Internet và các cuộc tấn công mạng trong ngày bầu cử giữa kỳ Mỹ 3/11/2026.Cloudflare analyzed data from more than 1,400 protected sites on Internet traffic and cyberattacks on the day of the U.S. midterm elections on November 3, 2026.

Đọc bài đầy đủ →Read the full article →
HOTCông nghệ & DevTech & DevQuốc tếInternational

Lỗ hổng zero-day vCenter CVE-2026-123890 (CVSS 9.8): nhóm APT khai thác hơn 2 tháng, Broadcom vá khẩn — không có workaroundvCenter zero-day CVE-2026-123890 (CVSS 9.8): APT group exploited it for over 2 months, Broadcom ships emergency patch — no workaround

Công nghệ & DevTech & Dev · The Hacker News · Quốc tếInternational · 20/11

Một nhóm tấn công có liên hệ với Trung Quốc (ARMORY CASTLE) đã khai thác lỗ hổng zero-day CVE-2026-123890 (CVSS 9.8) trong VMware vCenter suốt hơn hai tháng trước khi có bản vá. Broadcom công bố bản sửa ngày 19/11/2026 và xếp đây là thay đổi khẩn cấp: không có workaround nào, cách duy nhất là vá ngay và rà soát dấu hiệu xâm nhập.A China-linked threat group (ARMORY CASTLE) exploited the CVE-2026-123890 zero-day (CVSS 9.8) in VMware vCenter for more than two months before a patch existed. Broadcom released fixes on 19 November 2026 and classed the flaw as an emergency change: there is no workaround, so patching immediately and hunting for signs of compromise is the only path.

Đọc bài đầy đủ →Read the full article →