Skip to content

Commit

Permalink
Fix Uncontrolled data used in path expression
Browse files Browse the repository at this point in the history
  • Loading branch information
cavenel committed Dec 4, 2023
1 parent c8de7c1 commit cbe2003
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tissuumaps/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,6 +792,9 @@ def send_file_partial(path):

size = os.path.getsize(path)
byte1, byte2 = 0, None
if len(range_header) > 1000:
abort(416)
return
m = re.search(r"(\d+)-(\d*)", range_header)
g = m.groups()

Expand Down

0 comments on commit cbe2003

Please sign in to comment.