vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Anti-Spam Options - vbStopForumSpam (https://vborg.vbsupport.ru/showthread.php?t=230921)

webmastersitesi 01-08-2014 10:45 AM

Quote:

Originally Posted by Itworx4me (Post 2472896)
Open up product-vbstopforumspam.xml

Replace TYPE with ENGINE on line 22, 35, 45


Hope this helps.....

Itworx4me

thx i :up::up:was able to import :)

gregmlb 05-11-2014 02:27 PM

Is anyone using this successfully with 4.2.2 PL1?

Montagar 05-12-2014 02:39 AM

Quote:

Originally Posted by gregmlb (Post 2497278)
Is anyone using this successfully with 4.2.2 PL1?

Yes, works fine for us.

djbaxter 05-12-2014 03:06 PM

Same here. Using it on 4 vb4.22pl1 forums.

AusPhotography 06-05-2014 10:31 PM

1 Attachment(s)
Quote:

Originally Posted by djbaxter (Post 2388188)
I can no longer recall the source either but here's what I have, adapted for vBulletin 4.x (up to and including 4.2.0 PL3).

I've updated this into a plugin, and fixed it for PHP 5.4 support (also vB4.2.2pl1)
Upload this via Admin CP - Plugins & Products - Download / Upload Plugins

djvj 06-18-2014 01:31 AM

I'm getting tons of emails a day on this addon and some legit users are not able to register:

Code:

Database error in vBulletin 4.2.2:

Invalid SQL:
INSERT INTO vbstopforumspam_log (date, ipaddress, email, username, message, blocked, userhash) VALUES (now(), '176.31.149.241' , 'kyqufijuwu72@list.ru', 'CXmu', 'Result on field username - CXmu [REMOTEERR] Unverfied and rejected by policy ', 1, '74207e52630b343fb9ff43f7cdbbfece');;

MySQL Error  : MySQL server has gone away
Error Number  : 2006
Request Date  : Tuesday, June 17th 2014 @ 06:05:12 PM
Error Date    : Tuesday, June 17th 2014 @ 06:07:28 PM
Script        : http://www.hyperlaunch.net/forum/regist.php?do=addmember
Referrer      : http://www.hyperlaunch.net/forum/regist.php?
IP Address    : 176.31.149.241
Username      : CXmu
Classname    : vB_Database_MySQLi
MySQL Version :

It appears to be working though:
Code:

vbStopForumSpam Log Viewer (page 1/73) | There are 1,092 total log entries.
When some users try to register, they say they get a database error.

AusPhotography 06-19-2014 10:56 PM

Quote:

Originally Posted by djvj (Post 2502421)
When some users try to register, they say they get a database error.

That happens when the connection to SFS website takes longer than your MySQL connection timeout.

We reduced the CURL timeout (8 seconds I think) in the SFS plugin code to get around it.

I assume your MySQL timeout is 30 seconds which most shared hosts setup.

djvj 06-21-2014 02:51 AM

Thanks for your response AusPhotography.

So I have since uninstalled this mod for the GlowHost version and all my db/sql errors have gone away. I still get the SBS support, so I will be sticking with that plugin.

Just for reference, I did contact GoDaddy, but they would not provide details on the server's settings and said I would need to buy a VPS service at least to get access. Obviously that's not an option as the cost is far more for that vs shared hosting.

Paul. 09-12-2014 01:17 PM

Quote:

Originally Posted by djvj (Post 2502421)
I'm getting tons of emails a day on this addon and some legit users are not able to register:

Code:

Database error in vBulletin 4.2.2:

Invalid SQL:
INSERT INTO vbstopforumspam_log (date, ipaddress, email, username, message, blocked, userhash) VALUES (now(), '176.31.149.241' , 'kyqufijuwu72@list.ru', 'CXmu', 'Result on field username - CXmu [REMOTEERR] Unverfied and rejected by policy ', 1, '74207e52630b343fb9ff43f7cdbbfece');;

MySQL Error  : MySQL server has gone away
Error Number  : 2006
Request Date  : Tuesday, June 17th 2014 @ 06:05:12 PM
Error Date    : Tuesday, June 17th 2014 @ 06:07:28 PM
Script        : http://www.hyperlaunch.net/forum/regist.php?do=addmember
Referrer      : http://www.hyperlaunch.net/forum/regist.php?
IP Address    : 176.31.149.241
Username      : CXmu
Classname    : vB_Database_MySQLi
MySQL Version :

It appears to be working though:
Code:

vbStopForumSpam Log Viewer (page 1/73) | There are 1,092 total log entries.
When some users try to register, they say they get a database error.

Quote:

Originally Posted by AusPhotography (Post 2502679)
That happens when the connection to SFS website takes longer than your MySQL connection timeout.

We reduced the CURL timeout (8 seconds I think) in the SFS plugin code to get around it.

I assume your MySQL timeout is 30 seconds which most shared hosts setup.

I get that error, too.

AusPhotography, is that a solution to the error shown?
I have emailed to get the details checked so I can use StopForumSpam.
It's working perfectly on another forum we have.
This forum is new as the previous was messed up and got deleted. It worked there, too.

thincom2000 04-28-2015 12:02 PM

Regarding the "MySQL has gone away" errors and register.php requests being tied up for 2 minutes or more...

The CURL timeout in the plugin code is 5 seconds as far as I can tell.

I think the problem is that CURL has a connection error during that 5 seconds where it can't connect to stopforumspam.com


When this happens, it is treated as a normal CURL error and falls back to file_get_contents(url), which I don't think has a timeout. file_get_contents also has trouble connecting and waits a very long time to give up (until after the MySQL link is auto-closed).

If an attacker can detect this situation on your site, they would be able to perform an attack like Slow Loris against a vBulletin forum that uses this mod. It's actually easy to "detect" this situation. SFS limits you to 20,000 API lookups per 24 hours, then blocks your IP which will also cause a CURL connection error. Using only 14 requests per minute (so not really detectable by DOS prevention), an attacker can leverage this limit and trigger file_get_contents for every registration attempt after 20,000. Since your IP is blocked, every request will wait until PHP times out. You will run out of PHP child processes, and your forum will be inaccessible. To protect yourself, you should make the following change.

In includes/functions_vbsfs.php, find and remove all of these:
Code:

if (!($pageContent = @file_get_contents($url)))
I would suggest that the author of this mod also makes this change to prevent Slow Loris attacks, or implements stream wrappers with an appropriate timeout set if support for file_get_contents(url) is still needed.


All times are GMT. The time now is 01:12 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01584 seconds
  • Memory Usage 1,751KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_code_printable
  • (6)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete