防止ZENCART网站被跳转和防黑

防止ZENCART网站被跳转和防黑

 

跳转的检测方法
1.用英文浏览器 和国外ip来访问自己的网站 看是否会跳转

2.google下自己网站 点开看是否会被跳转

怎么修复呢?

1.看是否是.htaccess被修改导致的

2.寻找php木马
一般存在于除includes外的其他目录 常见于images目录 图片目录只要有php文件 直接删除

对于不确定的文件  直接浏览器访问这个文件 一般有密码访问的就是木马了

把不是自己的可疑文件都清除掉

3.对于跳转的代码 一般有js和php两种
对于js的 如果是存在在产品描述中的 去数据库运行

update products_description set products_description=replace(products_description,'替换的字','')

这个替换的字就是跳转代码  这个似乎智能在数据库运行 ,而不能在 ZENCART后台的INSTALL SQL栏目下运行。

如果js代码是存在文件中的 以及php中的跳转代码 比较笨点的方法就是把整站的代码都下载下来 然后搜索相关词来找到哪个文件的 这个词一般上搜索跳转后的网址
比如跳到http://www.163.c0m 就搜索163
还有些跳转代码会是加密的 那么我们就搜索一些常用的关键函数来确定 如 eval exec base64_decode 出现这些函数的文件 要仔细检查下是否是木马

4.以上都搞定了 检查后台的管理员是否被人添加过
现在在把数据库密码 后台密码 后台路径全都更改

5.还出现问题,那么去找到服务器的访问记录文件 access logs 找到差不多是被黑的时候的记录 来看是怎么被入侵的
总的来说 修复是个繁琐但又必须要细心的事情

下面再说下预防的一些措施
1.如果是1.3.8版本看是否打上了补丁 以及编辑器漏洞

好能更新至zencart最新版本

2.修改后台目录地址

3.在根目录的一些目录放个.htaccess文件防止直接访问 比如email cache images.... 内容如下

<Files *.php>
Order Deny,Allow
Deny from all
</Files>

4.安装或自己写一些扩展或模块的时候 一定要注意代码的参数安全 防止sql注入

转载于:https://www.cnblogs.com/waimaole/archive/2012/09/25/2700968.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Zen Cart 1.3.9h 英文版 zencart 1.3.9h 英文版 * CHANGE-74 - Fix unsanitized inputs in some forms * CHANGE-84 - Add security token to forms, to prevent CSRF/XSS attacks * CHANGE-86 - Add session cookie handling switches to Sessions configuration screen in Admin to allow server-specific customization of cookie handling * BUGSFORUM-1530 - HTML editing in Admin UI caused undesirable display confusion due to aggressive security protections. Removed the need for whitelisting which was introduced in v1.3.9g (custom whitelist files can be removed) * BUGSFORUM-1542 - Added further sanity checks to linkpoint_api module to further prevent SGS-002301 errors * BUGSFORUM-1548 - Fix problem with improper address matching if PayPal returns a blank address in an Express Checkout transaction * BUGSFORUM-1557 - Fix deprecated PayPal EC API key names * BUGSFORUM-1559 - Fix minor table nesting issue * BUGSFORUM-1561 - minor messageStack error in admin upload class * BUGSFORUM-1562 - Admin page for "specials" - error in displayed info * BUGSFORUM-1565 - Fix problem with PayPal Express Checkout where shipping wasn't recalculated if shopping cart contents were altered midway through checkout. * BUGSFORUM-1566 - minor fix to error message handling in admin upload class * BUGSFORUM-1577 - Password must contain a minimum of x characters * BUGSFORUM-1262 - Fix HTMLarea error message on Safari browsers. * Authorize.net - Updated Fraud Detection Suite filter handling * Minor: Updated some payment modules to have 15 instead of 10 years shown for expiry dates when entering credit card details (Singapore is issuing such card dates)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值