[atomic] PHP 5.2.9-2

Atomic repository announcements, new release notifications and other news regarding the atomic yum repository.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

[atomic] PHP 5.2.9-2

Unread post by scott »

Changelog:

- Added mail-header patch, this adds a header indicating what script invoked the mail() function. Useful for tracking spam

Example output on mail sent through php:
X-PHP-Script: example.com/test.php for 10.11.12.13

If you're trying to track down the source of spam from PHP scripts this would be invaluable. Many thanks to ikk on #plesk for pointing this patch out to me.

To upgrade:

yum upgrade php
hostingguy
Forum Regular
Forum Regular
Posts: 661
Joined: Mon Oct 29, 2007 6:51 pm

Re: [atomic] PHP 5.2.9-2

Unread post by hostingguy »

kick ass!!!
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: [atomic] PHP 5.2.9-2

Unread post by faris »

Shame it can't log them though. I imagine you could do this with qmail wrapper, using the info in the header, but it would be nice to have it built-in.

Faris.
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

Re: [atomic] PHP 5.2.9-2

Unread post by Kalimari »

This is very useful, improved logging would be good and it would be nice to be able to disable it on certain paths - not found a way yet - as not all web forms are at risk and outgoing messages with /paths/to/scripts in the mail header is a slight vulnerability in itself.

Anyway, the benefits far out way the drawbacks... Nice addition!
hostingguy
Forum Regular
Forum Regular
Posts: 661
Joined: Mon Oct 29, 2007 6:51 pm

Re: [atomic] PHP 5.2.9-2

Unread post by hostingguy »

I dont think its /full/path/script.php - from scotts description it is vhost/web/path/to/script.php
Something that most people who are visiting the form would probably already know.
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

Re: [atomic] PHP 5.2.9-2

Unread post by Kalimari »

Thanks hostingguy - I realise that, should have been clearer - it shows domain/path/to/script. We make use PHP mail via CMS (for e-commerce/newsletters) and all these messages will now contain the domain/path/to/cms and admin users IP, which provides the recipient with a lot of information.
hostingguy
Forum Regular
Forum Regular
Posts: 661
Joined: Mon Oct 29, 2007 6:51 pm

Re: [atomic] PHP 5.2.9-2

Unread post by hostingguy »

what can they really do with that ?
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: [atomic] PHP 5.2.9-2

Unread post by scott »

If you see more patches like this, please let me know. Theres always room for improvement!
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

Re: [atomic] PHP 5.2.9-2

Unread post by Kalimari »

hostingguy wrote:what can they really do with that ?
Nothing specific, but want to avoid being the lowest hanging fruit. Security through obscurity is one aspect of risk management & damage limitation and while I'm not loosing sleep over this additional header - it's useful - if there is a way to disable it for certain parts of our web service, we will.
Post Reply