This repository was archived by the owner on Jun 18, 2026. It is now read-only.
Commit 9d54235
committed
security: fix XSS in NetworkFlowExporter — escape node labels in JS output (CWE-79)
NetworkFlowExporter.export() injected node labels directly into
JavaScript string literals without escaping. A node label containing
single quotes or script-breaking characters (e.g. '); alert(1);//)
would break out of the JS string and execute arbitrary code when the
exported HTML file is opened in a browser.
Replace unescaped string interpolation with ExportUtils.jsonString()
which properly escapes backslashes, quotes, newlines, and control
characters, and uses double-quoted JSON strings instead of single-quoted
JS literals.1 parent 87c92e6 commit 9d54235
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| |||
0 commit comments