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
Incoming file paths are not sanitized and are basically handed directly to open. This means that any path readable by the user running obiwan is readable via TFTP.
To fix this, parse incoming filenames into directory components and disallow .. escaping the root directory.
Also we need to propagate errors from readFile.
The text was updated successfully, but these errors were encountered:
Incoming file paths are not sanitized and are basically handed directly to
open
. This means that any path readable by the user running obiwan is readable via TFTP.To fix this, parse incoming filenames into directory components and disallow
..
escaping the root directory.Also we need to propagate errors from
readFile
.The text was updated successfully, but these errors were encountered: