DEV Community

Anoymask
Anoymask

Posted on Edited on

Attacks Targeting 8 CVEs Observed on OpenEMR Canaries: DB Credential Theft, Web Shell Deployment, and Implant Execution

1. Basic Information

2. One-Line Summary

VulnCheck recorded 1,053 attack events on an OpenEMR canary from November 9 to 27. It reported that attackers enumerated the credential table via SQLi, obtained database credentials and deployed a web shell via FaxSMS, and executed a multi-architecture implant following command injection. The recovered script had a feature to add SSH keys.

3. Attack Flow

These are three cases VulnCheck observed on the canary. The authentication and privilege requirements differ for each path.

Path 1: From Fee Sheet SQLi (CVE-2026-124469) to Credential Table Enumeration

  • In the observed case, the attacker logs into OpenEMR using default credentials (admin:pass) to establish the required session state.
  • Using SQL injection in Fee Sheet, they enumerate the database name and the users_secure table. Retrieval of hash values is unconfirmed in public records.

Path 2: From FaxSMS File Read/Write to Configuration File Credential Theft

  • An authenticated attacker reaches disposeDocument in FaxSMS.
  • They obtain plaintext database connection credentials from the configuration file (sqlconf.php).
  • In the November 10 case, it took less than four minutes from obtaining the database connection credentials to deploying and reading back a test PHP file. In a separate case on November 13, VulnCheck observed an attacker write a PHP web shell capable of executing commands into the Smarty template cache (acl_admin.tpl.php), a location that blends in with legitimate compiled templates. About 2.5 hours later, the attacker wrote the same web shell again to canaries in Spain and Japan.

Path 3: From Backup Feature Command Injection (CVE-2026-32238) to Implant Execution

  • According to the advisory, OS command injection in the backup feature requires an authenticated account with high privileges. VulnCheck observed reconnaissance commands targeting this feature.
  • VulnCheck reported implant execution on the canary. The recovered delivery script was designed to fetch a binary matching the CPU type.
  • The recovered delivery script has a feature to add an SSH key if it has root privileges on the OS. Whether key addition and SSH connections succeeded is unconfirmed.

4. Attacker Position and Execution Location

  • An attacker who can reach the target feature and meets the authentication and privilege requirements for each path.

5. Visibility from Victims and Administrators

Victims

  • Compromise may progress without any visible changes to normal medical workflow screens.

Administrators

  • SQLi patterns, anomalous PHP files, unknown processes, and authorized_keys changes are key indicators.

6. Success and Failure Conditions

Success Conditions

  • The vulnerable OpenEMR instance is reachable from the outside.
  • The feature corresponding to the target CVE is enabled.
  • The attacker can reach the target feature and meets the authentication and privilege requirements for each path.

Failure Conditions and Mitigations

  • Update to 8.5.0.
  • Restrict external exposure, and use a WAF or reverse proxy as an interim mitigation if it can block access to the affected paths.

7. Impact Upon Success

  • Enumeration of the credential table (users_secure) and theft of plaintext database connection credentials from the configuration file.
  • Deployment of a web shell via FaxSMS and execution of an implant following command injection.
  • The recovered delivery script can add an SSH key if it has root privileges on the OS. Whether key addition succeeded is unconfirmed.
  • Potential subsequent access to patient and medical records.

8. Observable Logs

  • Host and Application Logs: Web server logs, PHP file creation, process execution, authorized_keys changes.
  • Identity and Access Activity: Anomalous logins to OpenEMR accounts.
  • Database Query Logs: If database queries are logged, queries that enumerate credential table metadata can be observed.
  • Network Activity: OpenEMR-specific requests, outbound C2.

9. Compromise Assessment

  • Confirmed information theft or session compromise: In the November 10 FaxSMS case, the response contained plaintext database connection credentials, and it took less than four minutes to deploy and read back a test PHP file. This finding is limited to the November 10 FaxSMS case on the canary. Reading the test PHP file back confirmed the write. Execution of the test file and retrieval of password hashes in the observed Fee Sheet SQL injection case remain unconfirmed.
  • Confirmed follow-on compromise: VulnCheck reported implant execution following command injection (CVE-2026-32238) on the canary. The recovered delivery script had a feature to add an SSH key if it has root privileges on the OS. Limited to the canary. Successful SSH key addition, SSH connections, compromises at medical institutions, and patient data leaks are unconfirmed.

