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
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.
The text was updated successfully, but these errors were encountered:
There used to be a very old and ancient version of node which for whatever reason did not read the contents of textfiles in /sys properly, which is why cat was used.
The name of the interface could well be sanitized.
node-macaddress/lib/linux.js
Line 4 in 63b9f87
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 namedaddress
.It is also a little bit strange to run
cat
to read a file rather than just using the nodefs
module, but patching only that will not solve the security problem.The text was updated successfully, but these errors were encountered: