Skip to content

Commit a6bbd47

Browse files
authored
Move vulnerability mark (#12)
1 parent a95ee24 commit a6bbd47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_webgoat/actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ def log_entry():
3131

3232
filename = filename_param + ".txt"
3333
path = Path(user_dir + "/" + filename)
34+
# vulnerability: Directory Traversal
3435
with path.open("w", encoding="utf-8") as open_file:
35-
# vulnerability: Directory Traversal
3636
open_file.write(text_param)
3737
return jsonify({"success": True})
3838

0 commit comments

Comments
 (0)