Add vpatch-CVE-2024-6671 rule and test#1744
Conversation
|
Hello @crowdsec-automation and thank you for your contribution! ❗ It seems that the following scenarios are not part of the 'crowdsecurity/appsec-virtual-patching' collection: 🔴 crowdsecurity/vpatch-CVE-2024-6671 🔴 |
|
Hello @crowdsec-automation and thank you for your contribution! I'm a bot that helps maintainers to validate scenarios and ensure they include all the required information. The following items have errors: crowdsecurity/crs-exclusion-plugin-cpanel:
crowdsecurity/crs-exclusion-plugin-dokuwiki:
crowdsecurity/crs-exclusion-plugin-drupal:
crowdsecurity/crs-exclusion-plugin-nextcloud:
crowdsecurity/crs-exclusion-plugin-phpbb:
crowdsecurity/crs-exclusion-plugin-phpmyadmin:
crowdsecurity/crs-exclusion-plugin-wordpress:
crowdsecurity/crs-exclusion-plugin-xenforo:
Mitre ATT&CKInformation about mitre attack can be found here.
Expected format is (where labels:
classification:
- attack.TXXXXCVEsIf your scenario covers a specific CVE (Common Vulnerabilities and Exposures), please add it. Expected format is (where labels:
classification:
- cve.CVE-XXX-XXXBehaviorsPlease identify the behavior(s) your scenario is targeting. You can find the list of available behaviors here. Expected format is (where labels:
behavior: <behavior>See the labels documentation for more information. |
This rule targets the SQL injection vulnerability in WhatsUp Gold's DeviceStatisticalMonitors endpoint (CVE-2024-6671). The detection logic is as follows:
/NmConsole/Platform/Filter/DeviceStatisticalMonitors, using a case-insensitivecontainsmatch on the URI.statisticalMonitorTablefor the presence of a semicolon (;), which is a strong indicator of SQL injection attempts, especially as seen in the nuclei template payloads (where multiple SQL statements are chained with;).lowercaseandurldecodetransforms ensure the match is case-insensitive and robust against encoding tricks.This approach minimizes false positives by focusing on the specific vulnerable endpoint and the key injection vector, and avoids overbroad matching. The test nuclei template is adapted to check for a 403 response, as required. All
value:fields are lowercase, and the rule usescontainsas appropriate.