Description
The SPIP referer_spam plugin versions prior to 1.3.0 contain an unauthenticated SQL injection vulnerability in the referer_spam_ajouter and referer_spam_supprimer action handlers. The handlers read the url parameter from a GET request and interpolate it directly into SQL LIKE clauses without input validation or parameterization. The endpoints do not enforce authorization checks and do not use SPIP action protections such as securiser_action(), allowing remote attackers to execute arbitrary SQL queries.
Problem types
CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Product status
Any version before 1.3.0
Credits
Valentin Lobstein (Chocapikk)
VulnCheck
References
chocapikk.com/posts/2026/spip-plugins-vulnerabilities/
blog.spip.net/...jour-de-securite-sortie-de-SPIP-4-4-10.html
plugins.spip.net/referer_spam.html
git.spip.net/...mit/33682df73cd5f7e9c72d8c4d5088611fa2441683
www.vulncheck.com/...erer-spam-unauthenticated-sql-injection