hunt-django

Detect Django security vulnerabilities including DRF permission misconfigurations and ORM injection points.

1.1k|191|Updated Jun 24, 2026
One-click install
npx skills add https://github.com/uphiago/recon-skills --skill hunt-django
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hunt-django
Source: https://github.com/uphiago/recon-skills/tree/main/redteam/hunt-django
Command: npx skills add https://github.com/uphiago/recon-skills --skill hunt-django

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Django web applications have unique, often overlooked attack surfaces including Django REST Framework permission misconfigurations, ORM injection vectors, exposed admin panels, and unsafe template rendering that generic vulnerability scanners frequently miss.

Core Features & Use Cases

  • DRF Permission Gap Detection: Identifies misconfigured Django REST Framework permission classes that expose sensitive API endpoints to unauthenticated users.
  • ORM Injection Hunting: Locates raw query injection points in Django ORM usage, extra() clauses, and RawSQL annotations.
  • Admin Panel Exploitation Checks: Enumerates Django admin interfaces, tests for weak credentials, and validates session cookie forgery opportunities via leaked SECRET_KEY.
  • Template Injection Discovery: Finds unsafe uses of mark_safe and the |safe template filter that enable server-side template injection. Use Case: During a red team engagement against a Django-based customer portal, use this skill to quickly identify if unauthenticated users can access restricted user data via misconfigured DRF endpoints or exploit the admin panel with common credentials.

Quick Start

Use the hunt-django skill to test a Django REST API endpoint for unauthenticated access to sensitive user data.

Frequently Asked Questions about hunt-django

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I find Django REST Framework permission misconfigurations during a pentest?

To find Django REST Framework permission misconfigurations, test API endpoints for unauthenticated access to sensitive data. Identifying misconfigured permission classes exposes restricted endpoints to unauthorized users during red team engagements.

What is Django ORM injection and how does it work?

Django ORM injection occurs when raw query inputs are unsanitized. Locating injection points involves analyzing extra() clauses, RawSQL annotations, and raw query usage for exploitable vectors that generic vulnerability scanners frequently miss.

How to exploit a Django admin panel with a leaked SECRET_KEY?

Exploit a Django admin panel by enumerating the interface, testing weak credentials, and validating session cookie forgery opportunities using the leaked SECRET_KEY. This targets Django's batteries-included architecture weaknesses.

Can I detect server-side template injection in Django using mark_safe?

Detect server-side template injection in Django by finding unsafe uses of mark_safe and the |safe template filter. These unsafe rendering practices enable template injection vulnerabilities in Python/Django web applications.

Does this vulnerability hunting approach work with Django Channels and Celery task queues?

Yes, vulnerability hunting applies to penetration testing Django web applications using Channels WebSockets or Celery task queues. It identifies exploitable attack surfaces unique to Django's architecture without full manual code review.