News for hackers. Stuff that matters.
Re:You thought that “This should never happen was bad”? sear... by Bognar on Thursday March 31, 2016 @01:58PM (#11399142)
Actually I thought "This should never happen" was good. This is pretty bad, though.
Re:You thought that “This should never happen was bad”? sear... by gravypod on Thursday March 31, 2016 @02:03PM (#11399196)
Yea, it's people throwing in checks for cases that should never happen, but probably have saved a lot of money and time for people who were running those products.

This is just horrible.

Re:You thought that “This should never happen was bad”? sear... by kbenson on Thursday March 31, 2016 @02:06PM (#11399214)
Thankfully, most of these I've seen in the first four pages are for things marked as a web shell, or a security scanner, etc, so it's purposeful and not meant for serious webapp use.

Still, kind of scary to see. It's like a listening netcat piping to bash in a loop. Sure there should be a firewall in front...

Re:You thought that “This should never happen was bad”? sear... by gravypod on Thursday March 31, 2016 @02:08PM (#11399225)
If you're going to be doing any of these, there should at least be some form of authentication within the project.

Leaving this open is just hoping someone runs "rm -rf /"

Re:You thought that “This should never happen was bad”? sear... by chc on Thursday March 31, 2016 @02:13PM (#11399266)
It looks like the vast majority are from forks of PHP Vulnerability Hunter, and a few more are from other vulnerability tests. So I guess this isn't actually that common?
Re:You thought that “This should never happen was bad”? sear... by throwaway2016a on Thursday March 31, 2016 @02:04PM (#11399198)
Also bad

https://github.com/search?utf8=%E2%9C%93&q=include%28%24_GET...

There is a simple Google search that allows you to find thousands of websites that do this. Which I won't put since it essential gives you a list of websites ripe for take over.

Re:You thought that “This should never happen was bad”? sear... by deepsun on Thursday March 31, 2016 @08:24PM (#11401659)
Should be "include($_GET" (with quotes)
Re:You thought that “This should never happen was bad”? sear... by blakesterz on Thursday March 31, 2016 @02:14PM (#11399276)
Aren't those almost all "php-vulnerability-hunter – ArbitraryPhpGet.php" ? That seems like, well, not so bad.
Re:You thought that “This should never happen was bad”? sear... by goshx on Thursday March 31, 2016 @02:02PM (#11399179)
Try looking for database connections too.
Re:You thought that “This should never happen was bad”? sear... by paralelogram on Thursday March 31, 2016 @02:19PM (#11399321)
Re:You thought that “This should never happen was bad”? sear... by ams6110 on Thursday March 31, 2016 @02:13PM (#11399268)
Years ago I worked on a web app that had a "hidden" page that would do something like:

  SQL.exec($_GET['sql'])
Was used for support to be able to access customer data to be able to reproduce bugs, etc.
Re:You thought that “This should never happen was bad”? sear... by asfakeaccount on Thursday March 31, 2016 @02:08PM (#11399237)
I'm not familiar with PHP. Can someone explain this to a newbie?
Re:You thought that “This should never happen was bad”? sear... by cokernel on Thursday March 31, 2016 @02:14PM (#11399278)
The function eval[1] evaluates a string as code. The special variable $_GET[2] contains HTTP GET variables, which may be freely set by a remote user.

So if your PHP file executes eval($_GET['code']), then arbitrary folks can submit whatever code they want as a parameter -- as in /index.php?code=blah -- and have your webserver run it for them.

[1] http://php.net/manual/en/function.eval.php [2] http://php.net/manual/en/reserved.variables.get.php

Re:You thought that “This should never happen was bad”? sear... by prl315 on Thursday March 31, 2016 @02:12PM (#11399261)
$_GET is a magic super global in PHP that contains all of the GET parameters of a request. Doing something like eval($_GET['code']); means you're essentially allowing a user to execute arbitrary code passed in through the URL. Not the safest thing to do...
Re:You thought that “This should never happen was bad”? sear... by wvenable on Thursday March 31, 2016 @02:12PM (#11399263)
It evaluates as PHP code the contents of the URL parameter named "code".

Although it seems like most hits are from PHP Vulnerability Hunter -- an automated whitebox fuzz testing tool capable of detected several classes of vulnerabilities in PHP web applications.