<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Next.js on Commentary of Takao</title><link>https://takao.blog/zh/categories/next.js/</link><description>Recent content in Next.js on Commentary of Takao</description><generator>Hugo -- gohugo.io</generator><language>zh</language><copyright>Commentary of Takao</copyright><lastBuildDate>Sat, 10 Oct 2026 00:00:00 +0900</lastBuildDate><atom:link href="https://takao.blog/zh/categories/next.js/index.xml" rel="self" type="application/rss+xml"/><item><title>从Next.js高危漏洞看前后端边界安全：Server Actions与CSRF纵深防御</title><link>https://takao.blog/zh/posts/nextjs-server-actions-vulnerability-and-boundary-design/</link><pubDate>Sat, 10 Oct 2026 00:00:00 +0900</pubDate><guid>https://takao.blog/zh/posts/nextjs-server-actions-vulnerability-and-boundary-design/</guid><description>&lt;img src="https://takao.blog/img/thumbnail/nextjs-server-actions-vulnerability-and-boundary-design-zh.png" alt="Featured image of post 从Next.js高危漏洞看前后端边界安全：Server Actions与CSRF纵深防御" /&gt;&lt;p&gt;随着React Server Components（RSC）与Next.js App Router架构的全面普及，&lt;strong&gt;Server Actions（&lt;code&gt;'use server'&lt;/code&gt;）&lt;/strong&gt; 成为了全栈开发领域最炙手可热的特性。开发者无需手动编写冗长的REST API路由或控制器，即可在客户端UI组件内直接“像调用普通函数一样”执行服务端异步逻辑。然而，这种高度便利的抽象层背后潜藏着极其危险的安全盲区：许多开发者误以为该函数属于组件内部私有逻辑，却不知其在构建后已被打包为完全向公网开放的无防备RPC（POST）端点。&lt;/p&gt;</description></item></channel></rss>