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
--allow-new flag is used to allow Deno to make network requests.
Imports are implicitly allowed and cached in DENO_DIR for subsequent requests.
hisorange
changed the title
Isn't --allow-net should block network access from imports?
Deno should not import remote files without --allow-net flag
Dec 10, 2018
Wrongly worded title, but my main concern is simple, I can craft new import urls with secrets hidden in them and respond dummy ts codes without --allow-net flag.
Just experimenting with deno so please excuse my instant misbehave.
But isn't the
--allow-net
flag's purpose is to encapsuate the process from the network and not let the script access the network without permission?If this is the case, then we should block imports/require from calling remote urls.
This small snippet allowed me to read and send my secret without net access.
As I seen the
--allow-read
will block me from reading the filesystem but still the netwoking is available with crafted imports.The text was updated successfully, but these errors were encountered: