Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
CVE-2020-7471 — django 漏洞:CVE-2020-7471 Potential SQL injection via StringAgg(delimiter) 的漏洞环境和 POC | Kitploit
Tools/GitHubGitHub/saferman/cve-2020-7471
Vulnerability AnalysisWeb Application ExploitationLearning & EducationDatabase SecurityLabs & Practice
GitHubsaferman/cve-2020-7471

CVE-2020-7471

django 漏洞:CVE-2020-7471 Potential SQL injection via StringAgg(delimiter) 的漏洞环境和 POC

View Repository
103206 years agoReviewed by Kitploit

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2020-7471

This repository provides the environment and POC for CVE-2020-7471 Potential SQL injection via StringAgg(delimiter) vulnerability.

Affected Django versions

  • 1.11 to 1.11.28 (exclusive)
  • 2.2 to 2.2.10 (exclusive)
  • 3.0 to 3.0.3 (exclusive)

Before downloading and using, the following operations are required:

  1. Install the vulnerable Django version. I used:

    root@kitploit:~
    pip install django==3.0.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
    
  2. Refer to https://www.runoob.com/postgresql/windows-install-postgresql.html to complete the installation of the PostgreSQL database.

  3. Create a new database

    root@kitploit:~
    CREATE DATABASE test;
    
  4. Modify the database configuration in sqlvul_projects/settings.py. If you used the default configuration (including setting the password to postgres) in the previous step, no configuration changes are needed and you can skip this step.

    root@kitploit:~
    DATABASES = {
        'default': {
            'ENGINE': 'django.db.backends.postgresql',
            'NAME': 'test',         # 数据库名称
            'USER': 'postgres',
            'PASSWORD': 'postgres', # 数据库用户密码
            'HOST': '127.0.0.1',    # 数据库地址
            'PORT': '5432',
        }
    }
    
  5. Initialize the data tables via Django

    root@kitploit:~
    python3 manage.py migrate
    python3 manage.py makemigrations vul_app
    python3 manage.py migrate vul_app
    

Then run the POC script CVE-2020-7471.py.

Download Tool