漏洞信息
尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。
Vulnerability Title
Potential cross-site scripting via URLField values in the admin
Vulnerability Description
An issue was discovered in Django 5.2 before 5.2.17 and 6.0 before 6.0.8.
`django.contrib.admin.utils.display_for_field()` renders `URLField` values as clickable links in the admin without validating the URL. A value stored with an unsafe scheme is displayed as a link on changelist and read-only admin pages, which allows cross-site scripting against staff users who click the link.
Exploitation requires the unsafe value to already be stored in the database. `URLField` validation through a `ModelForm` or the admin rejects unsafe schemes, so this affects applications that persist `URLField` data without running model validation, for example through direct queryset writes, deserialization, or bulk import of untrusted input.
Django would like to thank Egor Saltykov for reporting this issue.
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Vulnerability Type
Web页面属性中脚本转义处理不恰当
Vulnerability Title
Django 跨站脚本漏洞
Vulnerability Description
Django django是Django基金会开源的一个Web应用开发框架。 Django 5.2.17版本之前的5.2版本和6.0.8版本之前的6.0版本存在跨站脚本漏洞,该漏洞源于display_for_field函数在admin中渲染URLField值作为可点击链接时未验证URL,可能导致员工用户点击链接时遭受跨站脚本攻击。
CVSS Information
N/A
Vulnerability Type
N/A