Remix.run Logo
▲ aperture3 4 hours ago

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 an hour 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...