Add vpatch-CVE-2020-8656 rule and test
This rule targets SQL injection attempts in the EyesOfNetwork getApiKey endpoint (CVE-2020-8656). The detection logic is as follows:
- The first rule block matches requests to the
/eonapi/getApiKeyendpoint by checking if the URI contains this path, using a lowercase transform for normalization. - The second rule block inspects the
usernamequery parameter for the presence of a single quote ('), which is a common SQL injection metacharacter. Bothlowercaseandurldecodetransforms are applied to ensure the match is case-insensitive and works even if the payload is URL-encoded. - The rule avoids matching on the full SQLi payload to reduce false negatives and instead focuses on the minimal, reliable indicator of SQLi attempts.
- The labels section includes the correct CVE, ATT&CK, and CWE references, and the product/vuln class label is formatted as required.
- The test nuclei template is reduced to a single request and only checks for a 403 response, as per the guidelines.
Validation checklist:
- All
value:fields are lowercase. - All relevant transforms include
lowercase. - No
match.valuecontains capital letters. - The rule uses
containsinstead ofregexwhere applicable.
Hello @crowdsec-automation and thank you for your contribution!
:heavy_exclamation_mark: It seems that the following scenarios are not part of the 'crowdsecurity/appsec-virtual-patching' collection:
:red_circle: crowdsecurity/vpatch-CVE-2020-8656 :red_circle:
Hello @crowdsec-automation,
Scenarios/AppSec Rule are compliant with the taxonomy, thank you for your contribution!
Hello @seemanne,
:white_check_mark: The new VPATCH Rule is compliant, thank you for your contribution!
Hello @seemanne,
Scenarios/AppSec Rule are compliant with the taxonomy, thank you for your contribution!
Hello @seemanne,
:white_check_mark: The new VPATCH Rule is compliant, thank you for your contribution!
Hello @seemanne,
Scenarios/AppSec Rule are compliant with the taxonomy, thank you for your contribution!
Hello @AlteredCoder,
Scenarios/AppSec Rule are compliant with the taxonomy, thank you for your contribution!
closed in favor of https://github.com/crowdsecurity/hub/pull/1569