Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API is not compatible with FIPS #165

Closed
mgmacias95 opened this issue Sep 19, 2018 · 1 comment
Closed

API is not compatible with FIPS #165

mgmacias95 opened this issue Sep 19, 2018 · 1 comment
Labels

Comments

@mgmacias95
Copy link
Contributor

Hi team,

I've enabled FIPS in the host I have a Wazuh manager installed in following this guide.

I'm getting errors in some API calls:

  • GET/agents/groups:
    # curl -u foo:bar "localhost:55000/agents/groups?pretty"
    {
        "error": 1000,
        "message": "Wazuh-Python Internal Error: error:060800A3:digital envelope routines:EVP_DigestInit_ex:disabled for fips"
    }
    # curl -u foo:bar "localhost:55000/agents/groups?pretty&hash=sha256"
    {
        "error": 0,
        "data": {
            "totalItems": 1,
            "items": [
                {
                    "count": 0,
                    "mergedSum": "432b8119fc2241ed911512c606481b4f58e91a59499a6565dccbeaad504cc204",
                    "configSum": "d76908d51018ec72afc1a7e17fbc3971c6a812446fd930fdba5ed66f1af47ed0",
                    "name": "default"
                }
            ]
        }
    }
  • GET/agents/groups/files:
    # curl -u foo:bar "localhost:55000/agents/groups/default/files?pretty"
    {
        "error": 1727,
        "message": "Error listing group files: error:060800A3:digital envelope routines:EVP_DigestInit_ex:disabled for fips"
    }
    # curl -u foo:bar "localhost:55000/agents/groups/default/files?pretty&hash=sha256"
    {
        "error": 604,
        "message": "Filter error. Allowed filters: [ offset  limit  sort  search ]  "
    }
  • PUT/agents/:agent_name (and all registering agents API calls):
    # curl -u foo:bar -XPUT "localhost:55000/agents/pepe?pretty"
    {
        "error": 1725,
        "message": "Error registering a new agent: error:060800A3:digital envelope routines:EVP_DigestInit_ex:disabled for fips"
    }

I think a hash option should be added in those API calls to, at least, minimize the impact of these errors.

Best regards,
Marta

@mgmacias95 mgmacias95 added the bug label Sep 19, 2018
@mgmacias95
Copy link
Contributor Author

Hello,

I've made two PRs: wazuh/wazuh#1358 and #166. Those PRs add a hash parameter to GET/agents/groups/files so it can be used with different algorithms than md5.

In order to register agents using the API, ossec-authd must be enabled:

# /var/ossec/bin/ossec-control enable auth
# systemctl restart wazuh-manager

This is a temporary fix so the API could be used in systems with FIPS enabled but in the future, all MD5 hashes should be removed.

Best regards,
Marta

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant