Commit b288a7b
committed
fix(gui): escape bot_name and bot_description to prevent XSS
bot_name and bot_description are interpolated directly into HTML without
escaping, allowing a malicious user to inject JavaScript via a crafted
bot configuration (e.g. <img src=x onerror=alert(...)>).
Add html.escape() to both fields in format_cover_html().
Fixes #8101 parent 31a4d36 commit b288a7b
1 file changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | | - | |
78 | | - | |
| 78 | + | |
| 79 | + | |
79 | 80 | | |
80 | 81 | | |
0 commit comments