Fix path traversal on mod upload

Fix possibility of a maliciously crafted mod being written outside of
the mods directory and thus possibily overwriting unrelated files.
This commit is contained in:
Hornwitser committed 2023-12-03 19:59:14 +01:00
1 parent 94cb607930
commit 1095d2466d
4 files changed
+27 -2

No files matched your search

+9
View File
@@ -0,0 +1,9 @@
{
"name": "../bad_path_mod",
"version": "1.0.0",
"title": "Path Traversing Mod",
"author": "Me",
"description": "A mod who's name traverses the filesystem",
"factorio_version": "1.1",
"dependencies": []
}