WebApp Sec mailing list archives
Re: MYSQL and PHP
From: Mark Sanders <mark () cyanox nl>
Date: Tue, 16 May 2006 10:28:56 +0200
That is one of the most wrong assumptions.Most apache configuration see .INC as plain/text. Which means if you have your db settings in there anybody can read them by just pointing the browser at them.
The best approach is to use a simple .php file that is not in your document root so not accessible from outside.
Even if you don't put it outside of your document root it will still be parsed as PHP. And as long as you don't print out your sensitive data it should never reach the browser.
John Madden wrote:
Hi, First off i'm not a PHP programmer but I would like toknow the following:Is it standard to use INC files to store MYSQL dbconnections settings (username and password)?What else could you do to make this "safer" ? I presume Apache looks for files with extention "*.INC" and does not processes them, right ? Thanks you __________________________________________________ Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com------------------------------------------------------------------------- Sponsored by: WatchfireWatchfire named worldwide market share leader in web application security assessment by leading market research firm. Watchfire's AppScan is the industry's first and leading web application security testing suite, and the only solution to provide comprehensive remediation tasks at every level of the application. See for yourself. Download a Free Trial of AppScan 6.0 today!https://www.watchfire.com/securearea/appscansix.aspx?id=701300000007t9c --------------------------------------------------------------------------
------------------------------------------------------------------------- Sponsored by: WatchfireWatchfire named worldwide market share leader in web application security assessment by leading market research firm. Watchfire's AppScan is the industry's first and leading web application security testing suite, and the only solution to provide comprehensive remediation tasks at every level of the application. See for yourself. Download a Free Trial of AppScan 6.0 today!
https://www.watchfire.com/securearea/appscansix.aspx?id=701300000007t9c --------------------------------------------------------------------------
Current thread:
- MYSQL and PHP John Madden (May 15)
- Re: MYSQL and PHP Mark Sanders (May 16)
- Re: MYSQL and PHP Robin Wood (May 16)
- Re: MYSQL and PHP Todd Hendricks (May 16)
- Re: MYSQL and PHP Gerald Quakenbush (May 16)
- Re: MYSQL and PHP Robin Wood (May 16)
- Re: MYSQL and PHP Gerald Quakenbush (May 16)
- Re: MYSQL and PHP bugtraq (May 16)
- Re: MYSQL and PHP Reid Nichol (May 17)
- Re: MYSQL and PHP Robin Wood (May 16)
- Re: MYSQL and PHP r0xes (May 16)
- Re: MYSQL and PHP Kevin Johnson (May 16)
- Re: MYSQL and PHP Jason Ross (May 16)
(Thread continues...)