Detect openIMIS Report Module Unauthenticated RCE via ReportBro Preview (CVE-2026-82489) in Google Chronicle
Detects exploitation attempts against CVE-2026-82489, an unauthenticated remote code execution vulnerability in the openIMIS report module (openimis-be-report_py) affecting versions before 2026-10. The /api/report/reportbro/preview endpoint evaluates printIf expressions server-side using simpleeval with an insufficient name-prefix blocklist. An attacker can craft an expression that reaches sys.modules['os'] via datetime.sys to run arbitrary OS commands as root. The same endpoint's key parameter can also be abused for unauthenticated arbitrary file read. Detection focuses on anomalous POST requests to the report preview API from unauthenticated contexts, code-injection payload markers in request bodies, and post-exploitation child processes spawned by the openIMIS/Django/Gunicorn application worker.
Based on VulnCheck Advisory: openIMIS 2026-10 Report Module Unauthenticated RCE via ReportBro Preview
MITRE ATT&CK
- Tactic
- Initial Access Execution
YARA-L Detection Query
// df00tech DF00-6045751e71 · https://df00tech.com/detections/CVE-2026-82489 · licence: https://df00tech.com/detections/licence
rule openimis_report_module_rce_cve_2026_82489 {
meta:
author = "Argus Detection Platform"
description = "openIMIS report module unauthenticated RCE via ReportBro preview (CVE-2026-82489)"
severity = "CRITICAL"
cve = "CVE-2026-82489"
events:
$e.metadata.event_type = "NETWORK_HTTP"
$e.network.http.method = "POST"
re.regex($e.target.url, `/api/report/reportbro/preview`)
re.regex($e.network.http.response_code, `.*`) nocase
(
re.regex($e.network.http.user_agent, `(?i)(python-requests|curl|go-http)`) or
re.regex($e.target.url, `(?i)(__import__|os\.system|eval\()`) or
re.regex($e.about.resource.name, `(?i)(__import__|subprocess|reportbro|expression)`)
)
$ip = $e.principal.ip
match:
$ip over 5m
condition:
$e
} YARA-L rule matching POST requests to the openIMIS reportbro/preview endpoint with code-injection markers or scripted HTTP clients, grouped by source IP.
Data Sources
Required Tables
False Positives & Tuning
- Legitimate automation that uses python-requests/curl against the report API
- Benign report templates containing 'expression' or 'compile'
- Authorized security scanning traffic
Other platforms for CVE-2026-82489
Testing Methodology
Validate this detection against 3 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are further down this page.
- Test 1 Simulated unauthenticated code-injection POST to report preview endpoint
Expected signal: Web/proxy log entry: POST /api/report/reportbro/preview with body containing __import__ and os.system from the test source IP.
- Test 2 Python worker spawns shell (post-exploitation simulation)
Expected signal: Process creation event: parent python3 spawning sh -c 'id', with a file write to /tmp/cve_2026_82489_poc.txt.
- Test 3 Scripted reconnaissance POST with code-injection marker in URL
Expected signal: Web log entry: POST /api/report/reportbro/preview with a python-requests user agent and eval(/subprocess markers in the URL/body.
Response Playbook
Triage
- Confirm the openIMIS deployment version. Versions before the 2026-10 release are vulnerable to CVE-2026-82489. Check the installed openimis-be-report_py module version.
- Review the flagged request(s) to /api/report/reportbro/preview: extract the full request body and confirm whether it contains a ReportBro template definition with embedded code-injection markers (__import__, os.system, subprocess, eval/exec).
- Determine whether the request was unauthenticated by correlating with the application auth logs. The vulnerability is exploitable without a session, so a POST with no valid auth token is a strong indicator.
- Pivot on the source IP to identify prior reconnaissance, repeated POSTs, or scanning of other API endpoints.
Containment
- Block the offending source IP(s) at the WAF/reverse proxy and apply a WAF rule denying POSTs to /api/report/reportbro/preview that contain code-injection markers until patched.
- Upgrade openIMIS to the 2026-10 release (or later), which remediates the report module code-injection path. If patching is not immediately possible, disable or firewall off the report preview endpoint.
- If post-exploitation child processes were observed, isolate the affected host from the network to prevent lateral movement.
Evidence Collection
- Preserve full web/proxy/WAF logs including request bodies for the affected endpoint and time window, plus application (Django/Gunicorn) logs.
- Capture process execution telemetry and command lines for any children spawned by the python/gunicorn worker, and collect any dropped files in /tmp or the app working directory.
Escalation Criteria
- !Escalate to incident response immediately if a shell, download utility, or reverse-shell command line is observed as a child of the application worker following the suspicious request.
- !Escalate if the request body contained a working code-injection payload and the server returned a 200/2xx, indicating the template was processed rather than rejected.
Investigation Guide
Forensic Artifacts
- >
Web/proxy access logs showing POST /api/report/reportbro/preview with code-injection markers in the body - >
Django/Gunicorn application and error logs around the request time - >
Process creation records where the parent is python/python3/gunicorn and the child is a shell or recon/download binary - >
Files written to /tmp or the openIMIS working directory and any new/modified cron or systemd persistence
Tuning Guidance
Baseline legitimate report-generation traffic to the /api/report/reportbro/preview endpoint first. Many benign templates may contain the token 'expression' or 'compile'. Prioritize alerts where the request is unauthenticated, uses a scripted user agent (python-requests, curl), or is immediately followed by an anomalous child process of the application worker. Narrow the marker list to the highest-signal tokens (__import__, os.system, subprocess) if 'expression'/'compile' prove noisy in your environment.
Hunting Queries
Hunt for historical POSTs to the reportbro/preview endpoint carrying Python code-injection markers across all retained web logs.
// df00tech DF00-6045751e71 · https://df00tech.com/detections/CVE-2026-82489 · licence: https://df00tech.com/detections/licence
W3CIISLog | where csUriStem has "/api/report/reportbro/preview" and csMethod =~ "POST" | where csUriQuery has_any ("__import__", "subprocess", "eval(", "os.system") | project TimeGenerated, cIP, csUriStem, csUriQuery, scStatus ``` df00tech DF00-6045751e71 · https://df00tech.com/detections/CVE-2026-82489 · licence: https://df00tech.com/detections/licence ```
index=web uri_path="/api/report/reportbro/preview" http_method=POST | eval payload=coalesce(request_body,form_data,uri_query) | search payload="*__import__*" OR payload="*subprocess*" OR payload="*os.system*" | table _time src_ip uri_path status payload Atomic Red Team Tests
Sends an unauthenticated POST to the openIMIS reportbro/preview endpoint with a ReportBro-style template containing a Python code-injection marker to validate web-layer detection.
Command
curl -s -X POST http://localhost:8000/api/report/reportbro/preview -H 'Content-Type: application/json' -d '{"report":{"elements":[{"expression":"__import__(\"os\").system(\"id\")"}]},"outputFormat":"pdf"}' Cleanup
echo 'No persistent changes; clear test entries from web access logs if required for the lab.' Expected Telemetry
Web/proxy log entry: POST /api/report/reportbro/preview with body containing __import__ and os.system from the test source IP.
Expected Detection
The kql, spl, qradar_aql, sumo_logic and chronicle_yaral rules flag the request on the code-injection marker.
Simulates the post-exploitation primitive by having a Python process spawn a shell command, mirroring code execution from the ReportBro template.
Command
python3 -c "import os; os.system('id > /tmp/cve_2026_82489_poc.txt')" Cleanup
rm -f /tmp/cve_2026_82489_poc.txt Expected Telemetry
Process creation event: parent python3 spawning sh -c 'id', with a file write to /tmp/cve_2026_82489_poc.txt.
Expected Detection
The elastic_eql and crowdstrike_cql rules detect the shell child process spawned by the Python worker.
Uses a scripted HTTP client (python-requests style user agent) to probe the report endpoint, validating user-agent and marker-based detection.
Command
curl -s -A 'python-requests/2.31.0' -X POST 'http://localhost:8000/api/report/reportbro/preview?debug=eval(' -d 'subprocess.Popen' Cleanup
echo 'No persistent changes to clean up.' Expected Telemetry
Web log entry: POST /api/report/reportbro/preview with a python-requests user agent and eval(/subprocess markers in the URL/body.
Expected Detection
The chronicle_yaral, kql and spl rules match on the scripted user agent and injection markers.