Article View: alt.privacy.anon-server
Article #213840Re: PHP
From: admin
Date: Sat, 20 Jan 2007 18:38
Date: Sat, 20 Jan 2007 18:38
24 lines
2096 bytes
2096 bytes
On Sat, 20 Jan 2007 10:37:38 -0500, Steve wrote: Thanks for those examples and warnings. Does this summarize it / restate it? ' " and \ (and the null character) are escaped in php processing by default because those characters are used a lot - are probably always needed - to execute commands that a hacker might try to sneak into unvalidated data fields. In a php module, the escaped characters are not evaluated, so php processes normally, but it won't execute a command with them present. If you aren't just storing data on a database, but need to write it out in an email message or newsgroup posting, you have to get rid of the escape characters, while still keeping the hackers out. One way is to keep the php default of 'on' for magic_quotes_dbc. Then, at some point in the php module, when it has processed all the fields, but before it calls the mailto program, run stripslashes() on each field to remove the escape characters. You'd have to be confident that at that point the php module was no longer vulnerable.
Technical Details
Message-ID:
<20070120183908.E3eXvxY6hsoM@anonymous.poster>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.mbox.zip!g2news2.google.com!news4.google.com!news.glorb.com!indigo.octanews.net!news-out.octanews.net!mauve.octanews.net!198.186.190.95.MISMATCH!news-out.readnews.com!postnews3.readnews.com!nr2.newsreader.com.POSTED!not-for-mailReferences:
<MPG.201c014b818450d498982a@news.newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <20070120183908.E3eXvxY6hsoM@anonymous.poster> Subject: Re: PHP Date: Sat, 20 Jan 2007 18:38:33 +0000 From: admin@eelbash.yi.org References: <MPG.201c014b818450d498982a@news.newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.mbox.zip!g2news2.google.com!news4.google.com!news.glorb.com!indigo.octanews.net!news-out.octanews.net!mauve.octanews.net!198.186.190.95.MISMATCH!news-out.readnews.com!postnews3.readnews.com!nr2.newsreader.com.POSTED!not-for-mail X-Complaints: admin@eelbash.yi.org. Include 777 in the subject to get through the spam filters Newsgroups: alt.privacy.anon-server Lines: 24 Organization: NewsReader.Com Subscriber NNTP-Posting-Host: 0a75d8bc.nr2.newsreader.com X-Trace: DXC=N2nT];kN2\Di6J]AL54R<AOA8_@f\K_iBdSnOn3mmWZJ=P@R@fa6??OLABh<JKKWOM_bKIPMmlm;O@l8A:DQceB@jRbQAheSh5D X-Complaints-To: abuse@newsreader.com