Cita de: Kase en 26 Septiembre 2014, 19:59 PM
que probabilidad hay de tener un script asi?
o de tener algun otro script parecido?
Realmente no es del script en sí, si no de la forma en algunos servidores HTTP exportan variables al sistema, como apache.
http://httpd.apache.org/docs/2.2/env.html
Citar
Although these variables are referred to as environment variables, they are not the same as the environment variables controlled by the underlying operating system. Instead, these variables are stored and manipulated in an internal Apache structure. They only become actual operating system environment variables when they are provided to CGI scripts and Server Side Include scripts. If you wish to manipulate the operating system environment under which the server itself runs, you must use the standard environment manipulation mechanisms provided by your operating system shell.
Claro que hay muchas cosas que pasan por un script que va por CGI que también pueden ser vectores de ataque.
Si el servicio lo levantaron de /bin/sh, entonces las cabeceras se exportan como deben (porque estás manejando sh y no bash). Claro que se puso de moda poner /bin/sh como link a /bin/bash y de ahí muchos problemas.