Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

[PATCH] Blocking those pesky hackers

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #51  
Old 08-17-2008, 12:35 PM
 
ReadytoCover ReadytoCover is offline
 

Senior Member
  
Join Date: Apr 2008
Posts: 124
 

Default Re: [PATCH] Blocking those pesky hackers

[quote=Scotty85]I started getting these URLs in the Users Online log. Is there a way I can block these too?

I know this is lame question...but where is the Users Online log? I looked under Summary->Logs and didn't see it?
__________________
x-cart 4.1.9
Reply With Quote
  #52  
Old 08-17-2008, 12:48 PM
 
Scotty85 Scotty85 is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 94
 

Default Re: [PATCH] Blocking those pesky hackers

You have to have the 'Users Online' module enabled first. Then you can find it in the Statistics area. It isn't really a "log", but a listing of all the current users and their locations. There is also a hack that shows their IPs as well. I use it all the time.


Scotty
__________________
Xcart Version 4.1.9
Upgraded to 4.1.10 (clean install with mods added back)
Reply With Quote
  #53  
Old 08-17-2008, 01:11 PM
 
ReadytoCover ReadytoCover is offline
 

Senior Member
  
Join Date: Apr 2008
Posts: 124
 

Default Re: [PATCH] Blocking those pesky hackers

Oh ok thanks. Just enabled that module and I'll keep an eye out.
__________________
x-cart 4.1.9
Reply With Quote
  #54  
Old 08-17-2008, 02:39 PM
 
ReadytoCover ReadytoCover is offline
 

Senior Member
  
Join Date: Apr 2008
Posts: 124
 

Default Re: [PATCH] Blocking those pesky hackers

Ok got it working with the IP hack, out of curiosity...what do you look for in terms of security / protection?

Simply strange urls?
__________________
x-cart 4.1.9
Reply With Quote
  #55  
Old 08-20-2008, 08:19 AM
 
timbrrr timbrrr is offline
 

eXpert
  
Join Date: Feb 2006
Posts: 277
 

Default Re: [PATCH] Blocking those pesky hackers

Did some more research on this and found the following suggestion over at worldpress forums...

would this be a good solution that they mention putting in the .htaccess file?
PLEASE DO NOT USE THIS unless you know what you are doing. I am only posting it here to get some feedback from the programming guru's.


RewriteCond %{QUERY_STRING} ^(.+)declare(.+)$ [NC]
RewriteRule ^.* - [F,L]


Testing, it throws you into a 403 Forbidden page, would a redirect work better ?

Comments on this please.
Thanks
__________________
X-Cart Gold 4.6.3
Codero dedicated server
Reply With Quote
  #56  
Old 08-22-2008, 04:27 AM
 
intel352 intel352 is offline
 

X-Wizard
  
Join Date: Dec 2005
Posts: 1,071
 

Default Re: [PATCH] Blocking those pesky hackers

Hmm, that should work, as long as you never have a legitimate value in your query string called "declare". You ask if a redirect would be better, why should you redirect?
__________________
-Jon Langevin
WARNING: Unethical developer - NOT RECOMMENDED
See details here
Reply With Quote
  #57  
Old 08-22-2008, 06:36 AM
 
timbrrr timbrrr is offline
 

eXpert
  
Join Date: Feb 2006
Posts: 277
 

Default Re: [PATCH] Blocking those pesky hackers

Agreed about the point of having a legitimate value in the querry for "declare" All though probably a rare chance, it could happen.

I thought of redirect simply for the chance that it was a human injecting the code, and not a hacked computer out probing every site it could. If it were a person that tried it, and it just appeared to ignore them, then they might be more likely to give up and not try refreshing the page a hundred times looking for results.

Have you deobfuscated the querry? From what I can gather,it basically tries to run a script (possibly located elsewhere such as the origination of the attack) against the database.
Do you have a better or cleaner way to avert this type of attempt?
__________________
X-Cart Gold 4.6.3
Codero dedicated server
Reply With Quote
  #58  
Old 08-25-2008, 12:54 PM
 
Scotty85 Scotty85 is offline
 

Advanced Member
  
Join Date: Mar 2008
Posts: 94
 

Default Re: [PATCH] Blocking those pesky hackers

I'm getting more of these today. Any news on how to automatically block them with the mod?
__________________
Xcart Version 4.1.9
Upgraded to 4.1.10 (clean install with mods added back)
Reply With Quote
  #59  
Old 08-27-2008, 01:35 PM
  2coolbaby's Avatar 
2coolbaby 2coolbaby is offline
 

eXpert
  
Join Date: Sep 2004
Location: TN moving to FL
Posts: 265
 

Default Re: [PATCH] Blocking those pesky hackers

I have a question. Since installing this mod last week and I also installed the newest security updates, so cannot pinpoint the problem... I have been getting about 1 in 5 customers that get errors in the shopping cart when they try to enter their customer information during checkout. They get an error message, with no specific error. It just says their was an error in your form. Or something like that (I cannot reproduce the error, but all the phone calls tells me it is real). It then clears the form and they have to re-enter everything all over again. Very aggravating for them. When this happens they get the error repeatedly and never can place an order. They call us and we can place the order using the info they provide. Anyone else experienced this?
__________________
Mary Lee
-------------------
Dinner and a Murder Mystery Games
http://www.dinnerandamurder.com

x-cart version 4.7.5 / Mac OS 10.10.5 and Windows 8/10 sometimes - Ideal Responsive Template
Reply With Quote
  #60  
Old 08-27-2008, 03:48 PM
 
markwhoo markwhoo is offline
 

X-Adept
  
Join Date: Nov 2003
Posts: 799
 

Default Re: [PATCH] Blocking those pesky hackers

Quote:
Originally Posted by 2coolbaby
I have a question. Since installing this mod last week and I also installed the newest security updates, so cannot pinpoint the problem... I have been getting about 1 in 5 customers that get errors in the shopping cart when they try to enter their customer information during checkout. They get an error message, with no specific error. It just says their was an error in your form. Or something like that (I cannot reproduce the error, but all the phone calls tells me it is real). It then clears the form and they have to re-enter everything all over again. Very aggravating for them. When this happens they get the error repeatedly and never can place an order. They call us and we can place the order using the info they provide. Anyone else experienced this?


The issue is actually due to the recent security patch released to protect us from hackers cross site scripting, and it also helps prevent us from making sales, lol.

Look here for more info on it:

http://forum.x-cart.com/showthread.php?t=41583&page=3
__________________
vs 4.1.12
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 12:02 PM.

   

 
X-Cart forums © 2001-2020