Skip to content

Commit 01f0625

Browse files
committed
Fixed XSS in 'Text Encoding Brute Force. Closes #539
1 parent 38ff7ec commit 01f0625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/operations/TextEncodingBruteForce.mjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class TextEncodingBruteForce extends Operation {
7979
let table = "<table class='table table-hover table-sm table-bordered table-nonfluid'><tr><th>Encoding</th><th>Value</th></tr>";
8080

8181
for (const enc in encodings) {
82-
const value = Utils.printable(encodings[enc], true);
82+
const value = Utils.escapeHtml(Utils.printable(encodings[enc], true));
8383
table += `<tr><td>${enc}</td><td>${value}</td></tr>`;
8484
}
8585

0 commit comments

Comments
 (0)