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

Add CVE-2025-24016: Wazuh Unsafe Deserialization RCE Detection template #11616

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

huseyinstif
Copy link

This pull request adds a new template to detect the Wazuh Unsafe Deserialization vulnerability, identified as CVE-2025-24016. The vulnerability arises from the improper deserialization of JSON data using the as_wazuh_object function in Wazuh servers. An attacker can inject a malicious object via the __unhandled_exc__ key to trigger a NameError, indicating that the payload reached the vulnerable code path and potentially allowing remote code execution.

Key Points:

  • Vulnerability: Unsafe deserialization in Wazuh DistributedAPI.
  • Detection Method: The template sends a specially crafted payload with a non-existent class ("NotARealClass") to trigger a NameError.
  • Validation: The template has been validated locally and reliably detects vulnerable instances by confirming an HTTP 500 response with "NameError" in the response body.
  • Impact: Exploitation of this vulnerability could allow an attacker to execute arbitrary code on affected servers, leading to system compromise.

This template provides a robust detection mechanism for researchers and penetration testers to identify and address the vulnerability in Wazuh deployments.

Please review the changes and let me know if further adjustments are needed.

@GeorginaReeder
Copy link

Thanks for your contribution @huseyinstif ! :)

@ritikchaddha
Copy link
Contributor

Hello @huseyinstif, thank you for sharing this template with us. Could you please provide the debug data to validate this template? You can obtain the debug data by using the -debug flag after the command in the CLI.

@ritikchaddha ritikchaddha added the good first issue Good for newcomers label Feb 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants