Remix.run Logo
▲ OpenEMR Electronic Health Record Platform Under Siege(vulncheck.com)
107 points by ersinesen 8 hours ago | 36 comments
▲aperture3 3 hours ago | parent | next [-]

I run a small WordPress shop so I’m probably more inclined to defend PHP than the average person. But in my experience 99% of the time when I find an injection vulnerability in a client site it’s because of some old code that was using string concatenation to assemble query strings. This hasn’t been an issue in PHP (PDO) or MySQL ($wpdb->prepare) for a long time. OpenEMR was written in the early 2000s. I’d bet most of these vulnerabilities are in old modules that nobody wants to rewrite. I think the age of the codebase is a more relevant factor than PHP.

▲scoot 29 minutes ago | parent [-]

> old modules that nobody wants to rewrite

If only we had a technology that could read those old modules and rewrite them using modern coding standards and up to date libraries. Shucks...

▲k0morebi 2 hours ago | parent | prev | next [-]

Vulncheck is doing the Lord's work here.

▲electriclove 3 hours ago | parent | prev | next [-]

Damn. The idea to build an open version of Epic is good but this fails in the same way in terms of UX.

▲TedDoesntTalk 5 hours ago | parent | prev | next [-]

Are production OpenEMRC deployments on private networks or behind VPNs?

▲nradov 4 hours ago | parent [-]

I think you're mixing up different concepts. OpenEMR instances would typically be deployed behind firewalls (and possibly API gateways as well), although it's possible that some incompetent organizations have deployed production instances without any protection. A VPN might then be provisioned for trusted users or business partners to pass certain traffic through the firewall.

▲Taikonerd 5 hours ago | parent | prev | next [-]

Hackers trying to get people's medical records seems even scummier than trying to get their credit card numbers.

▲iloveoof 4 hours ago | parent | next [-]

Medical records are much more valuable than credit card numbers because you (basically) can’t acquire them legally and the patient has no recourse if they are stolen. You can cancel your credit card, you can’t cancel your medical records.

▲morkalork 3 hours ago | parent [-]

What value are they to J-random Hacker, blackmail?

▲cobzilla an hour ago | parent [-]

Echoing the response below.

Ransoming the data provider is the goal. The data can have zero intrinsic value, but companies will pay lots of money to bury a breach or prevent disclosure.

▲nradov 5 hours ago | parent | prev | next [-]

The typical hacking activity isn't to get people's medical records (which typically have very little value to third parties) but rather to inject ransomware and extort the provider organization.

▲catigula 3 hours ago | parent | prev [-]

Most of the recent agentic attacks across US businesses originate from Chinese state aligned groups leveraging ARTEX. They don't need your money; they want information.

They're also likely trying to be punitive because I'm sure Claude and OpenAI models are slamming them.

▲jijji 3 hours ago | parent | prev | next [-]

about 6-12 months ago I rewrote all of my PHP legacy code bases in Rust and it only took Claude code a couple days to do all of it but I'm not saying that that's a good or bad idea but it's just something that I did to mitigate any of the future problems and also at least from what I've seen the performance is about 20 times faster than PHP.... another thing is the way that it's actually done especially when you're talking about large code bases is you kind of have to go file by file and create a parity of functionality line by line from PHP to rust file by file and then from that you can reliably convert a whole code base.... trying to do it any other way results in a lot of hallucinations...fyi

▲hypercube33 3 hours ago | parent [-]

Any idea how much code and how much it cost? I'm tempted to volunteer my account to at least rip through the existing code and look for any easy bugs to fix. Not hands on enough to write rust myself but I'm open to helping.

▲jijji 30 minutes ago | parent [-]

I just used the $20 a month plan with opus and it was pretty good and it went through 300k line of codebase in about 2 weeks initially and then another two weeks to actually nail down 100% compatibility between both systems with unit testing to confirm that.... there was a smaller code base that only took a few days to rewrite and test.... today I'd probably use deepseek-v4.1-flash to do the same thing because I use that model to make enhancements to the same trees everyday

▲pledess 30 minutes ago | parent | prev | next [-]

