Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
tangoman
Involved
Involved



Joined: Aug 06, 2005
Posts: 301

PostPosted: Sat Aug 13, 2005 10:01 am Reply with quote

Size IS everything...when it comes to security.

I am running 7.6 with patch 3.0

I notice that the security code for my site is a 6 digit number, while the security code for loggin in to my account on Raven Scripts is longer.

How can I obtain a longer, (and for that matter, a shorter), security code on my site?
 
View user's profile Send private message
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sat Aug 13, 2005 11:19 am Reply with quote

So what you are saying then is Raven's is bigger than yours!
Sorry couldnt resist.
I cannot remember where that is of the top of my head but I'll have a look as soon as I've had some sleep.
 
View user's profile Send private message Send e-mail
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Aug 13, 2005 1:04 pm Reply with quote

Smack

In modules/Your_Account/index.php change
Code:
$code = substr($rcode, 2, 6);  // 4 occurrences


echo "<tr><td colspan='2'>"._SECURITYCODE.": <img src='modules.php?name=$module_name&amp;op=gfx&amp;random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'></td></tr>\n"
          ."<tr><td colspan='2'>"._TYPESECCODE.": <input type=\"text\" NAME=\"gfx_check\" SIZE=\"12\" MAXLENGTH=\"6\"></td></tr>\n"
          ."<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">\n";  // 2 occurrences

to
Code:
$code = substr($rcode, 2, 8);  // 4 occurrences


echo "<tr><td colspan='2'>"._SECURITYCODE.": <img src='modules.php?name=$module_name&amp;op=gfx&amp;random_num=$random_num' border='1' alt='"._SECURITYCODE."' title='"._SECURITYCODE."'></td></tr>\n"
          ."<tr><td colspan='2'>"._TYPESECCODE.": <input type=\"text\" NAME=\"gfx_check\" SIZE=\"12\" MAXLENGTH=\"8\"></td></tr>\n"
          ."<input type=\"hidden\" name=\"random_num\" value=\"$random_num\">\n";  // 2 occurrences


You will also need to make similar changes to any block that has logins, like User_Info, admin.php, etc. I mat have forgotten something but it seems that's all.
 
View user's profile Send private message
tangoman







PostPosted: Sat Aug 13, 2005 1:31 pm Reply with quote

What happens if I miss a block?...I think you may have answered a question I was about to ask...

When I view the log in pages, the security code in the module is different to the security code in the blocks. if you have the user info bloack, the og in clock and the user log in module all visible,you see 3 different security codes. is that normal?

If this is normal, then I guess your comment about changing all with the code above, is so that you prevent one block only asking for a 6 digit security code, while the module or other block asks for an 8 digit module...Am I 'on the ball'?!
 
Raven







PostPosted: Sat Aug 13, 2005 2:49 pm Reply with quote

If they were not different then it wouldn't be random, would it Laughing. Nothing happens if you miss a block other than it may not be 8 long.
 
tangoman







PostPosted: Mon Aug 15, 2005 12:27 pm Reply with quote

Raven wrote:
If they were not different then it wouldn't be random, would it Laughing. Nothing happens if you miss a block other than it may not be 8 long.


Well....you only need one security string per page...even if their are 3 different ways to log in on that 'page'...ie via the module, the user info Block or the regular log in block......so if they were all displaying the same string, but al changed if u refreshed the page etc, that wouls be fine.....I guess it really is VERY random if they all have different strings when being displayed on the same page together......no major concerns, I guess...I'm just surprised.
 
Raven







PostPosted: Mon Aug 15, 2005 12:35 pm Reply with quote

You should only be using one login method anyway so I guess it's a moot point Wink
 
tangoman







PostPosted: Mon Aug 15, 2005 12:42 pm Reply with quote

Weeeeeeeeeeeeeeell...I realised this too Raven, but I do like the User Info Block as well as having the user log in module available...I know u understand this.

Thanks anyhow.
 
Raven







PostPosted: Mon Aug 15, 2005 12:58 pm Reply with quote

The userinfo block has a login incorporated into it.
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©