Fixed XSS in 'Text Encoding Brute Force. Closes #539
This commit is contained in:
parent
38ff7ec89f
commit
01f0625d6a
@ -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>";
|
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) {
|
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>`;
|
table += `<tr><td>${enc}</td><td>${value}</td></tr>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user