• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
Issue Details (XML | Word | Printable)

Key: WEB-917
Type: Bug Bug
Status: Open Open
Priority: Showstopper Showstopper
Assignee: WorkingOnIt Linden
Reporter: Jesse Barnett
Votes: 66
Watchers: 9
Operations

If you were logged in you would be able to see more operations.
3. Second Life Website - WEB

Http 403 FORBIDDEN response when posting to forums

Created: 23/Dec/08 04:43 PM   Updated: 11/Jul/09 10:35 PM
Component/s: forums.secondlife.com
Affects Version/s: Not Versioned
Fix Version/s: None

Time Tracking:
Not Specified

Environment: Not applicable
Issue Links:
Duplicate
 
Relates
 

Last Triaged: 30/Dec/08 08:34 AM
Linden Lab Issue ID: DEV-25552


 Description  « Hide
If you create or reply to a forum post and use the word "select" followed (even several sentences latter) by the word "from", then you get a 403 Forbidden message. Someone has an over restrictive keyword scanner at work. Same failure using IExplorer, Firefox, Opera & Google Chrome. May be other keywords that are throwing errors.

ref:
http://forums.secondlife.com/showthread.php?t=298663

http://forums.secondlife.com/showthread.php?t=297899

Possibly related to https://jira.secondlife.com/browse/WEB-715 ?



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Jesse Barnett added a comment - 23/Dec/08 05:32 PM
All of the following SQL combinations will cause a FORBIDDEN response. Again it does not matter how far apart the combinations keywords are used in the post:

select, from
update, set
insert, into
delete, from


SuezanneC Baskerville added a comment - 24/Dec/08 12:18 PM
Old timers are used to the forum failing in various ways. Think how newcomers must feel when they ask a support question because they are having trouble running their newly installed SL and are told their post is forbidden.

Gordon Wendt added a comment - 24/Dec/08 03:41 PM
If this is just an issue of them trying to sanitize SQL injection attack vectors then they really need to think harder about website security.

Gordon Wendt added a comment - 24/Dec/08 03:42 PM
Upping the priority of this issue to major since this seems to be a fairly serious issue. I'm somewhat surprised that this wasn't already a major issue.

meni kaiousei added a comment - 24/Dec/08 03:56 PM
> If this is just an issue of them trying to sanitize SQL injection attack vectors then they really need to think harder about website security.

I disagree. You should never have one security layer. But several.
However, in this case it is preventing the usability. They probably have mod_security installed on their apache webserver. Preventing possible sql injections is most likely part of the default configuration.


Argent Stonecutter added a comment - 24/Dec/08 05:14 PM
This is not how you protect a website from SQL injection attacks.

Now, I don't expect them to fix this, since they're going to replace the forums some time in 2007... I mean 2008... but I'm voting for it anyway.


Talarus Luan added a comment - 02/Jan/09 10:20 AM
Indeed. It is simply a matter of sanitizing data passed into the REAL SQL statements.

There ARE functions to do this, and using them is TRIVIAL.

Seems to me like there was indication of a known SQL injection attack vector, and the answer was a stop-gap using an overly simple regular expression to trigger a 403 response on match.

Upgrade/Fix the forums already. vBulletin is at version 3.7.4 now. 3.0.5 is ancient history.


gaia clary added a comment - 05/Jan/09 12:50 PM - edited
I reported that to the forum administraotrs and i added an entry in the technical forum 3 weeks ago, see

http://forums.secondlife.com/showthread.php?p=2269088#post2269088

That can't be such a big deal, no ?


Adam Marker added a comment - 30/Jan/09 09:51 AM
I just wasted two hours because of this problem. On other VBulletin forums, I found that the UNIX relative directory characters (like dot-dot-slash) can also cause problems (and do on our forums as well). Many of the other VBulletin solution posts said "just keep trying, it will eventually work."

I sympathize with not wanting to spend time enhancing forum software that will be replaced, but some fix is needed in the short term. Would it be possible to catch the 403 Forbidden exception earlier and display a page with a link to this bug? (heh heh, built in vote ballot box stuffing!)

