@arcis/node 1.6.1 → 1.6.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -945,9 +945,10 @@ function detectXxe(input) {
945
945
  // src/sanitizers/ldap.ts
946
946
  var LDAP_DETECT_PATTERN = /[*()\\\x00]/;
947
947
  var LDAP_INJECTION_PATTERN = /\)\s*\(|\*\s*\)\s*\(/;
948
+ var LDAP_NOT_BYPASS_PATTERN = /\)\s*\(\s*!|&\s*\(\s*!|\|\s*\(\s*!/;
948
949
  function detectLdapInjection(input) {
949
950
  if (typeof input !== "string") return false;
950
- return LDAP_DETECT_PATTERN.test(input) || LDAP_INJECTION_PATTERN.test(input);
951
+ return LDAP_DETECT_PATTERN.test(input) || LDAP_INJECTION_PATTERN.test(input) || LDAP_NOT_BYPASS_PATTERN.test(input);
951
952
  }
952
953
 
953
954
  // src/sanitizers/xpath.ts