Repository navigation
Commit b1023f2
committed
π Block visitor-supplied [html_snippet] and enforce integer snippet IDs
- π‘οΈ Strip [html_snippet] from visitor messages in addmsguser.php since [html] and [html_snippet] are system/operator only bbcodes
- β
Validate extracted html_snippet meta in lhbbcode.php and lhbbcode_cleanup.php: reject empty/non-numeric values and cast to int
- π§± Prevent visitor message content from being treated as a canned snippet reference
- π Cast msg and canned message IDs to int in html_snippet.tpl.php to harden the client-side sendHTML call against injection1 parent cb0778f commit b1023f2
4 files changed
Lines changed: 17 additions & 4 deletions
File tree
- lhc_web
- design/defaulttheme/tpl/lhgenericbot/message/content
- lib/core/lhbbcode
- modules/lhchat
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1130 | 1130 | | |
1131 | 1131 | | |
1132 | 1132 | | |
| 1133 | + | |
| 1134 | + | |
| 1135 | + | |
| 1136 | + | |
| 1137 | + | |
| 1138 | + | |
1133 | 1139 | | |
1134 | | - | |
| 1140 | + | |
1135 | 1141 | | |
1136 | 1142 | | |
1137 | 1143 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
979 | 979 | | |
980 | 980 | | |
981 | 981 | | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
982 | 988 | | |
983 | | - | |
| 989 | + | |
984 | 990 | | |
985 | 991 | | |
986 | 992 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
| 39 | + | |
39 | 40 | | |
40 | 41 | | |
41 | 42 | | |
| |||
0 commit comments