You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jesuslinares
changed the title
Arguments for wazuh-api.js:makeRequest are note validated
Arguments for wazuh-api.js:makeRequest are not validated
Sep 25, 2019
From now on, the request method is validated (so that it can only be GET|PUT|POST|DELETE) and the path must start with /.
As for the id we can not validate it because although initially, it is a timestamp, you can modify the value in the index and, in addition, in the future version of Wazuh the index .wazuh will be obsolete in favor of a configuration file where users can enter the id they want.
The argument of wazuh-api.js:makeRequest must be validated to prevent possible security issues.
async makeRequest(method, path, data, id, reply)
Some ideas:
The text was updated successfully, but these errors were encountered: