Remote Code Execution via unsafe usage of `reply.view({ raw })` in @fastify/view (EJS template engine)
该报告还没有中文解读。
原文摘录
摘自原文(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 所有