Description
This module exploits a vulnerability found in OpenEMR version 4.1.1 Patch 14 and lower. When logging in as any non-admin user, it's possible to retrieve the admin SHA1 password hash from the database through SQL injection. The SQL injection vulnerability exists in the "new_comprehensive_save.php" page. This hash can be used to log in as the admin user. After logging in, the "manage_site_files.php" page will be used to upload arbitrary code.
Module options
To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':
msf > use exploit/unix/webapp/openemr_sqli_privesc_uploadmsf undefined(openemr_sqli_privesc_upload) > show actions ...actions...msf undefined(openemr_sqli_privesc_upload) > set ACTION < action-name >msf undefined(openemr_sqli_privesc_upload) > show options ...show and set options...msf undefined(openemr_sqli_privesc_upload) > runPrioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub