Commit ecc5e78
committed
security: fix SSRF, command injection, and XSS in core functions (1.2.x)
- Validate URL in call_remote_data_collector to prevent SSRF via protocol/host injection
- Escape database, username, password, and output_file in db_dump_data exec calls
- Escape $title in html_start_box to prevent stored XSS
Defense-in-depth: all three have limited exploitability (admin-only callers,
DB-sourced inputs, or translated string titles) but are worth hardening.
Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>1 parent cea6212 commit ecc5e78
3 files changed
+14
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2233 | 2233 | | |
2234 | 2234 | | |
2235 | 2235 | | |
| 2236 | + | |
| 2237 | + | |
| 2238 | + | |
2236 | 2239 | | |
2237 | | - | |
| 2240 | + | |
2238 | 2241 | | |
2239 | | - | |
| 2242 | + | |
2240 | 2243 | | |
2241 | | - | |
| 2244 | + | |
2242 | 2245 | | |
2243 | | - | |
| 2246 | + | |
2244 | 2247 | | |
2245 | 2248 | | |
2246 | 2249 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6254 | 6254 | | |
6255 | 6255 | | |
6256 | 6256 | | |
| 6257 | + | |
| 6258 | + | |
| 6259 | + | |
| 6260 | + | |
| 6261 | + | |
| 6262 | + | |
6257 | 6263 | | |
6258 | 6264 | | |
6259 | 6265 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
104 | | - | |
| 104 | + | |
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| |||
0 commit comments