Mathopd passes files to interpreter even they are word-writable or located in world-writable directory. IMO this is bad idea so I made small patch that makes some, simple checks for these things:
http://smutek.pl/~aniou/mathopd-cgi1.diff -- Piotr 'aniou' Meyer http://smutek.pl/~aniou/
