Skip to content

Commit

Permalink
Add att.full_clean() before saving
Browse files Browse the repository at this point in the history
Fix issue #983
Also, fix bug stored XSS disclosure: https://huntr.dev/bounties/4d7a5fdd-b2de-467a-ade0-3f2fb386638e/
  • Loading branch information
noobpk committed Nov 18, 2021
1 parent 2c7065e commit 04483bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions helpdesk/lib.py
Expand Up @@ -145,6 +145,7 @@ def process_attachments(followup, attached_files):
'application/octet-stream',
size=attached.size,
)
att.full_clean()
att.save()

if attached.size < max_email_attachment_size:
Expand Down

0 comments on commit 04483bd

Please sign in to comment.