-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
koishi-plugin-eval 漏洞整理 #58
Labels
bug
BUG
Comments
多次 log 无法决定消息的发送顺序。 Fixed in bfe718e. |
eval(session.message.split('>>')[1]) Fixed in 0c66d22. |
通过 SIGINT 终止主线程时有小概率发生子线程再次重启的问题。 Fixed in aad8ece. |
部分对象的 inspect 行为不一致。
Related issue: patriksimek/vm2#314. |
Fixed in Mrs4s/go-cqhttp@4941f0c. |
从vm2的issue里跳过来的。。当初觉得vm2有很多问题就还是用了vm //外部
Function.prototype.constructor = new Proxy(Function, {
apply: ()=>{
throw Error()
},
constructor: ()=>{
throw Error()
}
})
Object.freeze(Object)
Object.freeze(Object.prototype)
Object.freeze(Function)
Object.freeze(Function.prototype) 对于爆内存好像没什么好的解决办法 |
@takayama-lily 上面的问题其实都解决了,逃逸这里跟 vm2 有点不太一样,因为 koishi-plugin-eval 是单一的环境,只要你在沙箱外部避免这些操作就没事 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这个 issue 用于整理 koishi-plugin-eval 中存在的漏洞。对漏洞的定义包括:
提交漏洞时请附上代码。
The text was updated successfully, but these errors were encountered: