Django might try to access the file if the value provided to the filename
query parameter of associated views is an absolute path.
Fixes SWH-WEBAPP-4B9
Differential D8945
api, browse: Ensure to sanitize filename passed to django FileResponse anlambert on Dec 7 2022, 5:55 PM. Authored by Tags None Subscribers None
Details
Django might try to access the file if the value provided to the filename Fixes SWH-WEBAPP-4B9
Diff Detail
Event TimelineComment Actions Build is green Patch application report for D8945 (id=32222)Rebasing onto 36ce2b462f... Current branch diff-target is up to date. Changes applied before testcommit 9a29da9ad68949a46a83828bcd4ea40a217d610e Author: Antoine Lambert <anlambert@softwareheritage.org> Date: Wed Dec 7 17:53:56 2022 +0100 api, browse: Ensure to sanitize filename passed to django FileResponse Django might try to access the file if the value provided to the filename query parameter of associated views is an absolute path. See https://jenkins.softwareheritage.org/job/DWAPPS/job/tests-on-diff/51/ for more details. |