mirror of
https://github.com/gchq/CyberChef
synced 2025-12-17 16:53:45 +00:00
Fixed XSS in 'Text Encoding Brute Force. Closes #539
This commit is contained in:
@@ -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>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user