Posted 02 April 2018 - 06:48 PM
ardera had reported 2 Bugs in the Sandboxing of my Program VirtualOS that I can't solve:
1. getfenv(0) return the normal Enviroment. I had try do solve it with this code:
2. You can acces the host fileystem with "/../" e.g. fs.open("/../bug","w"). I had no idea how to solve it.
You can find the Code of VirtualOS here
1. getfenv(0) return the normal Enviroment. I had try do solve it with this code:
function tEnv.getfenv(arg)
if type(arg) == "number" then
return getfenv(arg+1)
else
return getfenv(arg)
end
end
This works for getfenv(0), but gefenv(1),3,5 aare returning the unsandboxed Enviroment.2. You can acces the host fileystem with "/../" e.g. fs.open("/../bug","w"). I had no idea how to solve it.
You can find the Code of VirtualOS here