general error

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.

general error

Postby djb400s » Mon Mar 28, 2005 4:59 pm

I keep getting this problem with this user and only this user I was wondering if any one knew what was going on and how I could fix it?
thank you Daniel



could not insert data into users table

debug mode
SQL Error : 1064 you have an error in your sql syntax; check the manual that corresponds to your MySQL server version fo rthe right syntax to use
near 'Reilly, Patrick' WHERE = 'pro137o" at line 1

UPDATE phpbb_users SET user_email = 'pro137o@smsu.edu', user_website =", user_occ = 'Centralized User Supp Spc', user_from = 'Computer Services', user_sig = 'O'Reilly, Patrick'Where username = pro137o

line : 98
File : c:\forumroot\forums\includes\functions_ldap.php
djb400s
Registered User
 
Posts: 5
Joined: Wed Jan 26, 2005 7:50 pm

Postby Kellanved » Mon Mar 28, 2005 5:16 pm

While this is probably the wrong forum to ask such a question, the problem looks like an attempted SQL insertion attack. (not actually an attack, just a possible one - the O'Reilly broke the query)

What version/mods are you running. It should not be possible to have a signature like that in a DB query.
User avatar
Kellanved
Development Team Member
Development Team Member
 
Posts: 2548
Joined: Wed Jan 26, 2005 2:48 pm
Location: Grad School

Postby djb400s » Mon Mar 28, 2005 5:22 pm

phpbb version 13 with the open ldap mod done to it, I think why it happens to his name is because of the apostrophe in his last name. any help is greatly appreciated thank you Daniel
djb400s
Registered User
 
Posts: 5
Joined: Wed Jan 26, 2005 7:50 pm

Postby Kellanved » Mon Mar 28, 2005 5:25 pm

Look for a new version of the mod. Apparantly your's doesn't properly call
Code: Select all
str_replace("\'", "''",  ...
on the arguments for the SQL queries - extremely dangerous.
User avatar
Kellanved
Development Team Member
Development Team Member
 
Posts: 2548
Joined: Wed Jan 26, 2005 2:48 pm
Location: Grad School

Postby djb400s » Mon Mar 28, 2005 5:30 pm

I am using 1.1.8 version of the mod. Is there another version?
do you know what line and file that needs to be fixed?
djb400s
Registered User
 
Posts: 5
Joined: Wed Jan 26, 2005 7:50 pm

Postby Darkmonkey » Mon Mar 28, 2005 7:14 pm

Please ask for MOD support, in the release topic, or the authors site. This forum is for Beta MOD's.

Locked.
User avatar
Darkmonkey
Former Team Member
 
Posts: 1707
Joined: Fri Oct 24, 2003 3:48 pm
Location: Where the trout streams flow and the air is nice


Return to [2.0.x] MODs in Development

Who is online

Users browsing this forum: No registered users and 8 guests