Or any solution that divulges any information regarding the source of the problem. Extra extra ugly, but how about add some text to the 403 Forbidden error that says "remove the words SELECT, UPDATE, and INSERT from your text, and any ../ as well." Please don't argue with my brainstorms because I know they're crap; I'd support any move in the direction of dispensing a useful diagnostic.


Ceera Murakami added a comment - 23/Feb/09 04:05 PM
This limitation is utterly insane. I just lost a detailed, helpful post that I was composing for an RA thread, almost certainly because of this stupid hack that the Lindens put into the Forums. I am NOT going to waste time re-writing that almost full-page of helpful information. I didn't know the "secret forbidden word pairs", and had no warning or explanation as to why the post was rejected.

Furious, and logging off now...


Chosen Few added a comment - 10/Mar/09 12:44 PM
Helpful tip:

If you "lose" a post, as Ceera described, simply hit the Back button in your browser. The full text of your post will still be there, assuming there are no RAM hiccups. Edit out the forbidden word combination(s), and then submit. It should go through just fine.

It's also generally good practice to copy & paste any long post to a text editor like Notepad or Wordpad before submitting, even if it weren't for this issue. Internet hiccups happen all the time. There's nothing worse than spending an hour or more on a detailed post, and then having it disappear to a server error or packet loss or some other catastrophe. Keeping a working backup copy on your desktop is sensible when working with any Web platform, be it a forum, a contact ticket, or what have you.

I hope that helps.


ArchTx Edo added a comment - 13/Apr/09 11:24 AM
The TOS is Forbidden!

Very amusing.

While trying to respond to the "Shared Account" thread and quoting paragraph 2.3 of the TOS I kept getting a 403 Error message

"Forbidden

You don't have permission to access /newreply.php on this server."

I was able to post my message only after I removed the quote of paragraph 2.3 of the TOS.


Papalopulus Kobolowski added a comment - 17/Apr/09 05:05 AM
I know there is betters way to avoid SQL injection in PHP and MySQL , but this way banning some words on post are not the best.
I hope this get fixed soon.

Void Singer added a comment - 18/Apr/09 03:42 AM
"../" (dot dot slash) also does this.

Boy Lane added a comment - 29/Apr/09 11:05 AM
I got knocked out by this old bug today and was assuming I was banned from posting. And I am certainly not very amused about it. As were many others before. Why is this issue still not fixed after a so long time with the fixes being available?!

Update your forum software ASAP please.

Raised to Showstopper


oryx tempel added a comment - 02/Jun/09 12:54 PM
Still happening.

Void Singer added a comment - 13/Jun/09 03:32 AM
add
Update - Copy

to our list of oh so fun words not to use in sequence

(Code is another one I haven't been able to figure out, but it's part of one of the forbidden combo's)


Void Singer added a comment - 18/Jun/09 06:31 AM
ok, this is BEYOND ridiculous now....

I can now no longer pint valid rotations in the scripting forums? (aparrently it thinks it's some kind of html attack as if "< href" wouldn't work just as well)

try this one
<0.00000, -0.70711, 0.00000, 0.70711>

in fact ANYTHING with the format "<x" where x is a non-breaking character gets a lovely
"The requested URL /[insert post/reply type].php was not found on this server."

this type of SQL santization is pointless, if you MUST, insert dummy characters after keywords like a non-breaking space or heavens forbid one of the characters that scripts ignore like :?`@#$\

and seriously, html has already been disabled so WHY this particular sloppy hack is being used I have NO IDEA!!!?!?


Jesse Barnett added a comment - 18/Jun/09 04:54 PM
It also works if you place a single space before the first number in a rot or vector like so:

< 0,0,0>
< 0,0,0,1>


Cocoanut Koala added a comment - 11/Jul/09 10:19 PM - edited
Edit: Never mind - I found the solution to this on Web 1179. (Not able to post on the forums.) The solution is - make sure your preferences are checked to Basic Editor.I

coco