django-debug-config-enabled: Django Debug Configuration Enabled

日期: 2025-08-01 | 影响软件: django-debug-config-enabled | POC: 已公开

漏洞描述

Django debug configuration is enabled, which allows an attacker to obtain system configuration information such as paths or settings.

PoC代码[已公开]

id: django-debug-config-enabled

info:
  name: Django Debug Configuration Enabled
  author: dhiyaneshDK,hackergautam
  severity: medium
  description: Django debug configuration is enabled, which allows an attacker to obtain system configuration information such as paths or settings.
  metadata:
    max-request: 1
  tags: django,debug,misconfig,vuln

http:
  - method: GET
    path:
      - "{{BaseURL}}/NON_EXISTING_PATH/"

    matchers-condition: and
    matchers:
      - type: word
        words:
          - URLconf defined
          - Page not found
          - Django tried these URL patterns, in this order
        condition: and

      - type: status
        status:
          - 404
# digest: 4a0a00473045022100d3a1338b264fa33cf83c813f1fd827524d2bdf8ed60312f76931e99c278667d602202a38a503c3ded2455526e30ec587617c2a96e5633950832ff32b8444c9f976d8:922c64590222798bb761d5b6d8e72950