Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Valodim on September 27, 2005, 06:57:12 PM

Title: vAdminSecurity DNS
Post by: Valodim on September 27, 2005, 06:57:12 PM
Link to Mod (http://www.simplemachines.org/mods/index.php?mod=202)

This mod implements a DNS/IP security check for admin actions (those you need to give a password for), providing additional security.

To use this, you will need either a static IP or a dynamic DNS (you can get a dynamic dns at no-ip.org (http://no-ip.org) or DynDNS.org (http://dyndns.org)). After you installed the mod, you'll have to set up your profile with your IP/DNS and enable the security in the features and options dialogue (right next to "disable administration security"). If you enable this without a valid dns/ip in your profile, you will not be able to access the admin interface anymore!!

If you use this mod and all admins use dns/ips, your forum becomes virtually unbreakable, unless a user gets your forum password, your dynamic dns-password, and your dynamic dns name, which is a lot more unlikely than just the forum password because the dns account is  in no way else related to your forum account. (keep in mind that other ways, like security holes in your server software, still work!)

I use no-ip, and have its option "run as system service" enabled with my dns in my profile. I don't notice this one bit, but it's nearly impossible for others to abuse admin permissions. :D

This mod is a BETA, it's not guaranteed to be stable. Be careful with this, especially if you don't have direct SQL access!! You can set "enable_dnssec" in the _settings table in your database to 0 to disable this, if you accidently prevented yourself from accessing the admin section.

\\ 0.91

RC3 compatibility, and tweaked some stuff. The DNS check is now independent of the password check, meaning that it's checked every page call (and not just when the admin session expires), and you can disable the password check and use dns security as replacement.
Title: Re: vAdminSecurity DNS
Post by: LostLoves on October 04, 2005, 12:18:12 PM
Installations actions for "vAdminSecurity DNS":
The package you are trying to download or install is either corrupt or not compatible with this version of SMF. 
Title: Re: vAdminSecurity DNS
Post by: AtariKid on October 04, 2005, 12:53:43 PM
The package [vAdminSecurity DNS] has been downloaded successfully, but when I [ Apply Mod ] Package Manager - Install Actions: Install Actions for archive vAdminSecurity_0.90.tar.gz: The package you are trying to download or install is either corrupt or not compatible with this version of SMF.

I guess it's not compatable with SMF 1.0.5.
Title: Re: vAdminSecurity DNS
Post by: Valodim on October 04, 2005, 05:31:41 PM
"This mod is for 11rc only, it was not tested with 11b3!" >_>
Title: Re: vAdminSecurity DNS
Post by: AtariKid on October 17, 2005, 10:35:42 PM
Yep. Thanks for bumping this topic up. I forgot I tried this when I had SMF 1.0.5. I now run SMF 1.1 RC1 and the install went beautifully.  ;)
Title: Re: vAdminSecurity DNS
Post by: desistyle on February 02, 2006, 07:54:11 PM
can someone make this mod for smf 1.06
Title: Re: vAdminSecurity DNS
Post by: H on February 03, 2006, 12:42:32 PM
Quote from: desistyle on February 02, 2006, 07:54:11 PM
can someone make this mod for smf 1.06

As this mod was not made for SMF 1.0.5 or 1.1b3 I doubt it will be made for 1.0.6.

I recommend you upgrade you forum to 1.1 RC2 and then check with the author to see if it is compatible with 1.1 RC2
Title: Re: vAdminSecurity DNS
Post by: Valodim on September 07, 2006, 02:30:58 PM
RC3 compatibility! :)
Title: Re: vAdminSecurity DNS
Post by: Nano on September 14, 2006, 05:03:42 PM
thx Valo... very useful ;)

Nano
Title: Re: vAdminSecurity DNS
Post by: ezekiel.jr on October 05, 2006, 08:17:22 PM
Im running 1.1 RC3 and I'm getting this error

Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Installing this package will perform the following actions:  Type Action Description
1. Execute Code vAdminSecurityDB.php 
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/Security.php Test successful
4. Execute Modification ./Sources/Profile.php Test failed  
5. Execute Modification ./Themes/default/Profile.template.php Test successful
6. Execute Modification ./Sources/ModSettings.php Test successful
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/languages/Help.english.php Test successful

Do I need to modify anything before the mod will work on this version.

