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: How to determine which PHP-script allows spamming? |
|---|---|
| Date: | Sat, 15 Apr 2006 01:06:30 +0200 |
Kurt Seifried wrote:The culprit turned out to be some guy who, instead of creating links to his web-pages decided to include them.
This happened in the form of http://domain/index.php?p=/bla/data.html
Of course, "p" could be overwritten and some guy was loading a php-mailer from various geocities and yahoo pages, which our server dutifully parsed...
We could only shake our heads in disbelieve. This had cost us countless hours of (until now) fruitless work.
One relatively easy way to prevent this type of problem is to disallow your web server from making outgoing connections to port 80 TCP (i.e. do not allow it to request things). If you want to be really anal simply disallow any outgoing connection attempts for TCP SYN, this will prevent all sorts of naughtiness from your webserver. Plus when you do see blocked outgoing connections you will know something is up and can correlate it with web logs/etc.
That is a nice and clean global solution.
With PHP you can also turn off fopen-wrappers which will disallow including remote content. IMHO that should be the default, and allowing it would be strictly per-virtualhost basis after auditing the security of the code in question...
-ka
I agree.
cheers, Rainer
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: How to determine which PHP-script allows spamming?, Kari Asikainen |
|---|---|
| Next by Date: | Someone scanning for new PHP issues?, Jamie Riden |
| Previous by Thread: | Re: How to determine which PHP-script allows spamming?, Kari Asikainen |
| Next by Thread: | Re: How to determine which PHP-script allows spamming?, Ademar Gonzalez |
| Indexes: | [Date] [Thread] [Top] [All Lists] |