Skip to content

Commit

Permalink
docs: Add Security comments (SSRF)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Oct 20, 2024
1 parent d915fb4 commit 8b2423b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cove_ocds/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@

CONTENT_TYPE_MAP = {
"application/json": "json",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx",
"text/csv": "csv",
"application/vnd.oasis.opendocument.spreadsheet": "ods",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": "xlsx",
"application/xml": "xml",
"text/csv": "csv",
"text/xml": "xml",
}

Expand Down Expand Up @@ -51,7 +51,7 @@ def upload_url(self):

def download(self):
response = requests.get(
self.source_url,
self.source_url, # Security: Potential SSRF via user-provided URL
headers={"User-Agent": settings.USER_AGENT},
timeout=settings.REQUESTS_TIMEOUT,
)
Expand Down

0 comments on commit 8b2423b

Please sign in to comment.