Thanks.
Title: Re: vAdminSecurity DNS
Post by: ezekiel.jr on October 06, 2006, 10:44:15 AM
morning bump for answer  :D
Title: Re: vAdminSecurity DNS
Post by: Valodim on October 07, 2006, 06:24:19 PM
sorry for the late reply :)

no, it should work without any problems... do you have any other mods installed?
Title: Re: vAdminSecurity DNS
Post by: ezekiel.jr on October 08, 2006, 01:35:23 PM
These are my current installed packages

1. Ad Managment 2.0   [ Uninstall ] [ List Files ] [ Delete ] 
2. Advanced Visual Verification 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
3. Googlebot & Spiders Mod 2.0.2   [ Uninstall ] [ List Files ] [ Delete ] 
4. Merge Double Posts 1.0.6   [ Uninstall ] [ List Files ] [ Delete ] 
5. Global Headers Footers 1.1   [ Uninstall ] [ List Files ] [ Delete ] 
6. Sticky First Post (extends sticky topic) 1.2.3   [ Uninstall ] [ List Files ] [ Delete ] 
7. User Email System 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
8. New Topic Button 1.0   [ Uninstall ] [ List Files ] [ Delete ] 
9. TinyPortal 0.95   [ Uninstall ] [ List Files ] [ Delete ] 
10. AutoSig 1.1   [ Uninstall ] [ List Files ] [ Delete ] 


Title: Re: vAdminSecurity DNS
Post by: Valodim on October 08, 2006, 04:00:59 PM
any of those could interfere with load.php... sorry, can't do much to help you. try installing it, and manually checking what's missing in load.php :P
Title: Re: vAdminSecurity DNS
Post by: ezekiel.jr on October 11, 2006, 01:53:34 PM
I tried to install it despite the warning and it did get to work fine. But I guess Im just noob to all this. I did get an account at no-ip and updated my profile to reflect that dynamic ip in my forum board and every time i implement the package i become unable to access the admin anymore. Do you have a step by step instruction how to configure this. Appreciate it a lot. Thanks.
Title: Re: vAdminSecurity DNS
Post by: Valodim on October 12, 2006, 06:15:50 AM
the problem is, if load.php wasn't properly modified, the mod will fail to load the dns with the rest of the user data. that means you can set it up and stuff, but when the check occurs it will always fail...

ok, do the following:
install the mod, and check if this line

'securityDNS' => isset($user_settings['securityDNS']) ? $user_settings['securityDNS'] : '',

exists in your load.php. this is rather likely, but just make sure it does. after that, check if this string

mem.securityDNS,

exists somewhere in the file, too. if it doesn't (which is probably the problem), search for a line like this (very unlikely to have been modified)

elseif ($set == 'profile')

right below is a list of field names, seperated by commas, like this

mem.gender, mem.avatar, mem.ID_MEMBER, mem.memberName,

add one name

mem.securityDNS,

somewhere between them, and everything should work fine.
Title: Re: vAdminSecurity DNS
Post by: ezekiel.jr on October 12, 2006, 11:09:50 AM
Quote from: Valodim on October 12, 2006, 06:15:50 AM
the problem is, if load.php wasn't properly modified, the mod will fail to load the dns with the rest of the user data. that means you can set it up and stuff, but when the check occurs it will always fail...

ok, do the following:
install the mod, and check if this line

'securityDNS' => isset($user_settings['securityDNS']) ? $user_settings['securityDNS'] : '',

exists in your load.php. this is rather likely, but just make sure it does. after that, check if this string

mem.securityDNS,

exists somewhere in the file, too. if it doesn't (which is probably the problem), search for a line like this (very unlikely to have been modified)

elseif ($set == 'profile')

right below is a list of field names, seperated by commas, like this

mem.gender, mem.avatar, mem.ID_MEMBER, mem.memberName,

add one name

mem.securityDNS,

somewhere between them, and everything should work fine.

I checked all the code you mentioned and everything was present. If I am the only 1.1 RC3 having problems with your mod then something else might be wrong.

Incidentally it was Profile.php <Execute Modification ./Sources/Profile.php Test failed> not Load.php

Thanks for your helpfulness though.
Title: Re: vAdminSecurity DNS
Post by: PLAYBOY on December 15, 2006, 06:03:23 PM
Quote from: ezekiel.jr on October 05, 2006, 08:17:22 PM
Im running 1.1 RC3 and I'm getting this error

Error in Package Installation

