@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.
package/dist/index.mjs CHANGED
@@ -1078,9 +1078,10 @@ function detectXxe(input) {
1078
1078
  // src/sanitizers/ldap.ts
1079
1079
  var LDAP_DETECT_PATTERN = /[*()\\\x00]/;
1080
1080
  var LDAP_INJECTION_PATTERN = /\)\s*\(|\*\s*\)\s*\(/;
1081
+ var LDAP_NOT_BYPASS_PATTERN = /\)\s*\(\s*!|&\s*\(\s*!|\|\s*\(\s*!/;
1081
1082
  function detectLdapInjection(input) {
1082
1083
  if (typeof input !== "string") return false;
1083
- return LDAP_DETECT_PATTERN.test(input) || LDAP_INJECTION_PATTERN.test(input);
1084
+ return LDAP_DETECT_PATTERN.test(input) || LDAP_INJECTION_PATTERN.test(input) || LDAP_NOT_BYPASS_PATTERN.test(input);
1084
1085
  }
1085
1086
 
1086
1087
  // src/sanitizers/xpath.ts