POJIA破甲
地图 / Remote Code Execution via unsafe usage of `reply.view({ raw })` in @fastify/view (EJS template engine)

Remote Code Execution via unsafe usage of `reply.view({ raw })` in @fastify/view (EJS template engine)

代码执行 / Unlabeled / #3122019

厂商
Fastify
严重程度
低危
赏金
—
弱点
Unlabeled
研究员
@oblivionsage
披露日期
2025-05-28
资产
https://github.com/fastify
CVE
—

该报告还没有中文解读。

原文摘录

摘自原文(4646 字符中的一小部分)
The `@fastify/view` plugin, when used with the EJS engine and the `reply.view({ raw: <user-controlled-string> })` pattern, allows arbitrary EJS execution. This leads to Remote Code Execution (RCE) when an attacker can control the `raw` content passed to the view renderer.
原文中的代码
mkdir fastify-rce-poc && cd fastify-rce-poc
npm install fastify @fastify/view ejs

默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Fastify 所有。

时间线

  • 报告提交
  • 公开披露
阅读 HackerOne 原文 ↗作者 @oblivionsage · 版权归作者与 Fastify 所有

同类报告

CVE-2020-8913 - Persistent arbitrary code execution in Android's Google Play Core Library: details, explanation and the PoCGoogle · —Remote code execution [CVE-2023-36845]MTN Group · 2024-10-09Remote Code Execution on Proxy Service (as root)██████ · —XSS Vulnerability on Pressable/Atomic Hosting Platform via unescaped admin notices leads to code executionAutomattic · 2026-02-18Reflected XSS and Server Side Template Injection in all HubSpot CMSesHubSpot Inactive · —Remote Code Execution identified on IBM endpoint.IBM · 2025-12-31