OS Command Injection in `aws-cdk-lib` NodejsFunction via Unsanitized `OsCommand` Helper (Supply Chain RCE)
该报告还没有中文解读。
原文摘录
摘自原文(10362 字符中的一小部分)
**Asset:** `aws-cdk-lib` (npm package), source: https://github.com/aws/aws-cdk **Severity:** High **CWE:** CWE-78 (Improper Neutralization of Special Elements used in an OS Command, 'OS Command Injection')
原文中的代码
public write(filePath: string, data: string): string {
// ...
return `echo '${data}' > "${filePath}"`;
// ^ NO ESCAPING — single quotes in data break out
}默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 AWS VDP 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @kaporia · 版权归作者与 AWS VDP 所有