vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.8 Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=235)
-   -   vBFirewall v1.0 (https://vborg.vbsupport.ru/showthread.php?t=196791)

invisiblea 11-19-2008 10:00 PM

vBFirewall v1.0
 
1 Attachment(s)
This is my first mod for vBulletin and I have tried to make it as better as I could.



What is vBFirewall?
Its a PHP script which blocks all kinds of attacks on your vBulletin Forum! Like: URL Poisoning, Remote File Inclusion, SQL Injection, XSS and other kinds of attacks.

I have tested each and every function of this mod before releasing it and have used it myself for 1 month

It has a attacker logger, which logs the IP and many details of the attacker so that you can reach him :)

This is still in beta version and I will add more features in it to make your vBulletin more secure :D Suggestions are always welcome.


How to install?

1) Go to Admin and Import the xml file product-firewall_vb_rs.xml using the plugin manager.
2) Keep an eye on the log file which can be found here: www.yourvbforumurl.com/logfile_worms.txt (This file will only be created when a attack occour)
3) Your website is now secure from hackers :)



Thanks

invisiblea 11-20-2008 04:01 PM

Reserved For Future! :)

albibak 11-20-2008 04:06 PM

Thanks for this mod ;)
I sent you a pm last week :'(

invisiblea 11-20-2008 04:09 PM

Quote:

Originally Posted by albibak (Post 1669439)
Thanks for this mod ;)
I sent you a pm last week :'(

Replied, Sorry for late reply..:cool:

Hasann 11-20-2008 04:12 PM

does this really work?

albibak 11-20-2008 04:13 PM

Do you will phrase the mail for a next version?

invisiblea 11-20-2008 04:14 PM

Quote:

Originally Posted by Hasann (Post 1669442)
does this really work?

Yea, test yourself :P

Quote:

Originally Posted by albibak (Post 1669443)
Do you will phrase the mail for a next version?

Yes, within a day or two I will add more features.

albibak 11-20-2008 04:14 PM

OK, so I wait ;)

invisiblea 11-20-2008 04:46 PM

Guys, Test it and lemme know if you have any suggestion for future version :)

Zelda-King 11-20-2008 05:04 PM

Sounds very interesting, different and a real asset to have! I'll wait and see how this goes... :)

edermix 11-20-2008 05:14 PM

Great man.. I will test

RvG2 11-20-2008 05:41 PM

I was hacked more or less 10 times this year... NOW LET MET TRY THIS.

Thank you so much in advanced.

digicom 11-20-2008 05:45 PM

Aprrciated Thankyou :up:

7lanet 11-20-2008 06:16 PM

My path of the Forum www.7lanet.com/vb
Do I make file logfile_worms.txt in the folder of (vb)
Do give file logfile_worms.txt the license logfile_worms.txt 666

Koidl 11-20-2008 06:30 PM

works for 3.7 too :confused: ?

GlamRockTalk 11-20-2008 06:39 PM

Looks very interesting. Gonna keep an eye on this one :D

*tagged*

M-Tuning 11-20-2008 07:05 PM

Looks nice, I´ll wait for the phrased version though.

tiekie 11-20-2008 07:35 PM

sound very good ... does it work on 3.6.8?

dtv100 11-20-2008 08:17 PM

does this work with 3.7?
will this slow down server or forum?

LCN2007 11-20-2008 10:16 PM

Quote:

Originally Posted by dtv100 (Post 1669580)
does this work with 3.7?
will this slow down server or forum?


X2 Im using 3.7.2 SP2

invisiblea 11-20-2008 10:38 PM

Quote:

Originally Posted by 7lanet (Post 1669514)
My path of the Forum www.7lanet.com/vb
Do I make file logfile_worms.txt in the folder of (vb)
Do give file logfile_worms.txt the license logfile_worms.txt 666

When a attack occours it will be created itself.

Quote:

Originally Posted by Koidl (Post 1669523)
works for 3.7 too :confused: ?

All Versions

Quote:

Originally Posted by tiekie (Post 1669553)
sound very good ... does it work on 3.6.8?

Yes, all versions

Quote:

Originally Posted by dtv100 (Post 1669580)
does this work with 3.7?
will this slow down server or forum?

Yes, and it doesnt slow down the forum

dtv100 11-20-2008 10:43 PM

OK i get a error when click to check subscriptions:


Code:

1||1227227664||xx.xx.xxx.xx||do=find&subscriptionid=5&status=1||http://www.mydomain.com/forums/admincp/subscriptions.php?do=modify||Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)

invisiblea 11-20-2008 11:05 PM

Quote:

Originally Posted by dtv100 (Post 1669668)
OK i get a error when click to check subscriptions:


Code:

1||1227227664||xx.xx.xxx.xx||do=find&subscriptionid=5&status=1||http://www.mydomain.com/forums/admincp/subscriptions.php?do=modify||Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; .NET CLR 3.0.04506)

PM me the plugin you are using, I will check it out

ebk 11-20-2008 11:20 PM

Check subscriptions errors for me as well.

edermix 11-20-2008 11:20 PM

I do not understand what this log to say, please help me to understand it:

