[patch] ForeignKey fields not escaped correctly in django admin
Steps to reproduce:
1. two models m1 and m2
2. m2 has foreign key to m1 and this key in list_display set
3. m1 __str__ returns '<script>alert(1)</script>'
when you will open list of m2 objects in django admin - you should get some alerts.
Since this is security hole i'm setting severity to 'major'.
Change History
(4)
Summary: |
ForeignKey fields not escaped correctly in django admin → [patch] ForeignKey fields not escaped correctly in django admin
|
Cc: |
Sergey Kirillov <rushman@…> added
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
patch