Skip to content
CVE-2026-82489 Microsoft Sentinel · KQL

Detect openIMIS Report Module Unauthenticated RCE via ReportBro Preview (CVE-2026-82489) in Microsoft Sentinel

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

KQL Detection Query

Microsoft Sentinel (KQL)
kusto
// df00tech DF00-6045751e71 · https://df00tech.com/detections/CVE-2026-82489 · licence: https://df00tech.com/detections/licence
let reportEndpoints = dynamic(["/api/report/reportbro/preview"]);
let suspiciousMarkers = dynamic(["__import__", "os.system", "subprocess", "eval(", "exec(", "popen", "compile(", "ReportBro", "expression"]);
union isfuzzy=true W3CIISLog, AZFWApplicationRule, CommonSecurityLog
| extend url = coalesce(column_ifexists("csUriStem", ""), column_ifexists("RequestURL", ""), column_ifexists("DestinationUserName", ""))
| extend method = coalesce(column_ifexists("csMethod", ""), column_ifexists("HTTPMethod", ""), "")
| extend body = coalesce(column_ifexists("csUriQuery", ""), column_ifexists("AdditionalExtensions", ""), column_ifexists("RequestContext", ""))
| where url has_any (reportEndpoints)
| where method =~ "POST" or isempty(method)
| where body has_any (suspiciousMarkers) or url has_any (suspiciousMarkers)
| project TimeGenerated, SourceIP = coalesce(column_ifexists("cIP", ""), column_ifexists("SourceIP", "")), url, method, body
| sort by TimeGenerated desc
critical severity medium confidence

Flags POST requests to the openIMIS reportbro/preview endpoint whose body or query string contains Python code-injection markers used in ReportBro template RCE payloads.

Data Sources

IIS LogsAzure FirewallWeb Application Firewall

Required Tables

W3CIISLogAZFWApplicationRuleCommonSecurityLog

False Positives & Tuning

  • Legitimate report generation requests that happen to include words like 'expression' in benign template definitions
  • Security scanners and DAST tooling probing the report API during authorized assessments
  • Automated report preview rendering from the openIMIS UI by authenticated administrators

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.

  1. 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.

  2. 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.

  3. 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

  1. 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.
  2. 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).
  3. 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.
  4. Pivot on the source IP to identify prior reconnaissance, repeated POSTs, or scanning of other API endpoints.

Containment

  1. 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.
  2. 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.
  3. If post-exploitation child processes were observed, isolate the affected host from the network to prevent lateral movement.

Evidence Collection

  1. Preserve full web/proxy/WAF logs including request bodies for the affected endpoint and time window, plus application (Django/Gunicorn) logs.
  2. 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.

Hunting — KQL
kql
// 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
Hunting — SPL
spl
``` 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

Test 1 Simulated unauthenticated code-injection POST to report preview endpoint
linux

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

bash
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

bash
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.

Test 2 Python worker spawns shell (post-exploitation simulation)
linux

Simulates the post-exploitation primitive by having a Python process spawn a shell command, mirroring code execution from the ReportBro template.

Command

bash
python3 -c "import os; os.system('id > /tmp/cve_2026_82489_poc.txt')"

Cleanup

bash
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.

Test 3 Scripted reconnaissance POST with code-injection marker in URL
linux

Uses a scripted HTTP client (python-requests style user agent) to probe the report endpoint, validating user-agent and marker-based detection.

Command

bash
curl -s -A 'python-requests/2.31.0' -X POST 'http://localhost:8000/api/report/reportbro/preview?debug=eval(' -d 'subprocess.Popen'

Cleanup

bash
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.

Related Detections