Skip to content

Commit

Permalink
Fixed XSS in 'Text Encoding Brute Force. Closes #539
Browse files Browse the repository at this point in the history
  • Loading branch information
n1474335 committed Apr 14, 2019
1 parent 38ff7ec commit 01f0625
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/operations/TextEncodingBruteForce.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class TextEncodingBruteForce extends Operation {
let table = "<table class='table table-hover table-sm table-bordered table-nonfluid'><tr><th>Encoding</th><th>Value</th></tr>";

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

Expand Down

0 comments on commit 01f0625

Please sign in to comment.