Text: ${site.text
+ temp_tr += `
Username: ${DOMPurify.sanitize(site.username, { USE_PROFILES: { html: false } })}
Rate: ${DOMPurify.sanitize(site.rate, { USE_PROFILES: { html: false } })
+ }
Status: ${DOMPurify.sanitize(site.status, { USE_PROFILES: { html: false } })}
Title: ${DOMPurify.sanitize(site.title, { USE_PROFILES: { html: false } })
+ }
Language: ${DOMPurify.sanitize(site.language, { USE_PROFILES: { html: false } })}
Country: ${DOMPurify.sanitize(site.country, { USE_PROFILES: { html: false } })}
Rank: ${DOMPurify.sanitize(site.rank, { USE_PROFILES: { html: false } })}
Description: ${DOMPurify.sanitize(site.type, { USE_PROFILES: { html: false } })}
Text: ${DOMPurify.sanitize(site.text, { USE_PROFILES: { html: false } })
}
`;
} else if (site.method === 'failed') {
- temp_tr += `
Username: ${site.username}
`;
+ temp_tr += `
Username: ${DOMPurify.sanitize(site.username, { USE_PROFILES: { html: false } })}
`;
}
});
@@ -1437,9 +1438,9 @@
data.user_info_special.data.forEach((site) => {
if (site.found > 0) {
const temp_image = '';
- temp_tr += `
Username: ${site.username}
Rate: ${site.rate}
Status: ${site.status
- }
Title: ${site.title
- }
Description: ${site.type}
Text: ${site.text}
${temp_image}
`;
+ temp_tr += `
Username: ${DOMPurify.sanitize(site.username, { USE_PROFILES: { html: false } })}
Rate: ${DOMPurify.sanitize(site.rate, { USE_PROFILES: { html: false } })}
Status: ${DOMPurify.sanitize(site.status, { USE_PROFILES: { html: false } })
+ }
Title: ${DOMPurify.sanitize(site.title, { USE_PROFILES: { html: false } })
+ }
Description: ${DOMPurify.sanitize(site.type, { USE_PROFILES: { html: false } })}
Text: ${DOMPurify.sanitize(site.text, { USE_PROFILES: { html: false } })}
${temp_image}
`;
}
});
@@ -1449,8 +1450,8 @@
if (data.names_origins.length > 0) {
temp_tr = '';
Object.keys(data.names_origins).forEach((item) => {
- temp_tr += `
${data.names_origins[item].origin} | ${data.names_origins[item].name} | ${data.names_origins[item].matched} | ${data.names_origins[item].similar} | ${data
- .names_origins[item].gender} |
`;
+ temp_tr += `
${DOMPurify.sanitize(data.names_origins[item].origin, { USE_PROFILES: { html: false } })} | ${DOMPurify.sanitize(data.names_origins[item].name, { USE_PROFILES: { html: false } })} | ${DOMPurify.sanitize(data.names_origins[item].matched, { USE_PROFILES: { html: false } })} | ${DOMPurify.sanitize(data.names_origins[item].similar, { USE_PROFILES: { html: false } })} | ${DOMPurify.sanitize(data
+ .names_origins[item].gender, { USE_PROFILES: { html: false } })} |
`;
});
$('#names-origins-table').last().append(`
origin | name | matched | similar | gender |
${temp_tr}
`);
$('#names-origins-section').show();
@@ -1458,7 +1459,7 @@
if (data.custom_search.length > 0) {
temp_tr = '';
Object.keys(data.custom_search).forEach((item) => {
- temp_tr += `
${data.custom_search[item].site} | ${data.custom_search[item].link} | ${data.custom_search[item].snippet} |
`;
+ temp_tr += `
${DOMPurify.sanitize(data.custom_search[item].site, { USE_PROFILES: { html: false } })} | ${DOMPurify.sanitize(data.custom_search[item].link, { USE_PROFILES: { html: false } })} | ${DOMPurify.sanitize(data.custom_search[item].snippet, { USE_PROFILES: { html: false } })} |
`;
});
$('#custom-search-table').last().append(`
site | link | snippet |
${temp_tr}
`);
$('#custom-search-section').show();
@@ -1478,10 +1479,10 @@
Object.keys(data.stats[type_key]).forEach((status_key) => {
temp_tr = '';
data.stats[type_key][status_key].forEach((item) => {
- temp_tr += `
${item[0]} | %${item[1]} |
`;
+ temp_tr += `
${DOMPurify.sanitize(item[0], { USE_PROFILES: { html: false } })} | %${DOMPurify.sanitize(item[1], { USE_PROFILES: { html: false } })} |
`;
});
if (temp_tr.length > 0) {
- $('#stats-tables').last().append(`
[${status_key} profiles] ${type_key} | Percentage |
${temp_tr}
`);
+ $('#stats-tables').last().append(`
[${DOMPurify.sanitize(status_key, { USE_PROFILES: { html: false } })} profiles] ${DOMPurify.sanitize(type_key, { USE_PROFILES: { html: false } })} | Percentage |
${temp_tr}
`);
}
});
$('#stats-section').show();
@@ -1490,7 +1491,7 @@
if(typeof data.stats[type_key] === "object" && Array.isArray(data.stats[type_key])){
temp_tr = '';
data.stats[type_key].forEach((item) => {
- temp_tr += `
${item[0]} | ${item[1]} |
`;
+ temp_tr += `
${DOMPurify.sanitize(item[0], { USE_PROFILES: { html: false } })} | ${DOMPurify.sanitize(item[1], { USE_PROFILES: { html: false } })} |
`;
});
if (temp_tr.length > 0) {
@@ -1504,7 +1505,7 @@
if(data.ages.length > 0){
temp_tr = '';
data.ages.forEach((item) => {
- temp_tr += `
${item.found} | ${item.year} | ${item.age} |
`;
+ temp_tr += `
${DOMPurify.sanitize(item.found, { USE_PROFILES: { html: false } })} | ${DOMPurify.sanitize(item.year, { USE_PROFILES: { html: false } })} | ${DOMPurify.sanitize(item.age, { USE_PROFILES: { html: false } })} |
`;
});
if (temp_tr.length > 0) {
@@ -1515,7 +1516,7 @@
}
if (data.logs.length > 0) {
- $('#logs-pre').html(`
${data.logs}
`);
+ $('#logs-pre').html(`
${DOMPurify.sanitize(data.logs, { USE_PROFILES: { html: false } })}
`);
$('#logs-section').show();
}
@@ -1556,7 +1557,7 @@
if (site.selected === 'true') {
temp_selected = 'checked';
}
- temp_tr += `
`;
+ temp_tr += `
`;
});
$('#detection-options-list').html(temp_tr);
@@ -1610,7 +1611,7 @@
if (typeof matched !== 'undefined' && matched !== null) {
$('#detection-options-list input:checkbox').prop('checked', false);
for (let i = 0; i < matched[1]; i++) {
- $(`#detection-options-list input:checkbox[name="url_${websites_entries_filtered[i].index}"]`).prop('checked', true);
+ $(`#detection-options-list input:checkbox[name="url_${DOMPurify.sanitize(websites_entries_filtered[i].index, { USE_PROFILES: { html: false } })}"]`).prop('checked', true);
}
}
}