Commit 528290f
Merge branch 'tb/config-copy-or-rename-in-file-injection'
Avoids issues with renaming or deleting sections with long lines, where
configuration values may be interpreted as sections, leading to
configuration injection. Addresses CVE-2023-29007.
* tb/config-copy-or-rename-in-file-injection:
config.c: disallow overly-long lines in `copy_or_rename_section_in_file()`
config.c: avoid integer truncation in `copy_or_rename_section_in_file()`
config: avoid fixed-sized buffer when renaming/deleting a section
t1300: demonstrate failure when renaming sections with long lines
Signed-off-by: Taylor Blau <[email protected]>2 files changed
+55
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3027 | 3027 | | |
3028 | 3028 | | |
3029 | 3029 | | |
3030 | | - | |
| 3030 | + | |
3031 | 3031 | | |
3032 | | - | |
| 3032 | + | |
| 3033 | + | |
3033 | 3034 | | |
3034 | 3035 | | |
3035 | 3036 | | |
| |||
3082 | 3083 | | |
3083 | 3084 | | |
3084 | 3085 | | |
| 3086 | + | |
| 3087 | + | |
3085 | 3088 | | |
3086 | 3089 | | |
3087 | 3090 | | |
| |||
3091 | 3094 | | |
3092 | 3095 | | |
3093 | 3096 | | |
3094 | | - | |
| 3097 | + | |
3095 | 3098 | | |
3096 | 3099 | | |
3097 | 3100 | | |
3098 | 3101 | | |
| 3102 | + | |
3099 | 3103 | | |
3100 | 3104 | | |
3101 | 3105 | | |
| |||
3132 | 3136 | | |
3133 | 3137 | | |
3134 | 3138 | | |
3135 | | - | |
3136 | | - | |
3137 | | - | |
| 3139 | + | |
| 3140 | + | |
3138 | 3141 | | |
3139 | | - | |
3140 | | - | |
| 3142 | + | |
| 3143 | + | |
| 3144 | + | |
| 3145 | + | |
| 3146 | + | |
| 3147 | + | |
| 3148 | + | |
| 3149 | + | |
| 3150 | + | |
| 3151 | + | |
| 3152 | + | |
| 3153 | + | |
3141 | 3154 | | |
3142 | | - | |
| 3155 | + | |
3143 | 3156 | | |
3144 | | - | |
| 3157 | + | |
3145 | 3158 | | |
3146 | 3159 | | |
3147 | 3160 | | |
| |||
3158 | 3171 | | |
3159 | 3172 | | |
3160 | 3173 | | |
3161 | | - | |
| 3174 | + | |
3162 | 3175 | | |
3163 | 3176 | | |
3164 | 3177 | | |
| |||
3233 | 3246 | | |
3234 | 3247 | | |
3235 | 3248 | | |
| 3249 | + | |
3236 | 3250 | | |
3237 | 3251 | | |
3238 | 3252 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
616 | 646 | | |
617 | 647 | | |
618 | 648 | | |
| |||
0 commit comments