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)
-   -   Administrative and Maintenance Tools - Check 4 Hack - Finds infected Datastore Entries (https://vborg.vbsupport.ru/showthread.php?t=265866)

Hoffi 06-26-2011 10:00 PM

Check 4 Hack - Finds infected Datastore Entries
 
1 Attachment(s)
Many Users have Problems with infected Webservers.

I wrote a small Cron-Job that searches the datastore for possible infects and tried to repair them.

1.0 Initial relase with one check:
Checks if a base64 Code resists in the Datastore. If it's found in the pluginlist, the Datastore will be rebuild.

For more Checks, tell them. I'll add them.

The Cron Job will be started every 20 Min, and sends a Mail to the entered Mailadress, or if non entered, to the webmaster eMail-adress.

Install:

Upload the upload Directory and install the XML File.

German Version is also integrated.

If you want to check the Plugin, enable the Demo-Plugin which is installed, too. Only if it's enabled, the Check will find this.

If this Mod detects an infect, please do not lean back! Research it, and fix your security Hole!

djbaxter 06-27-2011 02:35 PM

FYI: Seems to work in 3.x as well.

Dr.osamA 06-28-2011 10:58 AM

installed under test

thank you bro
keep it up

Manoel J?nior 06-28-2011 11:22 AM

If it works in vB3.8.7, I put on my running forum when you get home!

Thank you!

TAG!

BadgerDog 06-28-2011 11:29 AM

Installed for testing on 4.1.3 ...

Is there any AdminCP option settings for this mod anywhere?

Thanks ... :)

Regards,
Doug

ForceHSS 06-28-2011 11:39 AM

no options for this plugin from what i see does not work cant even add my email to it

BadgerDog 06-28-2011 11:43 AM

Quote:

Originally Posted by ForceHSS (Post 2214016)
no options for this plugin from what i see does not work cant even add my email to it

That's why I asked because it said "...and sends a Mail to the entered Mailadress, or if non entered, to the webmaster eMail-adress." and I couldn't find anywhere to enter an email address in the mod ... :D

Regards,
Doug

BirdOPrey5 06-28-2011 11:55 AM

The email field is added to the bottom of: Server Settings and Optimization Options in options.

BadgerDog 06-28-2011 12:13 PM

Quote:

Originally Posted by BirdOPrey5 (Post 2214022)
The email field is added to the bottom of: Server Settings and Optimization Options in options.

Thank you ... :up:

Regards,
Doug

TheLastSuperman 06-28-2011 04:04 PM

Very nice Hoffi :D

Alecsmith 06-28-2011 06:10 PM

Testing :D

Brandon Sheley 06-28-2011 06:56 PM

nice!

rajubd 06-28-2011 08:10 PM

so if it Finds infected Datastore
Entries it will pm admin?

davidg 06-29-2011 08:13 PM

i m having this error when i try to import the xml file:
XML Error: not well-formed (invalid token) at Line 0

TheLastSuperman 06-29-2011 08:29 PM

Quote:

Originally Posted by davidg (Post 2214712)
i m having this error when i try to import the xml file:
XML Error: not well-formed (invalid token) at Line 0

Hmm sounds odd... try it once more and let us know... also are you uploading and typing in the location OR selecting from a folder on your PC?

djbaxter 06-29-2011 11:08 PM

Quote:

Originally Posted by davidg (Post 2214712)
i m having this error when i try to import the xml file:
XML Error: not well-formed (invalid token) at Line 0

Quote:

Originally Posted by TheLastSuperman (Post 2214723)
Hmm sounds odd... try it once more and let us know... also are you uploading and typing in the location OR selecting from a folder on your PC?

It sounds to me like an incomplete or corrupted download. Try downloading the XML file again and reinstalling.

Hoffi 06-30-2011 08:56 AM

No, It sends an eMail.

davidg 06-30-2011 11:38 AM

is working now i think it was my computer who caused that error

Lee G 07-01-2011 10:08 AM

Can anyone please confirm this works with 3.8
Going by my flat line in traffic, it looks like I have been hit a second time in just over a year

BirdOPrey5 07-01-2011 10:27 AM

I can't confirm it but I see no reason why it wouldn't.

pantani 07-01-2011 11:19 AM

will test it :)

djbaxter 07-01-2011 01:29 PM

Quote:

Originally Posted by Lee G (Post 2215395)
Can anyone please confirm this works with 3.8
Going by my flat line in traffic, it looks like I have been hit a second time in just over a year

Quote:

Originally Posted by BirdOPrey5 (Post 2215408)
I can't confirm it but I see no reason why it wouldn't.

Quote:

Originally Posted by pantani (Post 2215418)
will test it :)

Yes, I have it running on one 4.1.4 forum and one 3.8.3 forum.

Lee G 07-01-2011 02:20 PM

Fingers crossed, installed on a 3.8.1 forum
Cant find where to turn the test option on though
No doubt a dumb question :o

Habsy 07-01-2011 02:34 PM

Does this work for 4.1.4?

Many thanks.

BirdOPrey5 07-01-2011 02:41 PM

Quote:

Originally Posted by Habsy (Post 2215476)
Does this work for 4.1.4?

