Commit 96492ff
fix: harden remaining findings — sweep DoS, constraint validation, XSS, JSON safety, CCSDS parser, CLI errors
Sweep: validate step>0, min<=max, cap at 1000 iterations, index-based loop.
Constraints: validate required keys, operator whitelist, numeric threshold, lock.
JSON: sanitize inf/nan to null in all API responses.
HTTP: top-level exception guards on GET/POST/PUT/DELETE returning 500.
Export: sanitize Content-Disposition filename.
Compare: only compute delta for metrics present on both sides.
Evaluate: skip malformed constraint dicts instead of crashing.
Frontend: add escapeHtml() utility, apply to all innerHTML renders, fix report URL.
CCSDS parser: duplicate key detection, NaN/inf rejection, velocity guard, empty states guard, dead code removal, space-epoch support.
CLI: error handling for FileNotFoundError and CcsdsValidationError in CCSDS imports.
3573 tests passing, 5 skipped.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 410ad87 commit 96492ff
File tree
5 files changed
+487
-77
lines changed- packages
- core/src/humeris
- domain
- pro/src/humeris/adapters
- tests
5 files changed
+487
-77
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
414 | 414 | | |
415 | 415 | | |
416 | 416 | | |
417 | | - | |
| 417 | + | |
418 | 418 | | |
419 | | - | |
| 419 | + | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| |||
446 | 446 | | |
447 | 447 | | |
448 | 448 | | |
449 | | - | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
450 | 458 | | |
451 | 459 | | |
452 | 460 | | |
| |||
458 | 466 | | |
459 | 467 | | |
460 | 468 | | |
461 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
462 | 478 | | |
463 | 479 | | |
464 | 480 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
61 | 63 | | |
62 | 64 | | |
63 | 65 | | |
| |||
86 | 88 | | |
87 | 89 | | |
88 | 90 | | |
| 91 | + | |
| 92 | + | |
89 | 93 | | |
90 | 94 | | |
91 | 95 | | |
| |||
175 | 179 | | |
176 | 180 | | |
177 | 181 | | |
178 | | - | |
179 | 182 | | |
180 | | - | |
| 183 | + | |
181 | 184 | | |
182 | 185 | | |
183 | 186 | | |
184 | 187 | | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
185 | 201 | | |
186 | 202 | | |
187 | 203 | | |
| |||
229 | 245 | | |
230 | 246 | | |
231 | 247 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
| 248 | + | |
239 | 249 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | 250 | | |
266 | 251 | | |
267 | 252 | | |
| |||
301 | 286 | | |
302 | 287 | | |
303 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
304 | 300 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
| 301 | + | |
| 302 | + | |
311 | 303 | | |
312 | 304 | | |
313 | 305 | | |
314 | 306 | | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
315 | 310 | | |
316 | 311 | | |
317 | 312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
| 896 | + | |
| 897 | + | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
| 901 | + | |
| 902 | + | |
896 | 903 | | |
897 | 904 | | |
898 | 905 | | |
| |||
938 | 945 | | |
939 | 946 | | |
940 | 947 | | |
941 | | - | |
| 948 | + | |
942 | 949 | | |
943 | 950 | | |
944 | 951 | | |
945 | 952 | | |
946 | 953 | | |
947 | | - | |
| 954 | + | |
948 | 955 | | |
949 | 956 | | |
950 | 957 | | |
| |||
1259 | 1266 | | |
1260 | 1267 | | |
1261 | 1268 | | |
1262 | | - | |
| 1269 | + | |
1263 | 1270 | | |
1264 | 1271 | | |
1265 | | - | |
1266 | | - | |
| 1272 | + | |
| 1273 | + | |
1267 | 1274 | | |
1268 | 1275 | | |
1269 | 1276 | | |
| |||
1317 | 1324 | | |
1318 | 1325 | | |
1319 | 1326 | | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
1323 | 1330 | | |
1324 | 1331 | | |
1325 | 1332 | | |
1326 | 1333 | | |
1327 | 1334 | | |
1328 | 1335 | | |
1329 | | - | |
| 1336 | + | |
1330 | 1337 | | |
1331 | 1338 | | |
1332 | 1339 | | |
| |||
1389 | 1396 | | |
1390 | 1397 | | |
1391 | 1398 | | |
1392 | | - | |
1393 | | - | |
| 1399 | + | |
| 1400 | + | |
1394 | 1401 | | |
1395 | 1402 | | |
1396 | 1403 | | |
| |||
1400 | 1407 | | |
1401 | 1408 | | |
1402 | 1409 | | |
1403 | | - | |
| 1410 | + | |
1404 | 1411 | | |
1405 | 1412 | | |
1406 | 1413 | | |
| |||
0 commit comments