Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 03-24-2012, 09:03 PM
meissenation meissenation is offline
 
Join Date: Apr 2005
Posts: 476
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Was this someone trying to hack?

I received two database error e-mails and both of them have the same content - I changed the text to red for the part I'm worried about. It looks like they were trying to inject base64 code inbetween the IMG tags.

I also noticed that the IP address does not match the IP address in the profile for HotRoddCamaro. I did a search of users by IP address with a depth of 2 and it didn't find any matches. I did notice the IP address is local and isn't a chinese address.

Was this someone doing something suspicious as it looks? Base64 in an img code? Just wondering if I should be doing an IP block.


Quote:
Database error in vBulletin 4.1.10:

Invalid SQL:
INSERT INTO post
(showsignature, allowsmilie, htmlstate, username, userid, title, pagetext, iconid, visible, parentid, threadid, dateline, ipaddress, attach)
VALUES
(0, 1, 'on_nl2br', 'HotRoddCamaro', 3698, '', '[IMG]http://www.mifbody.com/vbulletin/image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAlYAAAMgCAIAAABuy7 sgAAAgAElEQVR4nOzd95dcR3Yn+/ ((EDITED DUE TO LENGTH LIMITATIONS)) /+ScueB3ztJQsCHh3QxeS8NdlRwXxK2GetjNHXWyuzVptcAPLWZ g0X2T6mXJVgat8vEyHSrTgQodqtLhEukvoN6Q7dL/A6UsvcdRywcjAAAAAElFTkSuQmCC[/IMG]', 0, 1, 725705, 44903, 1332284140, '24.231.198.41', 0);

MySQL Error : MySQL server has gone away
Error Number : 2006
Request Date : Tuesday, March 20th 2012 @ 10:55:40 PM
Error Date : Tuesday, March 20th 2012 @ 10:56:01 PM
Script : http://www.mifbody.com/vbulletin/new...treply&t=44903
Referrer : http://www.mifbody.com/vbulletin/sho...w-Member/page2
IP Address : 24.231.198.41
Username : HotRoddCamaro
Classname : vB_Database
MySQL Version :
Reply With Quote
  #2  
Old 03-24-2012, 09:22 PM
Reycer Reycer is offline
 
Join Date: Jul 2008
Location: Lebanon, MO (USA)
Posts: 747
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://www.vbulletin.com/docs/html/troubleshoot_mysql_goneaway" target="_blank">https://www.vbulletin.com/docs/html/...mysql_goneaway</a>
Reply With Quote
  #3  
Old 03-24-2012, 10:02 PM
meissenation meissenation is offline
 
Join Date: Apr 2005
Posts: 476
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, but it's not the fact that MySQL "went away" - it's that they put almost 1.5mb worth of text in the tags in what *looks* like some sort of injection attack with base64 code inbetween the IMG tags. The fact that there was so much code in there is why the server timed out, I understand that.
Reply With Quote
  #4  
Old 03-24-2012, 11:16 PM
kh99 kh99 is offline
 
Join Date: Aug 2009
Location: Maine
Posts: 13,185
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's possible I suppose. But it kind of looks like inline image data, although to be honest I don't know how you'd do that (or even if you're supposed to be able to do it in vbulletin). But since it looks like it's the post contents, I don't see how it could be used as an attack any more than anything else you could include in a post.
Reply With Quote
  #5  
Old 03-24-2012, 11:20 PM
Adam H Adam H is offline
 
Join Date: Apr 2008
Location: UK
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That normally happens when one of your members are trying to upload an infected image, most of the time they dont even know its infected .

One thing i normally do to stop this is adding "base64" to the censorship options which seems to stop it from being posted. You can also reduce the maximum characters for posts because these strings are often pretty long.
Reply With Quote
  #6  
Old 03-24-2012, 11:36 PM
meissenation meissenation is offline
 
Join Date: Apr 2005
Posts: 476
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for the idea, Adam. Do you also think it's weird that the IP address does not match the known IP addresses for the username?

I'll add base64 to the censorship option though, I think that's a great idea.
Reply With Quote
  #7  
Old 03-24-2012, 11:43 PM
Adam H Adam H is offline
 
Join Date: Apr 2008
Location: UK
Posts: 248
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Are you looking at the last known IP address on their profile or searching for all IP's used by that user ?

Also if you are using a reverse proxy make sure that IP address isnt your server IP, Although from what i can see the IP in that DB error from from Michigan
Reply With Quote
  #8  
Old 03-25-2012, 01:27 AM
meissenation meissenation is offline
 
Join Date: Apr 2005
Posts: 476
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I tried both last known IP address and also searching for all IPs used by any user and it didn't find any matches. I agree with what you found - it's coming from Flushing, MI which would make sense since the site is Michigan-centric. Just don't know if it was a script kiddie trying something or what.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 02:41 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.04422 seconds
  • Memory Usage 2,227KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (8)post_thanks_box
  • (8)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (8)post_thanks_postbit_info
  • (8)postbit
  • (8)postbit_onlinestatus
  • (8)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete