Plugin Cafe Homepage
Forum Home Forum Home > Plugin Cafe > General Discussion
  New Posts New Posts
  FAQ FAQ  Forum Search   Register Register  Login Login

Bug in the forum search

 Post Reply Post Reply
Author
Message
Cactus Dan View Drop Down
Member
Member
Avatar

Joined: 2003 Apr 18
Location: United States
Online Status: Offline
Posts: 519
Post Options Post Options   Quote Cactus Dan Quote  Post ReplyReply Direct Link To This Post Topic: Bug in the forum search
    Posted: 2010 Jul 22 at 1:12pm
Howdy,

There seems to be a bug in the forum search. I remembered starting a post asking a question about MSG_UPDATE and wanted to reread the replies. So I typed in MSG_UPDATE in the forum search looking for topics, and it listed 2 topics started by me, but when I selected either topic I get this error:

Server Error in Forum Application
WARNING: SQL Injection attack detected.
Please contact the forum administrator.

Support Error Code:- err_Access_SqlInjectionTest()
File Name:- functions_filters.asp

Error details:-


If I go back to the search and instead search for topics started by me, the 2 topics about MSG_UPDATE are included in the list, and when I click on them from that list, they're fine and I can read them.

I'm curious if the "_" character in "MSG_UPDATE" is causing a problem in the search?

Adios,
Cactus Dan
Back to Top
Cactus Dan View Drop Down
Member
Member
Avatar

Joined: 2003 Apr 18
Location: United States
Online Status: Offline
Posts: 519
Post Options Post Options   Quote Cactus Dan Quote  Post ReplyReply Direct Link To This Post Posted: 2010 Jul 22 at 1:20pm
Howdy,

Well, I tried other "MSG_" messages like "MSG_POINTS_CHANGED" and they seem to be fine in the search. Maybe it's just the "MSG_UPDATE" that causes the problem?

Adios,
Cactus Dan
Back to Top
Matthias Bober View Drop Down
Forum Moderator
Forum Moderator


Joined: 2006 Oct 16
Location: Germany
Online Status: Offline
Posts: 1644
Post Options Post Options   Quote Matthias Bober Quote  Post ReplyReply Direct Link To This Post Posted: 2010 Jul 22 at 11:59pm
It seems to work fine here. Please try again.

cheers,
Matthias

MAXON
developer support
Back to Top
spedler View Drop Down
Member
Member


Joined: 2008 Apr 19
Location: United Kingdom
Online Status: Offline
Posts: 96
Post Options Post Options   Quote spedler Quote  Post ReplyReply Direct Link To This Post Posted: 2010 Jul 23 at 4:11am
Confirmed here. Do the search, click on a topic, and bang, server error as Dan posted.
Back to Top
spedler View Drop Down
Member
Member


Joined: 2008 Apr 19
Location: United Kingdom
Online Status: Offline
Posts: 96
Post Options Post Options   Quote spedler Quote  Post ReplyReply Direct Link To This Post Posted: 2010 Jul 23 at 4:23am
A little more testing shows that this is because UPDATE is an SQL keyword. For some reason, it requires an underscore in front to cause the error. You can do a search for _SELECT or _DELETE (both SQL keywords) and get the same error. I guess any keyword will do it if it actually finds some search matches for that keyword.

Just a silly bug in the database code, I think.
Back to Top
Cactus Dan View Drop Down
Member
Member
Avatar

Joined: 2003 Apr 18
Location: United States
Online Status: Offline
Posts: 519
Post Options Post Options   Quote Cactus Dan Quote  Post ReplyReply Direct Link To This Post Posted: 2010 Jul 23 at 6:18am
Howdy,

Yep, the same thing happens with UNDO_DELETE. But it only affects the search when you choose to show "Topics". If you choose to show "Posts" then it's fine.

Adios,
Cactus Dan
Back to Top
Matthias Bober View Drop Down
Forum Moderator
Forum Moderator


Joined: 2006 Oct 16
Location: Germany
Online Status: Offline
Posts: 1644
Post Options Post Options   Quote Matthias Bober Quote  Post ReplyReply Direct Link To This Post Posted: 2010 Jul 23 at 6:40am
Ah, I missed the point that you had to click on one of the listed topics. I can now confirm this too.

cheers,
Matthias

MAXON
developer support
Back to Top
Matthias Bober View Drop Down
Forum Moderator
Forum Moderator


Joined: 2006 Oct 16
Location: Germany
Online Status: Offline
Posts: 1644
Post Options Post Options   Quote Matthias Bober Quote  Post ReplyReply Direct Link To This Post Posted: 2010 Jul 23 at 6:43am
I forwarded the issue.

cheers,
Matthias

MAXON
developer support
Back to Top
Cactus Dan View Drop Down
Member
Member
Avatar

Joined: 2003 Apr 18
Location: United States
Online Status: Offline
Posts: 519
Post Options Post Options   Quote Cactus Dan Quote  Post ReplyReply Direct Link To This Post Posted: 2010 Jul 23 at 6:48am
Howdy,

Yeah, I normally like to list the topics so I can read the entire thread.

That error has popped up before, but I thought it was just a random error.

Adios,
Cactus Dan
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Bulletin Board Software by Web Wiz Forums® version 9.61 [Free Express Edition]
Copyright ©2001-2009 Web Wiz

This page was generated in 0.094 seconds.