Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | Re: php - inject code into $_SERVER ? |
|---|---|
| Date: | Tue, 01 Feb 2005 23:03:13 +0100 |
http://fr.php.net/manual/en/reserved.variables.php#reserved.variables.server: "The entries in this array are created by the webserver"
As for me it does mean that what was written: copy of runtime array created by server for each execution and if somebody has some way to inject any data in $_SERVER it does mean that somebody has control on your server or there is an error in your code.
In the first case nothing will save you since this somebody can do, at least, as much as you: execute any code with servers rights. Why to spend time on injection if code could be executed directly?
In the second case speech is about the same: Why to spend time on injection if code could be executed directly?
My question is now: is there any (known) way for a user to inject arbitrary code into this _SERVER global? (and thus execute this code on the server with root permissions) or am I not-to-unsafe to use it?
Should I perform some more checks on the $_SERVER['REMOTE_ADDR'] before using it as argument?
Thanks for the comments.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Doubt in Security basics, Roland Illig |
|---|---|
| Next by Date: | Software security specifications, i.matilde@gmail.com |
| Previous by Thread: | Re: php - inject code into $_SERVER ?, Bogdan Tomchuk |
| Next by Thread: | Antivirus listing, "weninson rêgo" |
| Indexes: | [Date] [Thread] [Top] [All Lists] |