Description
This module exploits an unauthenticated blind SQL injection in SPIP < 4.4.18. The SQL quoting function for date-type columns skips escaping when the value matches /^\w+\(/ (intended for NOW()). By passing a value like abs(X)) UNION SELECT ... in the annee parameter of the public sitemap.xml page, an attacker can inject arbitrary SQL.
The module uses boolean-based blind injection to extract bcrypt password hashes from spip_auteurs. A UNION SELECT with a WHERE condition produces 2 URLs in the sitemap on TRUE vs 1 on FALSE.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use auxiliary/scanner/http/spip/annee_sqlimsf undefined(annee_sqli) > show actions ...actions...msf undefined(annee_sqli) > set ACTION < action-name >msf undefined(annee_sqli) > show options ...show and set options...msf undefined(annee_sqli) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub