PHP Web Host - Quality Web Hosting For All PHP Applications Sign up for PayPal and start accepting credit card payments instantly
  Login or Register
 • Home • Downloads • Your Account • Forums • 

View next topic
View previous topic


Google
 
Web RavenPHPScripts (This Site)
Post new topic   Reply to topic
Author Message
Susann
Moderator


Joined: Dec 19, 2004
Posts: 2361
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Sun Apr 13, 2008 8:42 am Reply with quote Back to top

Thats the first time I found such an entry in rnlogs:

Quote:
Unknown column 'id' in 'where clause'
SQL was: SELECT user_email, username FROM nuke_users WHERE id='4' AND nickname='mytestuser' AND password='4803766830cc2b4919b2ef0b5f64b44e'
remote addr: xxx



I quess its from your account.I didnīt changed anything there. How do I correct this ?
View user's profile Send private message
evaders99
Moderator


Joined: Apr 30, 2004
Posts: 2883

PostPosted: Sun Apr 13, 2008 11:27 am Reply with quote Back to top

Weird, looks like the real code should be using 'user_id' rather than 'id'
I haven't looked to see where this is generated yet
View user's profile Send private message Visit poster's website
montego
Moderator


Joined: Aug 29, 2004
Posts: 7582
Location: Arizona

PostPosted: Sun Apr 13, 2008 8:58 pm Reply with quote Back to top

Susann, if you can narrow down which function is doing this within YA it would be greatly appreciate it.
View user's profile Send private message Visit poster's website
Susann
Moderator


Joined: Dec 19, 2004
Posts: 2361
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Mon Apr 14, 2008 5:35 am Reply with quote Back to top

I think its not in your account because I would see this just every time in rnlogs whenever my testuser logged in. Maybe its from the journal or nsn gr downloads donīt know but I still try to find out where it comes from.
View user's profile Send private message
montego
Moderator


Joined: Aug 29, 2004
Posts: 7582
Location: Arizona

PostPosted: Mon Apr 14, 2008 5:51 am Reply with quote Back to top

Ok, Susann, thanks.
View user's profile Send private message Visit poster's website
montego
Moderator


Joined: Aug 29, 2004
Posts: 7582
Location: Arizona

PostPosted: Fri Apr 25, 2008 1:49 pm Reply with quote Back to top

I am still not seeing this anywhere in my own logs. Have you found out anything more on this Susann?
View user's profile Send private message Visit poster's website
Susann
Moderator


Joined: Dec 19, 2004
Posts: 2361
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Fri Apr 25, 2008 2:37 pm Reply with quote Back to top

No, Iīm afraid Iīll not find out where this is from. Iīve checked the code of some nsn gr downloads files but there are just too many files.Iīm using also the workboard. Could it be from there ?
I logged in like before with my testuser, downloaded the same download and didnīt get the same messages in rnlogs.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5049

PostPosted: Fri Apr 25, 2008 3:04 pm Reply with quote Back to top

I cannot think of anything off hand that would want to do a query against a users password except perhaps (not checked) Resend or the manual creation of of a user or admin by the admin.
View user's profile Send private message Send e-mail Visit poster's website
Susann
Moderator


Joined: Dec 19, 2004
Posts: 2361
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Sat Apr 26, 2008 2:11 pm Reply with quote Back to top

This user is since a long time in my database. Its not possible to check every sql select in all files but I found one error within the journal module and his journal. Maybe that was the reason but Iīm not sure because with config errors set to true there arenīt any errors but his journal doesnīt exist. I will just empty the table nuke_journal_stats.
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5049

PostPosted: Sat Apr 26, 2008 2:31 pm Reply with quote Back to top

I think I have found the where but not the why.
mainfile.php around line 1688 is this line
Code:

$row = $db->sql_fetchrow($db->sql_query('SELECT user_email, username FROM '.$user_prefix.'_users WHERE id=\''.$cookie[0].'\' AND nickname=\''.$cookie[1].'\' AND password=\''.$cookie[2].'\''));

It is the only thing I can find that matches that SELECT sql.
View user's profile Send private message Send e-mail Visit poster's website
montego
Moderator


Joined: Aug 29, 2004
Posts: 7582
Location: Arizona

PostPosted: Sat Apr 26, 2008 3:52 pm Reply with quote Back to top

Yeah, that doesn't make sense does it? That should be 'user_id' instead of 'id'. So, it only rears its ugly head when a subscription expires? Does that sound possible Susann?

We should definitely fix that SQL. Great sleuthing 'G'!!
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5049

PostPosted: Sat Apr 26, 2008 4:02 pm Reply with quote Back to top

Now I have had time to actually look at the code, yes you are right 'M' it is in the function paid() which handles subscriptions and I see a few lines above that one that userid is used correctly in the DELETE FROM statement.
I about to hit the sack but if it has not already been done, I'll create a Mantis issue, apply the fix and SVN.
View user's profile Send private message Send e-mail Visit poster's website
montego
Moderator


Joined: Aug 29, 2004
Posts: 7582
Location: Arizona

PostPosted: Sat Apr 26, 2008 4:39 pm Reply with quote Back to top

You are a scholar and a gentleman... well, ok, maybe gentlemen, well, um, ok, how about a mighty fine bloke? ROTFL

And, Susann, your keen eye for bugs is amazing! You have allowed us to "squash" another nuke bug. :clap:
View user's profile Send private message Visit poster's website
kguske
Site Admin


Joined: Jun 04, 2004
Posts: 4976

PostPosted: Sat Apr 26, 2008 9:41 pm Reply with quote Back to top

This team never ceases to amaze or impress me...
View user's profile Send private message
Susann
Moderator


Joined: Dec 19, 2004
Posts: 2361
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Sun Apr 27, 2008 4:19 am Reply with quote Back to top

I only wondered why nobody reported this before. Guardian thanks ! You are the hero of the day! Smile
View user's profile Send private message
Guardian2003
Site Admin


Joined: Aug 28, 2003
Posts: 5049

PostPosted: Sun Apr 27, 2008 10:04 am Reply with quote Back to top

No it is you who are the hero Susann, for your diligence, patience and attention to detail.
View user's profile Send private message Send e-mail Visit poster's website
Susann
Moderator


Joined: Dec 19, 2004
Posts: 2361
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Sun Apr 27, 2008 5:45 pm Reply with quote Back to top

Oh, I would call it just good teamwork Wink
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic

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
Forums ©
 

All logos and trademarks in this site are property of their respective owner.
The comments are property of their posters, all the rest Đ 2002-2008 by Raven
Proud to be listed at Lobo Links Web Directory

You can syndicate our news using the file xml

CSE HTML Validator Helped Clean up This Page! [Valid RSS] valid RSS 2.0 Valid robots.txt Stop Spam Harvesters, Join Project Honey Pot

Website engines core code is Đ copyright by PHP-Nuke but has been heavily patched and modified by myself and others.
PHP-Nuke is a free software released under the GNU/GPL.


:: fisubice phpbb2 style by Daz :: PHP-Nuke theme by www.nukemods.com ::

:: fisubice Theme Recoded To 100% W3C CSS & HTML 4.01 Transitional Compliance by Raven and 64bitguy ::

:: W3C CSS Compliance Validation :: W3C HTML 4.01 Transitional Compliance Validation ::

zerosum