Many thanks.

In the very top post it says "vB version 4.1.4" so I would say yes, it does.

djbaxter 07-01-2011 03:03 PM

Quote:

Originally Posted by Lee G (Post 2215471)
Fingers crossed, installed on a 3.8.1 forum
Cant find where to turn the test option on though
No doubt a dumb question :o

No, not at all. This is a very useful add-on but doesn't have a lot of documentation.
  1. Admin CP >> vBulletin Options >> vBulletin Options

    select Server Settings and Optimization Options

    scroll down to "E-Mail adress: If a infect is detected, a warn mail will send to this adress. Then the System trys to repair" and enter the email address for notification.

  2. AdminCP >> Plugins & Products >> Plugin Manager

    scroll down to Product : Check 4 Hacking and find below that [s]demo[/s]

    enable demo

  3. Admin CP >> Scheduled Tasks >> Scheduled Task Manager

    scroll down to "Check 4 Hacking: Test the datastore for infects"

    click on "Run Now"

    you should get an email saying the cron job has found an infection in demo

  4. Remember to go back and disable the demo plugin from step 2 above

MentaL 07-01-2011 03:32 PM

i assume a blank email means no infection?

ata-k 07-01-2011 03:47 PM

hello ... can you help? the program sent me this to my mail ...

Were the Following modules infected:

pluginlist

Is this normal?? or is it a virus?? and if a virus I do? I hope you can answer and help me ... thank you very much!

djbaxter 07-01-2011 03:48 PM

Quote:

Originally Posted by MentaL (Post 2215491)
i assume a blank email means no infection?

Yes. That only happens once after the "infected" email, presumably to confirm that you're now clean.

Quote:

Originally Posted by ata-k (Post 2215498)
hello ... can you help? the program sent me this to my mail ...

Were the Following modules infected:

pluginlist

Is this normal?? or is it a virus?? and if a virus I do? I hope you can answer and help me ... thank you very much!

That's because you enabled the "demo" plugin. Now go in and disable it.

MentaL 07-01-2011 04:10 PM

I got no infected email just 3 blanks.

djbaxter 07-01-2011 05:02 PM

Quote:

Originally Posted by MentaL (Post 2215503)
I got no infected email just 3 blanks.

Did you enable the demo plugin to test it? If not, manually running the cron job will send the blank email unless you have a real infection somewhere.

MentaL 07-01-2011 05:48 PM

Im on vb3 and cannot find no place to enable the demo.

/EDIT
Corrupt Datastore found!


The following modules were infected:

vbindex_config

/edit , decoded and it says

Quote:

<div class="smallfont" style="text-align: center">vBindex Copyright &copy; MMII - MMIV Winter Systems.</div>

djbaxter 07-01-2011 05:58 PM

Then you need to delete that file: vbindex_config - what is that, anyway? That's not part of vBulletin, as far as I know.

Adrian Schneider 07-01-2011 06:21 PM

Simply checking for "base64" seems like it would give a lot of false positives... There are lots of legitimate uses for encoding data.

It's a good idea, but I think the implementation needs to be refined a lot, otherwise users will end up confused and scared.

Hoffi 07-03-2011 08:12 AM

I did not use any AddOn that use the base64 Code in a plugin, so it works for me. If you know a plugin which uses this code, I can add some extra functionality that looks in which plugin the code is used.

If you got a blank email, I assume that some phrases are missing. eMails were only send, if base64 is found in the datastore.

onealien 07-03-2011 08:25 PM

installed and working....3.8.x

THANKS...

djbaxter 07-03-2011 09:03 PM

Quote:

Originally Posted by onealien (Post 2216360)
installed and working....3.8.x

Hmmm... it installed and tests fine on a 3.8.3 forum where I am a tech admin, but that forum was re-infected with the filestore123.info redirect without triggering this add-on.

Cleared the datastore (you can do this by disabling and then re-enabling any product/plug-in) so the redirect is gone again. Will continue to monitor.

Added: see below https://vborg.vbsupport.ru/showpost....2&postcount=39

CBrown 07-04-2011 02:44 PM

Ok...

I ran this, and it's telling me: pluginlist is infected?

Exactly how would I go about double checking if this is correct or a false positive?

This seems odd.

Great add-on... Now just to wrap my head about what I got going on here.

djbaxter 07-04-2011 03:15 PM

Quote:

Originally Posted by djbaxter (Post 2216374)
Hmmm... it installed and tests fine on a 3.8.3 forum where I am a tech admin, but that forum was re-infected with the filestore123.info redirect without triggering this add-on.

Cleared the datastore (you can do this by disabling and then re-enabling any product/plug-in) so the redirect is gone again. Will continue to monitor.

Ignore this. I checked further and discovered that the cron job wasn't running. Somehow it was set to run only on the 11th of the month instead of daily.

It does on fact work as it should in vBulletin 3.8.3.

CBrown 07-11-2011 04:56 PM

Just to be clear...

If you get a blank email -> Does that mean nothing was found?


All times are GMT. The time now is 01:53 AM.

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.01375 seconds
  • Memory Usage 1,815KB
  • 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
  • (16)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