Files
it-tools/public
Sebastian DanielssonandClaude Opus 5.5 de40fc7a98 fix(visualsubnetcalc, zpool-calc): escape user data before inserting HTML
Visual Subnet Calculator loads its subnet map from `?c=` shareable links
and imported configs, then wrote subnet keys, notes and colours into the
table HTML unescaped. A crafted link could run script on the it-tools
origin. addRow() now escapes the network, note and ancestor keys in join
cells, and only accepts hex colours. Allocation results, validation
issues, warnings, the network-boundary notice and caught exception
messages are escaped as well.

zpool-calc wrote the vdev type <select> value with .html(); use .text().

Both are vendored files; reapply if they are updated from upstream.

Fixes CodeQL js/xss-through-dom and js/xss-through-exception alerts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 21:11:50 +02:00
..
2025-06-08 11:09:47 +02:00
2025-04-19 16:03:42 +02:00
2022-04-15 16:30:25 +02:00
2022-08-14 10:53:39 +02:00
2025-04-13 21:34:20 +02:00
2022-04-15 16:30:25 +02:00
2022-04-15 16:30:25 +02:00
2022-04-15 16:30:25 +02:00
2022-04-15 16:30:25 +02:00
2025-11-29 12:50:25 +01:00
2025-04-19 16:03:42 +02:00
2025-06-08 22:44:34 +02:00
2022-04-15 16:30:25 +02:00
2022-04-15 16:30:25 +02:00
2022-04-15 16:30:25 +02:00
2022-04-15 16:30:25 +02:00
2022-04-15 16:30:25 +02:00
2024-10-06 17:04:01 +02:00
2022-04-15 16:30:25 +02:00
2025-04-12 14:26:04 +02:00
2024-11-11 20:37:56 +01:00