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, 1 Feb 2005 20:22:39 +0200 |
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?
afaik there is no way to inject some garbage in $_SERVER variable (if
this will happen because of a bug in php, many, many admins will have a
daily nightmare; but php had some bugs and nothing is impossible)
of course, it's not paranoid to do some regexep like
^[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}$ before passing it to
system call
Alex
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: Insecure Programming Examples, Arturo 'Buanzo' Busleiman |
|---|---|
| Next by Date: | Re: php - inject code into $_SERVER ?, Benoit Lefebvre |
| Previous by Thread: | php - inject code into $_SERVER ?, Christophe Vandeplas |
| Next by Thread: | Re: php - inject code into $_SERVER ?, Christophe Vandeplas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |