Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

[Snyk: Low -Research] Directory Traversal (due 05/04/2021) #563

Closed
fec-jli opened this issue Feb 3, 2021 · 3 comments
Closed

[Snyk: Low -Research] Directory Traversal (due 05/04/2021) #563

fec-jli opened this issue Feb 3, 2021 · 3 comments
Assignees
Milestone

Comments

@fec-jli
Copy link
Contributor

fec-jli commented Feb 3, 2021

Updating this ticket from a Snyk issue to a research ticket because of how extensive it could be. Because Django on egres is 1.11.29 and we need to bump Django to 2.x or 3.x, we'll be upgrading Django 1-2 major versions for egregs / regulations-site / regulations-core / regulations-parser. Lots of possible complications.

Snyk notes

ref: https://app.snyk.io/vuln/SNYK-PYTHON-DJANGO-1066259

Vulnerable module: django
django@1.11.29, django-overextends@0.4.3 and others
No known exploit
2.2.18, 3.0.12, 3.1.6

django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.

Affected versions of this package are vulnerable to Directory Traversal via the django.utils.archive.extract() function, which is used by startapp --template and startproject --template. This can happen via an archive with absolute paths or relative paths with dot segments.

Remediation: Upgrade django to version 2.2.18, 3.0.12, 3.1.6 or higher.

Completion Criteria

  • Researched and documented possible errors
  • Created a ticket to resolve any errors found during research
  • Resolve the Snyk warning (by doing the upgrade(s))
@fec-jli fec-jli added Needs refinement Security: low Remediate within 90 days labels Feb 3, 2021
@JonellaCulmer JonellaCulmer added this to the Sprint 14.5 milestone Feb 3, 2021
@lbeaufort lbeaufort changed the title snyk-Directory Traversal--LOW (due 05/04/2021) [Snyk: Low] Directory Traversal (due 05/04/2021) Feb 11, 2021
@lbeaufort lbeaufort modified the milestones: Sprint 14.5, Sprint 14.4 Feb 11, 2021
@rfultz rfultz changed the title [Snyk: Low] Directory Traversal (due 05/04/2021) [Snyk: Low -Research] Directory Traversal (due 05/04/2021) Apr 1, 2021
@patphongs
Copy link
Member

The following are incompatible with Django 2.2.18:

regcore 4.2.0 has requirement django<1.12,>=1.8, but you'll have django 2.2.18 which is incompatible.
networkx 2.5.1 has requirement decorator<5,>=4.3, but you'll have decorator 5.0.6 which is incompatible.
django-overextends 0.4.3 has requirement django<2.0,>=1.8, but you'll have django 2.2.18 which is incompatible.
regulations 8.4.2 has requirement django<1.12,>=1.8, but you'll have django 2.2.18 which is incompatible.

@patphongs
Copy link
Member

Django patch in version 2.2.x

@patphongs
Copy link
Member

This vulnerability is not an issue for us as there is no upload capability. Closing this issue.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants