Skip to content

linux implementation can read arbitrary files #27

@mlc

Description

@mlc

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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions