浏览代码

[5.0.x] Added warning about flatpages and untrusted users.

Backport of 571bab98879578b6ef54ee654ead06736855767d from main
Mariusz Felisiak 1 年之前
父节点
当前提交
33ca9f91c2
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      docs/ref/contrib/flatpages.txt

+ 7 - 0
docs/ref/contrib/flatpages.txt

@@ -164,6 +164,13 @@ For more on middleware, read the :doc:`middleware docs
 How to add, change and delete flatpages
 =======================================
 
+.. warning::
+
+    Permissions to add or edit flatpages should be restricted to trusted users.
+    Flatpages are defined by raw HTML and are **not sanitized** by Django. As a
+    consequence, a malicious flatpage can lead to various security
+    vulnerabilities, including permission escalation.
+
 .. _flatpages-admin:
 
 Via the admin interface