-
Notifications
You must be signed in to change notification settings - Fork 40
linux implementation can read arbitrary files #27
Copy link
Copy link
Closed
Description
Line 4 in 63b9f87
| execFile("cat", ["/sys/class/net/" + iface + "/address"], function (err, out) { |
By prepending ../../.. to the "interface" name, this line of code can be asked read a file from anywhere on the filesystem as long as that file is named address.
It is also a little bit strange to run cat to read a file rather than just using the node fs module, but patching only that will not solve the security problem.
Reactions are currently unavailable