Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 DEV-Group
 DEV Discussions (General)
 Suggestion to improve security
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

pweighill
Junior Member

United Kingdom
453 Posts

Posted - 24 August 2002 :  06:24:21  Show Profile
Some users who install Snitz won't understand all the security issues when installing & configuring the system.

To make them more aware of some of the issues, I've got some code that could be inseted into admin_home.asp at line 64:

if strDBType = "access" then
if instr(strConnString, Server.MapPath("snitz_forums_2000.mdb"))> 0 then
Response.Write "<br /><table border=""1"" width=""100%"" bgcolor=""red"">" & vbNewLine & _
"<tr><td align=""center""><font color=""white"" size=""2"">" & _
"<b>WARNING:</b> The location of your access database may not be secure.<br /><br />" & _
"You should consider moving the database from <b>" & Server.MapPath("snitz_forums_2000.mdb") & "</b> to a directory not directly accessable via a URL" & _
" and/or renaming the database to another name." & _
"<br /><br /><i>(After moving or renaming your database, remember to change the strConnString setting in config.asp.)</i>" & _
"</font></td></tr>" & _
"</table><br />"
end if
end if
if strDBType = "sqlserver" then
if instr(lcase(strConnString), ";uid=sa;")> 0 then
Response.Write "<br /><table border=""1"" width=""100%"" bgcolor=""red"">" & vbNewLine & _
"<tr><td align=""center""><font color=""white"" size=""2"">" & _
"<b>WARNING:</b> You are connecting to your MS SQL Server database with the <b>sa</b> user.<br /><br />" & _
"After you have completed your installation, consider creating a new user with lower privileges" & _
" and use that to connect to the database instead." & _
"</font></td></tr>" & _
"</table><br />"
end if
end if


Which would warn them about common things that could be changed in their setup to improve security.

laser
Advanced Member

Australia
3859 Posts

Posted - 24 August 2002 :  06:31:26  Show Profile
Now that's a good tip
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 24 August 2002 :  06:40:56  Show Profile
and I guess do the same thing for MySQL and the root username?
Go to Top of Page

pweighill
Junior Member

United Kingdom
453 Posts

Posted - 24 August 2002 :  06:44:44  Show Profile
quote:
Originally posted by RichardKinser

and I guess do the same thing for MySQL and the root username?



Yes. I didn't include MySQL because I didn't know what the usercode was.
Go to Top of Page

Deleted
deleted

4116 Posts

Posted - 24 August 2002 :  07:10:21  Show Profile
Good idea! And in red-bold...

Stop the WAR!
Go to Top of Page

sy
Average Member

United Kingdom
638 Posts

Posted - 24 August 2002 :  09:06:57  Show Profile  Visit sy's Homepage  Send sy a Yahoo! Message
yes, great idea. will surely stop a lot of repeat topics in the forum.

The pessimist complains about the wind; the optimist expects it to change; the realist adjusts the sails

Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 25 August 2002 :  08:47:40  Show Profile
this was implemented in v3.4.01
Go to Top of Page

Romee
Junior Member

Netherlands
180 Posts

Posted - 25 August 2002 :  11:12:47  Show Profile
And what minimal privileges are required for this new user.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.18 seconds. Powered By: Snitz Forums 2000 Version 3.4.07