SQL injection in QuerySet.annotate(), aggregate(), and extra()# 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**
[4.0K] /data/pocs/9e15e82ad91968ac9f2ce5ff7f9368221381a4fb
├── [4.0K] cve202228346
│ ├── [ 150] apps.py
│ ├── [ 149] models.py
│ ├── [3.3K] settings.py
│ ├── [ 190] urls.py
│ └── [ 852] views.py
├── [ 378] docker-compose.yml
├── [ 159] Dockerfile
├── [ 567] README.md
├── [ 35] requirements.txt
└── [ 185] setup.sh
1 directory, 10 files