Add vpatch-CVE-2024-3605 rule and test#1743
Add vpatch-CVE-2024-3605 rule and test#1743crowdsec-automation wants to merge 4 commits intomasterfrom
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-3605 🔴 |
|
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 SQL injection attempts in the WP Hotel Booking plugin's
/wp-json/wphb/v1/rooms/search-roomsREST API endpoint, specifically focusing on theroom_typeparameter. The detection logic is as follows:/wp-json/wphb/v1/rooms/search-rooms, using bothlowercaseandurldecodetransforms to ensure normalization and case insensitivity.room_typeargument in the query string for the presence of a double quote ("), which is a common SQL injection metacharacter and is present in the exploit payload (room_type=1%22%29%20OR%20SLEEP...). Again,lowercaseandurldecodeare applied for normalization.The test config and nuclei template are adapted to ensure the rule is triggered by a request containing the SQLi payload in the
room_typeparameter, expecting a 403 response from the WAF. Allvalue:fields are lowercase, and all transforms includelowercasewhere applicable. The rule usescontainsfor matching, notregex, as per guidelines.