10. Investigation Playbook

  • Investigation Triggers: SQLi targeting OpenEMR, anomalous PHP files, SSH key changes.
  • Initial Checks: Check the target version, exposure scope, authentication requirements, and whether the affected features are in use.
  • Evidence Preservation: Preserve product logs, configuration change history, and related files.
  • Identity and Access Review: Check authentication history, privileges, and secret usage history.
  • Follow-on Activity: Investigate suspicious execution, configuration changes, internal reconnaissance, and credential usage.
  • Containment: Update OpenEMR to 8.5.0, restrict exposure, isolate and remove web shells, implants, and SSH keys, and rotate credentials.
  • Incident Assessment: Classify separately into reachability, attempts, authentication/execution success, information retrieval, and follow-on compromise.

11. Defense and Detection Ideas

  • Single-Event Detection: users_secure enumeration or anomalous PHP file writes to OpenEMR URLs.
  • Event Correlation: Correlate requests to the affected paths with immediate subsequent actions. Check for PHP file creation and differences in the Smarty template cache (including acl_admin.tpl.php among the compiled templates) for FaxSMS, and suspicious process execution followed by SSH key changes for the backup feature.
  • Threat Hunting: Inventory externally exposed OpenEMR instances, version numbers, webroot diffs, and SSH keys.
  • Logging Gaps: A WAF alone cannot capture post-exploitation database and OS activity.
  • Priority Controls: Perform the update to 8.5.0 and compromise indicator investigation simultaneously.

12. Facts / Inference / Hypothesis

Facts

  • VulnCheck observed 1,053 attack events targeting OpenEMR on a canary from November 9 to 27.
  • Of the 1,053 events, 594 targeted Fee Sheet SQLi (CVE-2026-124469). Attackers obtained the MySQL version and database name, and enumerated the credential table (users_secure).
  • Attacks targeting eight CVEs (CVE-2026-124469, CVE-2026-124450, CVE-2026-124490, CVE-2026-124446, CVE-2026-24849, CVE-2026-126443, CVE-2026-32238, CVE-2026-124488) were observed on the canary. In individual cases, theft of database connection credentials and web shell deployment via FaxSMS, and implant execution following command injection in the backup feature were reported.
  • VulnCheck reported observing exploitation targeting 5 of the CVEs disclosed on November 8 on the canary within 24 hours of disclosure. In the November 10 FaxSMS case, it took less than four minutes from obtaining database connection credentials to deploying and reading back a test PHP file.
  • OpenEMR 8.5.0 includes fixes for all eight CVEs targeted in the observed attacks. The initial fixed versions were 8.3.0 for 5 CVEs, 7.0.4 for CVE-2026-24849, 8.0.0.2 for CVE-2026-32238, and 8.5.0 for CVE-2026-126443.

Inference

  • For internet-facing healthcare systems, waiting for regular patch cycles after CVE disclosure may be too slow to prevent initial compromise and persistence.

Hypothesis

  • None

13. MITRE ATT&CK Mapping

ID Technique Confidence Basis
T1190 Exploit Public-Facing Application high On an externally exposed canary, requests targeting post-authentication SQLi, file read/write, command injection, and missing authorization in patient search were observed.
T1505.003 Server Software Component: Web Shell high On November 13, writing a PHP web shell with command execution capability was observed on the canary.
T1098.004 Account Manipulation: SSH Authorized Keys medium The recovered delivery script has a feature to add an SSH key if it has root privileges on the OS. Whether key addition succeeded is unconfirmed.

14. Unknowns and Further Investigation

  • The number of compromises at medical institutions outside the canary and whether patient data was leaked are unconfirmed.
  • VulnCheck reports that attacks on its canaries came from 12 IP addresses. BleepingComputer reports 14. The reason for the difference is unclear. VulnCheck counted 1,053 attacks from November 9 to 27 but did not give a separate source IP count for that period.
  • The operator of the source IPs and whether this is a single campaign remain undetermined.

15. Impact on SOCs and Organizations

Medical institutions need to update to 8.5.0 and retrospectively investigate users_secure enumeration, PHP file creation, authorized_keys changes, and external exposure history.

16. Audience-Specific Summary

  • For SOCs: Check suspicious requests to OpenEMR by path, and correlate them chronologically with database metadata enumeration, PHP file creation, process execution, and SSH key changes.
  • For Administrators: Update to 8.5.0, restrict exposure, and check for web shells and SSH keys using VulnCheck IOCs.
  • For Users: Healthcare staff should report suspicious logins or screen changes and follow instructions to reset credentials.

Top comments (0)