wazuh / wazuh-api

Wazuh - RESTful API
https://wazuh.com
GNU General Public License v2.0
69 stars 57 forks source link

Regex for query param rejects parenthesis #358

Closed crd1985 closed 5 years ago

crd1985 commented 5 years ago

There is an error in line: https://github.com/wazuh/wazuh-api/blob/58e932bcbff812fc3e679c78bfac8f3a4697e1c9/helpers/input_validation.js#L92

Parenthesis are not considered, however they should be allowed.

Example of valid expression:

status=Active,(status=neverconnected;os.platform=ubuntu)