Commit eb7432d
committed
LDKController: HTML-encode container-scope messages and redirect URL
The container-scoped-tables inspection view joined validation messages with StringUtils.join and rendered them via HtmlString.of, and the invalid-redirect error wrapped the user-supplied URL with HtmlString.unsafe. Both reflected unescaped user-controlled content into the page (reflected XSS). Each validation message is now passed through PageFlowUtil.filter before joining (the assembled string is then marked HtmlString.unsafe since its pieces are already encoded), and the redirect error now uses HtmlString.of so the URL is escaped.1 parent 5a5bd07 commit eb7432d
1 file changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
95 | 96 | | |
96 | 97 | | |
97 | 98 | | |
| |||
439 | 440 | | |
440 | 441 | | |
441 | 442 | | |
442 | | - | |
| 443 | + | |
443 | 444 | | |
444 | | - | |
| 445 | + | |
445 | 446 | | |
446 | 447 | | |
447 | 448 | | |
| |||
912 | 913 | | |
913 | 914 | | |
914 | 915 | | |
915 | | - | |
| 916 | + | |
916 | 917 | | |
917 | 918 | | |
918 | 919 | | |
| |||
0 commit comments