YouGina / CVE-2022-28346

SQL injection in QuerySet.annotate(), aggregate(), and extra()

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CVE-2022-28346

SQL injection in QuerySet.annotate(), aggregate(), and extra()

Setup:

Run ./setup.sh for initial setup

Open the docker image to initiate the database: docker exec -it {container_id} /bin/bash And run the following commands:

python manage.py makemigrations cve202228346
python manage.py migrate

Start the instances using: docker-compose up

Now open the following URL to load sample data:

http://localhost:8000/load_example_data

Then go to the vulnerable page at: http://localhost:8000/users/

Exploit the parameter at: todo

About

SQL injection in QuerySet.annotate(), aggregate(), and extra()


Languages

Language:Python 93.2%Language:Shell 3.6%Language:Dockerfile 3.1%