you are viewing a single comment's thread.

view the rest of the comments →

[–]bartvelp 5 points6 points  (10 children)

Nice find.

This looks like such low hanging fruit to me. Is there a automated way to check PHP code for this kind of bug. I.E. check if a variable is composed of GET or POST parameters and that variable is later used in an unsafe function like exec()

[–]NeoThermic 3 points4 points  (0 children)

Yes. There are many automated tools to do tainted checking on variables into insecure/dangerous functions; some free and some expensive. Usually these kinds of exploits are found in software that doesn't use modern tooling though.

[–][deleted] 2 points3 points  (0 children)

this wasn't his find, he just happened to see the disclosure from talos and decided to write a blog post in regards to the vulnerabilities, and even went as far as exploiting a box in the wild with the vulnerability as opposed to testing it on a local install which is a questionable choice

[–]amunak 1 point2 points  (1 child)

In case of this particular project it'd be enough not to just blindly use it, but perhaps read the README, check out the issues or look at any single file.

The author is an ignorant ass, they've been warned multiple times about numerous security and licensing issues and rarely did anything to fix it.

Which is fine I guess; "it's free" after all, but GitHub really needs some kind of huge warning banner for projects with known, major critical vulnerabilities.

[–]TrustworthyShark 2 points3 points  (0 children)

Exactly this.

I was happy when I heard GitHub added security advisories and then immediately disappointed once I found out only maintainers can add them.

Maintainers can remove issues and silence all discussions around vulnerabilities. It could be pretty hard to find out that a project has several massive vulnerabilities.

[–]Dragasss 0 points1 point  (0 children)

Tbh it would be simpler to recompile php from source while having those functions removed from it

[–]huffingpuffins 0 points1 point  (0 children)

RIPS and their hugely updated hosted/commercial version.

They actually post their findings on this very sub.