Re: database password visible!!
| From: | Rasmus Lerdorf | Date: | Mon, 12 Mar 2001 20:25:25 +0000 |
| Subject: | Re: database password visible!! | ||
| References: | 1 | Groups: | php.mirrors |
| Request: | Send a blank email to php-mirrors+get-4453@lists.php.net to get a copy of this message | ||
It makes no difference. The database is not open to external connections.
And as you can see there is no password, so I am not sure which password
you think is visible.
-Rasmus
On Mon, 12 Mar 2001, Arjen Sas wrote:
> Hey Webmaster,
>
> When you hit the source code link, you can see which files are included in the documents, for
> example configuration.inc file.
> When you hit source code in search.php this piece of code appears:
>
> [code]
>
> if (file_exists("configuration.inc")) {
> include_once 'configuration.inc';
> }
>
> [/code]
>
> So, I thought, let's open this file! And there this neat code appears:
>
> [code]
>
> <?
> $dbname = "php3";
> $root_url = "/";
> $base_url = ereg_replace("[^/]*\$","",$PHP_SELF);
> $dbhost="localhost";
> $dbuser="nobody";
> $dbpwd="";
> $htsearch_prog="/local/htdig/bin/htphp.sh";
> ?>
>
> [/code]
>
> Maybe it's a good idea to change in to .php or so?? I wasn't going to do something
> with this data, but you never know who will do something tricky with this.
>
> Greetz,
>
> Arjen Sas
>
> PS my English maybe not so well, I'm Dutch... Sorry!
>