【发布时间】:2024-04-19 20:20:01
【问题描述】:
我的网站似乎正在加载我的服务器上实际上并不存在的代码。我知道问题出在服务器端,因为我已经用其他计算机进行了测试...
该代码似乎加载了一个标头,然后将我的真实网站放入 iframe 中,奇怪的是没有广告或重定向,这是我所期望的黑客攻击。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="description" content="our real website">
<meta name="keywords" content="our real website">
<title>our real website</title>
</head>
<body style="border:0;font-family:inherit;font-size:100%;font-style:inherit;font-weight:inherit;margin:0;outline:0;padding:0;vertical-align:baseline;">
<iframe src="http://our real website.com/beta" style="width:100%; height:100%; border:none !important; margin:0px !important; padding:0px !important;"/>
</body>
</html>
这就是 chrome 和 firefox 的“显示源”给我的。
我已确保服务器上的文件不包含任何提及 iframe 的内容。我还通过使用空白索引文件创建一个新的空子目录进行了测试,但是当我在浏览器中打开它时,我得到了相同的 iframe 内容!这让我强烈怀疑我的服务器被黑了。
在这种情况下我该怎么办?
谢谢
【问题讨论】:
-
"Show Source" 显示原始 HTML。黑客必须在页面加载后对其进行了修改。尝试单击“检查元素”。有什么可疑的吗?
-
Apache 以某种方式预处理或后处理请求。所以你在文件夹上看到所有“正常”的东西
标签: javascript html security iframe