r/programming • u/guest271314 • Dec 15 '24
Proof of concept showcasing how a WASM program can access files outside node:wasi's preopens dir
https://github.com/humodz/node-wasi-preopens-escape
31
Upvotes
View all comments
46
u/anxxa Dec 15 '24
Cool, so it's a TOCTOU that requires coordination with an external program. I guess it'd be useful for a scenario where someone is running a privileged process with attacker-controlled WASM. Or if the WASM for some reason allows for file exfil and its process has privileges to access the target file but the coordinating process does not.
🤷♂️