We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9d46fd commit 6845e2aCopy full SHA for 6845e2a
runner.py
@@ -517,8 +517,8 @@ def get_seed():
517
file_name = hash
518
else:
519
return make_response(json.dumps({"error": "error"}), 205)
520
- fullpath = path.normpath(path.join("generated_seeds/", str(file_name) + ".json"))
521
- if not fullpath.startswith("generated_seeds/") and not fullpath.startswith("generated_seeds\\"):
+ fullpath = path.realpath(path.join("generated_seeds/", str(file_name) + ".json"))
+ if not fullpath.startswith(path.realpath("generated_seeds/")):
522
raise Exception("not allowed")
523
# Check if the file exists
524
if path.isfile(fullpath):
0 commit comments