Skip to content
This repository has been archived by the owner on Nov 14, 2020. It is now read-only.

Commit

Permalink
[refs #95885] Document XML attack protection
Browse files Browse the repository at this point in the history
  • Loading branch information
andrei-duhnea committed Jun 13, 2018
1 parent b06ce3a commit c8caa94
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions search/management/commands/load_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,5 +101,7 @@ def handle(self, *args, **options):
f'Processed {len(records)} rows from sheet "{sheet.name}"'
)
)
# Disallow XML with <!ENTITY> declarations inside the DTD
# (https://github.com/python-excel/xlrd/issues/173)
except defusedxml.EntitiesForbidden:
self.stdout.write(self.style.ERROR('Please use a xlsx file without XEE'))

0 comments on commit c8caa94

Please sign in to comment.