You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am able to call many WASI APIs on a file descriptor that doesn't have the right to, and it works without any errors. I wrote an example here where I was able to call fd_write, fd_seek and fd_read on a file descriptor that doesn't have any base rights and no errors appeared and I was able to read and write to this file.
You can run the example I mentioned above, or you can try to use (for example ) fd_read on a file descriptor that doesn't have fd_read rights and it will work without errors.
Expected behavior
The result should be an error, NOT_CAPABLE error I assume.
Actual behavior
The read and write operations is performed without any problems.
Additional context
According to the latest WASI standard, this is supposed to be a security issue. I don't know if the wasmer team is handling capabilities differently, or this is indeed a bug.
The text was updated successfully, but these errors were encountered:
We tried to fix it, but CI is failing. Which indicates that there might be another bug in the Wasmer-WASI implementation, that we need to further investigate (we'll post our findings as we learn them on this issue)
We tried to fix it, but CI is failing. Which indicates that there might be another bug in the Wasmer-WASI implementation, that we need to further investigate (we'll post our findings as we learn them on this issue). We want to wait on #3145 also as it's refactoring the WASI tests
Describe the bug
I am able to call many WASI APIs on a
file descriptor
that doesn't have the right to, and it works without any errors. I wrote an example here where I was able to callfd_write
,fd_seek
andfd_read
on afile descriptor
that doesn't have any base rights and no errors appeared and I was able to read and write to this file.I am using
Steps to reproduce
fd_read
on a file descriptor that doesn't havefd_read
rights and it will work without errors.Expected behavior
NOT_CAPABLE
error I assume.Actual behavior
Additional context
According to the latest WASI standard, this is supposed to be a security issue. I don't know if the wasmer team is handling capabilities differently, or this is indeed a bug.
The text was updated successfully, but these errors were encountered: