Skip to content
This repository has been archived by the owner on Dec 13, 2022. It is now read-only.

Fix(security): Sanitize queries in the list of trap groups #12022

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function LdapSearch() {
// defining what we should do when we got a reply
xhrM.onreadystatechange = function () {
// doing nothing until we got everything and a status 200
document.getElementById('ldap_search_result_output').innerHTML = xhrM.responseText;
document.getElementById('ldap_search_result_output').innerHTML = DOMPurify.sanitize(xhrM.responseText);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You must not include a new library without prior agreement

if (xhrM && xhrM.readyState == 4 && xhrM.status == 200 && xhrM.responseXML) {
document.getElementById('ldap_search_result_output').innerHTML = '';

Expand Down Expand Up @@ -334,4 +334,4 @@ function LdapSearch() {
}
}
}
}
}
Loading