@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.
@@ -941,9 +941,10 @@ function detectXxe(input) {
941
941
  // src/sanitizers/ldap.ts
942
942
  var LDAP_DETECT_PATTERN = /[*()\\\x00]/;
943
943
  var LDAP_INJECTION_PATTERN = /\)\s*\(|\*\s*\)\s*\(/;
944
+ var LDAP_NOT_BYPASS_PATTERN = /\)\s*\(\s*!|&\s*\(\s*!|\|\s*\(\s*!/;
944
945
  function detectLdapInjection(input) {
945
946
  if (typeof input !== "string") return false;
946
- return LDAP_DETECT_PATTERN.test(input) || LDAP_INJECTION_PATTERN.test(input);
947
+ return LDAP_DETECT_PATTERN.test(input) || LDAP_INJECTION_PATTERN.test(input) || LDAP_NOT_BYPASS_PATTERN.test(input);
947
948
  }
948
949
 
949
950
  // src/sanitizers/xpath.ts