At least one error was encountered during a test installation of this package. It is strongly recommended that you do not continue with installation unless you know what you are doing, and have made a backup very recently. This error may be caused by a conflict between the package you're trying to install and another package you have already installed, an error in the package, a package which requires another package that you don't have installed yet, or a package designed for another version of SMF.

Installing this package will perform the following actions:  Type Action Description
1. Execute Code vAdminSecurityDB.php 
2. Execute Modification ./Sources/Load.php Test successful
3. Execute Modification ./Sources/Security.php Test successful
4. Execute Modification ./Sources/Profile.php Test failed  
5. Execute Modification ./Themes/default/Profile.template.php Test successful
6. Execute Modification ./Sources/ModSettings.php Test successful
7. Execute Modification ./Themes/default/languages/Modifications.english.php Test successful
8. Execute Modification ./Themes/default/languages/Help.english.php Test successful

Do I need to modify anything before the mod will work on this version.

Thanks.


i had exactly the same ERROR but i wasnt that brave to go over it. so im one of the guys who is waiting for a Solution for this problem. But its a Great mod for sure. USEFUL. once you are able to use it :)
Title: Re: vAdminSecurity DNS
Post by: PLAYBOY on December 15, 2006, 10:26:25 PM
Guys Please help us about this. cause (especially me) I really need this mod. but on the other hand, i dont wanna mess up my forum eighter and i am kinda new in this forum thing...
Title: Re: vAdminSecurity DNS
Post by: Valodim on December 15, 2006, 11:30:21 PM
sorry for the delay, didn't notice the new replies in this thread :P

will fix and update for 1.1 final in a few days' time.
Title: Re: vAdminSecurity DNS
Post by: Valodim on December 16, 2006, 12:56:23 PM
fixed and updated :)
Title: Re: vAdminSecurity DNS
Post by: PLAYBOY on December 16, 2006, 01:03:52 PM
Bro. thanks for your quick answer and update but heres what i am getting now:
"The package you are trying to download or install is either corrupt or not compatible with this version of SMF."
Title: Re: vAdminSecurity DNS
Post by: Valodim on December 16, 2006, 10:42:18 PM
well... what version are you using? :P
Title: Re: vAdminSecurity DNS
Post by: PLAYBOY on December 19, 2006, 02:57:28 AM
rc3 1.1     in both turkish and english but default language is english.
Title: Re: vAdminSecurity DNS
Post by: Valodim on December 19, 2006, 05:16:57 PM
Quote
\\ 0.92

1.1 Final compatibility. Dropped support for all other versions, no time for that, sorry. Also added option to allow dns bypass by password.
Title: Re: vAdminSecurity DNS
Post by: PLAYBOY on December 27, 2006, 05:52:12 PM
can anybody make this mod for rc3 1.1??? i really need this mod guys please help me out...
Title: Re: vAdminSecurity DNS
Post by: Valodim on December 28, 2006, 06:17:29 PM
dude, this mod existed for 1.1RC3 earlier :P

sorry, I'm not going to make it retrocompatible for a single user :(

also, how come if you need it so badly you didn't write a quick review or at least rated it positively? coders are paid by acknowledgement, y'know ;)
Title: Re: vAdminSecurity DNS
Post by: PLAYBOY on December 29, 2006, 04:26:30 AM
well for me to write a review or rate it positively , i think i should try and make sure it matches what i need right? once i would be able to use it believe me u ll get your rate and your review. you dropped the support for this mod cause you are busy and i understand it. but somebody else may be able to help me out huh? the reason i need this mod so much is, because turkish hackers come just after the russians. and my website is something takes so many eyes and attention. so yeah i really need help about this guys...
Title: Re: vAdminSecurity DNS
Post by: navjotjsingh on February 01, 2007, 12:16:17 AM
On SMF 1.1.1

Error: The package you tried to upload either is not a valid package or has become corrupted.

I tried uploading nth no. of times. BTW I think archive is not properly made. Its 11Kb and when I extract files and remake a zip its only 5Kb! Please check and fix this.
Title: Re: vAdminSecurity DNS
Post by: bfeo on October 06, 2008, 11:55:27 AM
Does this work for 1.1.6?
Title: Re: vAdminSecurity DNS
Post by: mcgiwer on March 17, 2009, 04:28:35 PM
The package you are trying to download or install is corrupt or incompatible with this version of the SMF.

:(
Title: Re: vAdminSecurity DNS
Post by: szaber on April 27, 2009, 01:17:08 AM
I look for the mod for smf 2 ??