Exploit database

Vulnerability

CVE-2020-7471

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · NVD

Vector string

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Description

Django 1.11 before 1.11.28, 2.2 before 2.2.10, and 3.0 before 3.0.3 allows SQL Injection if untrusted data is used as a StringAgg delimiter (e.g., in Django applications that offer downloads of data as a series of rows with a user-specified column delimiter). By passing a suitably crafted delimiter to a contrib.postgres.aggregates.StringAgg instance, it was possible to break escaping and inject malicious SQL.

CVE Program

Exploit source choices

7 sources
aeyesec/cve-2022-34265
GH-aa41ae714a5b53fb3c78a753f0ae3b46GitHubUnofficial GitHub sourcePreferred

PoC for CVE-2022-34265 (Django)

2022-07-077 files · 124 stars
saferman/cve-2020-7471
GH-9f0d00f846f8c4eafa45bc8d2e7f7adaGitHubUnofficial GitHub source

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

2020-02-1125 files · 103 stars
cnhack3r/penetration_poc
GH-fdd34977de44cc5d80df5c3881fca455GitHubUnofficial GitHub source

FROM:@Mr-xn 渗透测试有关的POC、EXP、脚本、提权、小工具等---About penetration-testing python-script poc getshell csrf xss cms php-getshell domainmod-xss penetration-testing-poc csrf-webshell cobub-razor cve rce sql sql-poc poc-exp bypass oa-getshell cve-cms

2022-01-11319 files · 23 stars
secoba/djvul_stringagg
GH-00155208427471df3c307267f800fe09GitHubUnofficial GitHub source

Django StringAgg SQL Injection (CVE-2020-7471)

2020-02-1321 files · 2 stars
sncker/cve-2020-7471
GH-45bd553a676bd89416de6c04ff3e999eGitHubUnofficial GitHub source

CVE-2020-7471 Potential SQL injection via StringAgg(delimiter)

2020-02-2228 files · 2 stars
huzaifakhan771/cve-2020-7471-django
GH-85f87727a6434bb30e1c06b115236827GitHubUnofficial GitHub source

PoC for the SQL injection vulnerability in PostgreSQL with Django, found in Django 1.11 before 1.11.28, 2.2 before 2.2.10, and 3.0 before 3.0.3

2021-06-033 files · 1 stars
addy-shetty/laazy_sqli-labs
GH-e87d3df29a145cea592974e58084fab1GitHubUnofficial GitHub source

addy-shetty/laazy_sqli-labs source repository

2025-04-076 files · 0 stars