Welcome, Guest. Please Login or Register.
March 18, 2025, 05:40:49 PM
Home Help Search Log in Register
News: If you are still using YaBB SE, please consider upgrading to SMF as soon as possible.

YaBB SE Community  |  Development  |  Completed mods  |  Database password hiding « previous next »
Pages: [1] Reply Ignore Print
Author Topic: Database password hiding  (Read 1355 times)
Dennis_B
Noobie
*
Posts: 18


Its only impossible... Untill its not...

WWW
Database password hiding
« on: January 28, 2003, 11:45:18 PM »
Reply with quote

Hi all,

Im looking for het mod that hides the database password (with *******) for 1.4
I Know its here somewere, but i cant find it can some1 point me to the right url?

Thanks
Logged
Raytheon
Noobie
*
Posts: 13


Re:Database password hiding
« Reply #1 on: February 07, 2003, 07:49:12 AM »
Reply with quote

You can download the MOD here: http://yabbse.bjoern-berg.de/Mods/1.5.1/hideDBpw.mod
Logged
Björn
YaBB SE Developer
Full Member
***
Posts: 171


Win is great, I used it to download Linux! :)

ICQ - 91548150 WWW
Re:Database password hiding
« Reply #2 on: February 07, 2003, 12:05:59 PM »
Reply with quote

my mod is for 1.5.1 and doesn't show anything in the password fiedl, because for **** the password stand in the code.
Logged

Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:Database password hiding
« Reply #3 on: February 07, 2003, 02:07:03 PM »
Reply with quote

Um, wouldn't it be easier to just replace

<td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><input type="text" name="db_passwd" value="' . $db_passwd . '" /></td>


with this

<td class="windowbg2" bgcolor="' . $color['windowbg2'] . '"><input type="password" name="db_passwd" value="' . $db_passwd . '" /></td>


Or am I missing something?
Michele
Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
Björn
YaBB SE Developer
Full Member
***
Posts: 171


Win is great, I used it to download Linux! :)

ICQ - 91548150 WWW
Re:Database password hiding
« Reply #4 on: February 07, 2003, 02:56:27 PM »
Reply with quote

but if you look in the code of the site you find the password

Quote
value="' . $db_passwd . '" />
« Last Edit: February 07, 2003, 02:56:53 PM by Björn » Logged

Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:Database password hiding
« Reply #5 on: February 07, 2003, 03:47:11 PM »
Reply with quote

Quote from: Björn on February 07, 2003, 02:56:27 PM
but if you look in the code of the site you find the password

Quote
value="' . $db_passwd . '" />

You mean if they view the source of the page? Yes... that's true, but I guess I don't see the why of this?

If the admin leaves themselves logged in on a computer that isn't secure, someone can do a heck of a lot of damage on the site anyway - they don't need access to the db to do that.  They already have access to template.php, deleting boards, deleting members, and every other admin function available in YSE.

Hiding the db password on that screen is like closing the barn door after the cows have escaped. I guess I still don't get it. ???

EDIT: Ok, I thought of two possibilities. You're on an insecure computer and someone rummages through the Temp Internet Files and finds that page still in the cache. Which means you have a more serious problem of a stalker following you instead of just a hacker.

Or... someone is running a packet sniffer on their own site, but even then, the db password is sent back and forth a dozen times a minute anyway.
« Last Edit: February 07, 2003, 03:54:49 PM by Michele » Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:Database password hiding
« Reply #6 on: February 07, 2003, 05:04:27 PM »
Reply with quote

Those two scenarios are true but there are more...

My situation is that I maintain the account on a server that has more than just the Yabb install.  There are three Admins for the board.  They have no need for my DB info.  Not that I don't trust them... they just don't need it. Any more than they need the ftp info either.  Suppose they know the password, then I revoke their Admin rights.  Could they not remotely access my DB and give themselves Admin rights once again?  Remove my account from the DB?  Grant everyone Admin rights?  A lot of bad things can be done remotely with something like phpMyAdmin.

I'm going to give that mod a try.

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:Database password hiding
« Reply #7 on: February 07, 2003, 05:52:54 PM »
Reply with quote

Quote from: Jack.R.Abbit on February 07, 2003, 05:04:27 PM
Those two scenarios are true but there are more...

My situation is that I maintain the account on a server that has more than just the Yabb install.  There are three Admins for the board.  They have no need for my DB info.  Not that I don't trust them... they just don't need it. Any more than they need the ftp info either.  Suppose they know the password, then I revoke their Admin rights.  Could they not remotely access my DB and give themselves Admin rights once again?  Remove my account from the DB?  Grant everyone Admin rights?  A lot of bad things can be done remotely with something like phpMyAdmin.

I'm going to give that mod a try.

-Jack

Good point Jack. Luckily my host restricts db access to localhost only unless I specifically add IPs to that list. So no one can load myPHPAdmin from their own computer to access my db, even if they do know the password. :)
Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
Björn
YaBB SE Developer
Full Member
***
Posts: 171


Win is great, I used it to download Linux! :)

ICQ - 91548150 WWW
Re:Database password hiding
« Reply #8 on: February 07, 2003, 05:54:20 PM »
Reply with quote

but if they have ftp access, they can see the password in the Settings.php
Logged

Michele
Beta Tester
YaBB God
*****
Posts: 584


I can't wait for YaBB SE 2!

Mad+Moya WWW
Re:Database password hiding
« Reply #9 on: February 07, 2003, 05:58:52 PM »
Reply with quote

Quote from: Björn on February 07, 2003, 05:54:20 PM
but if they have ftp access, they can see the password in the Settings.php

Then perhaps a better solution is to only give them FTP access to their own sub-directories. I'm hosting a friend on his own sub-domain on my site, and when I set up the sub-domain for him, I set up a matching FTP account that ONLY lets him go to his sub-domain, he cannot get to the rest of my site at all.

Logged

formerly Mad Moya
PfaBB - http://pfabb.lunabyte.com
Jack.R.Abbit
Mod Team
YaBB God
*****
Posts: 553


RACE FOR SPENT!

Re:Database password hiding
« Reply #10 on: February 07, 2003, 06:39:53 PM »
Reply with quote

I gave that mod a try.  It works alright but you can't edit the password from there.

I wrote one that allows you to enter the current password and a new password if you want to change it.

I made it as a YabbPak that is compatable with 1.4.1/1.5.1 by way of a special mod I have created that is requried for all of my mods.

I only do YabbPaks so check my Package Server for details about this and other mods.

-Jack
Logged

<--------  Mods by Jack  -------->
Package Server: http://www.modsbydesign.com/mods.by.jack/yabbse/ (now serving)


|----------------------------------------------|
|                                              |
|          DON'T PM ME FOR SUPPORT!             |
|                                              |
|----------------------------------------------|
Pages: [1] Reply Ignore Print 
YaBB SE Community  |  Development  |  Completed mods  |  Database password hiding « previous - next »
 


Powered by MySQL Powered by PHP YaBB SE Community | Powered by YaBB SE
© 2001-2003, YaBB SE Dev Team. All Rights Reserved.
SMF 2.1.4 © 2023, Simple Machines
Valid XHTML 1.0! Valid CSS

Page created in 0.117 seconds with 20 queries.