[CVE-2017-6087] EON 5.0 Remote Code Execution
EyesOfNetwork ("EON") is an OpenSource network monitoring solution. The Eonweb code does not correctly filter arguments, allowing authenticated users to execute arbitrary code. On the attacker's host, a handler is started and the `selected_events` parameter is not correctly filtered before it is used by the `shell_exec()` function. There, it is possible to inject a payload like in the request below, where we connect back to our handler. The payload gets injected into the `$event[$key]` and `$ged_command` variables of the `module/monitoring_ged/ged_functions.php` file, line 373. Two other functions in this file are also affected by this problem. On the attacker's host, a handler is started and the `module` parameter is not correctly filtered before it is used by the `shell_exec()` function. Again, we inject our connecting back payload. The payload gets injected into the `$module` variable of the `module/index.php` file, line 28.