Django Debug Exposure
ID: django-debug-exposure
Severity: high
Author: geeknik
Tags: django,exposure
Description
Section titled “Description”Django debug mode enabled exposes internal information.
YAML Source
Section titled “YAML Source”id: django-debug-exposure
info: name: Django Debug Exposure author: geeknik severity: high description: Django debug mode enabled exposes internal information. reference: - https://twitter.com/Alra3ees/status/1397660633928286208 metadata: max-request: 1 tags: django,exposure
http: - method: POST path: - "{{BaseURL}}/admin/login/?next=/admin/"
matchers-condition: and matchers: - type: status status: - 500
- type: word part: body words: - "DB_HOST" - "DB_NAME" - "DJANGO" - "ADMIN_PASSWORD" condition: and# digest: 490a004630440220311fe3758a792ccd262c36a5da21a056441f73bd4811af16e991e5231399843b02203d2d1de06ca30c1738a01514e867e407bb07c21e4d4e19f32a5b3205040c8aa8:922c64590222798bb761d5b6d8e72950Guide to check the vulnerabilities
Section titled “Guide to check the vulnerabilities”This template is used to detect vulnerabilities in web applications. It can be used with the Nuclei tool to scan for specific patterns or behaviors.
$ nuclei -u "URL" -t "http/exposures/logs/django-debug-exposure.yaml"