Quote:

1||1227218866||189.110.83.180||do=viewsubscription ||http://www.xxxxxxxx.net/profile.php?...c||Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.4) Gecko/2008102920 Firefox/2.0.0.14;MEGAUPLOAD 1.0

1||1227218871||189.110.83.180||do=viewsubscription &daysprune=-1&folderid=all||http://www.xxxxxxxx.net/profile.php?...c||Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.4) Gecko/2008102920 Firefox/2.0.0.14;MEGAUPLOAD 1.0

Barakat 11-21-2008 12:23 AM

i tried that hack and support it , in the past ,,,,,,,,,,

https://vborg.vbsupport.ru/showthread.php?t=110030


P.S Befor secureing your Vbulletin you need to know on What SErVer you are running your fourm or scripts ,

coz what ever your old vbulletin where haveing some security holes ,,,, the server security will prevent all the attempt what ever it was .,

mikesz 11-21-2008 01:16 AM

So this hack just filters query input through an array of known hacker attacks phrases. How can you be sure your array is complete or that "attack" isn't a legitimate request? I don't see any checks, just a blanket replace ?

RvG2 11-21-2008 05:00 AM

vbulletin might not need this but I need this in my other mods which may or might be attacked by hackers

Josh1 11-21-2008 07:43 AM

Nominated for MOTM.

rainyleaves 11-21-2008 08:24 AM

Thanks,
Do I need change CHMOD 777 of Root Directory?

codershark 11-21-2008 08:48 AM

I have also the mistake with the subscriptions... please correct it ! :(

Mark as installed :)

codershark 11-21-2008 09:09 AM

I also get an Error when I will open a Thread which I had looking for...

Sorry but I deinstall it ! unuseable !

invisiblea 11-21-2008 01:36 PM

In the next release these problems will be solved. :)

Davidsm 11-21-2008 01:43 PM

Thanks I will install on my test forum

esperone 11-21-2008 02:03 PM

looks good. nominated

ultimatearco 11-21-2008 02:03 PM

Ownage! Thanks mate
This deserves a Exelent rating and a MOTM Nomination :)

I'm so scared of being hacked

DragonMasterNYC 11-21-2008 03:29 PM

Wow this is a great mod for vBulletin my defense manager will be very please with this addition. Will begin testing immediately with my defense manager.

Thanks and nominated for MOTM

GlamRockTalk 11-21-2008 03:49 PM

Quote:

Originally Posted by invisiblea (Post 1670042)
In the next release these problems will be solved. :)

Any ETA on the next release invisiblea?

MrEyes 11-21-2008 04:13 PM

Good mod, fantastic idea, however the subscription issue is something of a show stopper. So I decided to look into it.

The reason the "firewall" kicks in on the subscription page is that one of the security rules is 'script', and quiet rightly so. However due to the checking method used, the firewall kicks in when it sees:

do=viewsubscription

Notice the bold/underlined part

The good news is that this can be resolved, but it is a hack to the mod. The following instructions explain what needs to be done, if you want to implement it then I strongly recommend first testing it on an test server. Hopefully this will help the mod dev makes this mod one of the best available here:

Right, you need to goto:

ACP -> Plugins & Products -> Plugin Manager

Once there look for the entries for "Product : vBFirewall", this should only have one plugin called 'vBFirewall' which uses the 'init_startup' plugin. Click edit

Copy all the text in 'Plugin PHP Code' into notepad.

Now follow these steps:
  • Find the line that reads:

    Code:

    'st=-', 'cat%20', 'include', '_path=');
  • On a new line immediately after this paste in:

    Code:

    $securityexclusions = array(
            'do=viewsubscription'
    );

  • Find the line that reads:

    Code:

    $cracker = strtolower($cracker);
  • On a new line immediately after this paste in:

    Code:

    $cracker= str_replace($securityexclusions, '', $cracker);

Once done, copy all the edited text in notepad back into the 'Plugin PHP Code' in ACP, then click save

What this is actually doing is creating an extendible security rule exclusion list, so if any other VB queries string invoke the vbFirewall you can add another exclusion.

IMPORTANT : I have only run this on a basic test server I have, do not try this unless you are absolutely comfortable with plugins/php etc.

A here are some suggestions for the next version:
  • Rather than add the logs to a flat file on the server store this in the DB and then create an ACP page to view/search/manage logs
  • Add option to send a PM or Email or both
  • If a specific IP invokes the firewall more than X times in Y seconds/minutes auto place this IP on the vBulletin ban list.
  • If a specific IP can be associated to an actual forum user account auto ban that user.

One other teeny weeny little thing, you need to mention that this is based on the GPL licensed code found here : http://www.cback.de/cback_software/standalonect.php ;)

EDIT: Later in this thread I have posted an additional fix for vbAnonymizer users

DragonMasterNYC 11-21-2008 05:15 PM

Those suggestions are great especially the auto ban and the view in the admin panel. Hope he adds them and checks those exceptions out.


All times are GMT. The time now is 03:15 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.01555 seconds
  • Memory Usage 1,818KB
  • 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
  • (6)bbcode_code_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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