The CVEs are real issues but need authentication. The article indicates that the author installed OpenEMR with default credentials admin:pass on his own box, saw a successful attack, but proceeded to allow the box to be used by the attacker for "hosted their own payload delivery infrastructure" (admittedly, this may have been for a short period of time, but the article doesn't say that). I'm unconvinced that this activity by a private "research team" is part of the solution rather than largely just part of the problem.

▲jesse_dot_id 39 minutes ago | parent | prev | next [-]

Used to do IT management for a medical practice. EMR software architecture is universally horrendous. Would suspect many other vendors are in line to be pwned as well.

▲mmsc 3 hours ago | parent | prev | next [-]

https://github.com/openemr/openemr/security

>237 (Public) advisories

Any user clinic or hospital or whatever should be charged with malpractice for using this software. Using this software is a choice.

▲AlotOfReading 3 hours ago | parent [-]

I know some orgs using it during humanitarian missions. What do you suggest they use instead? FEMR, whose website is currently taken over by malvertising?

▲nradov an hour ago | parent | next [-]

Medplum is an option. The core EHR platform is open source.

https://github.com/medplum

▲mmsc 3 hours ago | parent | prev [-]

openmrs, and depending on use-case, dhis2 is a much better option

▲AlotOfReading 3 hours ago | parent [-]

dhis2 is also dealing with sql injections and XSS, according to their advisories page [0], and it requires online access. Wasn't familiar with openmrs though, looks interesting.

[0] https://github.com/dhis2/dhis2-core/security/advisories

▲partloyaldemon 5 hours ago | parent | prev | next [-]

My imagination for evil fails me: what’s the value of these? Predatory fear campaigns against vulnerable people eg those with dementia?

▲stanfordkid 4 hours ago | parent | next [-]

It's probably to hold the data as ransom, because the provider is liable for it's protection.

▲partloyaldemon 2 hours ago | parent [-]

Gotcha!

▲mmooss 2 hours ago | parent | prev | next [-]

Health records are among the most valuable data to steal and sell, based on reading people like Krebs.

▲NamTaf 5 hours ago | parent | prev | next [-]

Extortion. Ad profiling.

But tbh the move is probably to syphon up anything with any perceived value and see who might buy it.

▲d4mi3n 4 hours ago | parent [-]

I'd also add network ingress. An OpenEMR instance may not be particularly compelling as something that can be directly exploited for cash, but if it lives in a network with access to other interesting systems (databases, payment processing systems, etc) it can become a handy link in the exploit chain to enable a repeatable and profitable attack.

▲avidiax 3 hours ago | parent | prev [-]

You ever gone to the hospital in the US? You get random bills for $700 for months after. Very difficult and time consuming to determine if Dr. So-and-so really did interpret your blood panel and if they really are out of network.

You paid for the ambulance ride, right? Did you pay for the contractor paramedic and the supplies?

You could milk that for many thousands of dollars per patient assuming that they can pay.

▲k0morebi 2 hours ago | parent [-]

It's wild that hospitals are allowed to bill in piecemeal. They really need to make a law that all departments and credentialed providers need to centrally bill through the hospital. The first thing on my credit score at age 18 was a derogatory mark for non-payment of a lab bill from an ER visit at an out of state hospital. Never received the lab bill. No phone calls, emails, or letters. Only found it from collections getting a hold of me. Too young to know how to fight it and it set me up for failure for years, credit wise.

▲IshKebab 4 hours ago | parent | prev | next [-]

A SQL injection? In 2026? Is this something you'd trust with your medical information?

Let me guess it's written in Python or PHP or something.

Edit: PHP lol

▲d4mi3n 4 hours ago | parent [-]

There's a reason why SQL injections are consistently in the OWASP top 10. Even with a well governed project, mistakes happen. Add to this that not every project has the budget for a static analysis tool (Semgrep, CodeQL, etc) and the volume of AI generated changes and you have a perfect storm of software defects to keep the classic vulnerabilities alive and well.

▲nradov 4 hours ago | parent | next [-]

Even the free static analysis tools have been pretty good at catching SQL injection vulnerabilities for years now. There is no plausible excuse for this type of mistake.

▲IshKebab 4 hours ago | parent | prev [-]

> Even with a well governed project, mistakes happen.

A well governed project would structurally eliminate this class of bugs. Especially in 2026, even stupid AI can detect the use of non-static query strings. If you use a sane language like Rust even the compiler can enforce this. You don't need any separate static analysis tools. Python, C++ and even Go can do this too (although sadly its default SQL library doesn't).

"Mistakes happen" is not an excuse in this case.

> not every project has the budget for a static analysis tool (Semgrep, CodeQL, etc)

Both of those are free for open source projects! If you're putting a freaking medical records platform out there without even basic free security checking, I would say that is shockingly irresponsible.

▲AlotOfReading 3 hours ago | parent [-]

    Both of those are free for open source projects! 
And OpenEMR has been using Semgrep since it was added by claude at the beginning of the year [0].

[0] https://github.com/openemr/openemr/commits/master/semgrep.ya...

▲basilgohar 5 hours ago | parent | prev [-]

A huge number of risks (not all, but most often cited) are due to risks that are imposed on unjust systems, either discrimination due to preexisting conditions for insurance or otherwise.

I don't want my medical details publicly accessible, but the reasons I don't want that is because it will be abused by entities that profit from acting disingenuously against me.