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)
 Admin_info security?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

modifichicci
Average Member

Italy
787 Posts

Posted - 09 January 2008 :  14:53:49  Show Profile  Visit modifichicci's Homepage  Reply with Quote
I have noticed that admin_info is accessible to all admin, not only main forum admin (id 1).
In that function is shown id and pass of mysql db, I think that could be reserved to forum admin only, looking to last hackering.. (ok fix stopped them, but if another bug comes out and someone can loggin as admin can access db and that is not a good thing, doesn't it?)

What do you think about?

<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 09 January 2008 :  16:59:10  Show Profile  Visit HuwR's Homepage  Reply with Quote
yes, probably a good idea<
Go to Top of Page

ruirib
Snitz Forums Admin

Portugal
26364 Posts

Posted - 09 January 2008 :  17:13:49  Show Profile  Send ruirib a Yahoo! Message  Reply with Quote
Yeah, I agree. Probably something to add already for 3.4.07.<


Snitz 3.4 Readme | Like the support? Support Snitz too
Go to Top of Page

HuwR
Forum Admin

United Kingdom
20584 Posts

Posted - 10 January 2008 :  01:56:40  Show Profile  Visit HuwR's Homepage  Reply with Quote
useful piece of totally out of context code, thanks for that!!<
Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 10 January 2008 :  13:28:09  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message  Reply with Quote
quote:
Originally posted by Image

That is exactly the answerer I am waiting for

Do you thing this fix is not out of context?
http://forum.snitz.com/forum/topic.asp?TOPIC_ID=63022



Image,

Did you see the post that Davio made after you in that thread? He posted the names of the files that needed changed (though in this case the page would be admin_info.asp), the line numbers in the baseline version, and the code being changed. He showed the original, then showed what he changed with highlights. This makes it much easier for someone to come in and incorporate bug fixes into the baseline version.

That's the point Huw is trying to make. We appreciate the fact that you're taking the time and trying to help, but if you could please take a few extra minutes and show a before and after to your code changes, it makes it easier on someone trying to incorporate them into baseline versions.

quote:
Originally posted by Image
I am waiting the new version.07 to send you 2 new Bugs with that fix.



If you've got known bugs, then please either post them now, or at the very least get in touch directly with Davio so that they can be corrected before the version is released.

I don't mean to be rude, but why in the world would you want to wait and add bugs to a version that hasn't been released yet? It makes much more sense to tag them before it's released.<

Dave Maxwell
Barbershop Harmony Freak
Go to Top of Page

modifichicci
Average Member

Italy
787 Posts

Posted - 10 January 2008 :  14:19:53  Show Profile  Visit modifichicci's Homepage  Reply with Quote
A quick fix to admin_info.asp

change lines 95
if item.value = "" then	


to
if (item.name = "User Name" or item.name = "Password" or item.name = "Extended Properties" or item.name = "Current Catalog" or item.name = "Server Name") and MemberID <> intAdminMemberID then
			Response.Write "Not allowed"
	
		
		elseif item.value = "" then


these lines cut the db name, password and location of mysql server for users not admin forum.
This works for mysql db, not tested on access..
If there are others values to be hidden it's sufficient to add variable to the if statement..
Just a quick look at it and a simple suggestion..<

Ernia e Laparocele
Forum di Ernia e Laparocele
Acces - MySql Migration Tutorial
Adamantine forum

Edited by - modifichicci on 10 January 2008 14:20:35
Go to Top of Page

Carefree
Advanced Member

Philippines
4207 Posts

Posted - 31 October 2008 :  01:21:31  Show Profile  Reply with Quote
For Access database users (and possibly others), we need to add another variable (in red):

		if MemberID <> IntAdminMemberID and (item.name = "UserName" or left(item.name,11)="Data Source" or item.name = "Password" or item.name = "Extended Properties" or item.name = "Current Catalog" or item.name = "Server Name") then 


This eliminates both the "data source" and the "data source name" variables which both reported the path and database names.<
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.11 seconds. Powered By: Snitz Forums 2000 Version 3.4.07