Commit b3fdce8
committed
security: support array arguments in exec_background and __rrd_execute (1.2.x backport)
- Accept array $args in exec_background(), auto-escape via cacti_escapeshellarg()
- Accept array $command_line in __rrd_execute(), auto-escape via cacti_escapeshellarg()
- Backward compatible: string arguments still work unchanged
Addresses GHSA-8522-5p3m-754c (High) - Authenticated RCE via Host Variable Injection
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>1 parent cea6212 commit b3fdce8
2 files changed
+12
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
135 | 143 | | |
136 | 144 | | |
137 | 145 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
258 | 262 | | |
259 | 263 | | |
260 | 264 | | |
| |||
0 commit comments