大网数据广告活动
服务器运维问答

GET http://example.com/ HTTP/1.1” 200 3421 “-” “Go-http-client/1.1

· 52CE 我爱测

[12/Sep/2020:05:50:56 +0000] "GET http://example.com/ HTTP/1.1" 200 3421 "-" "Go-http-client/1.1" My apache access logs registered this line on the server. It looks like some kind of proxy pen-test or attack. I am trying to under…

问题原文

原帖链接 · Phil15 · CC BY-SA 4.0

[12/Sep/2020:05:50:56 +0000] "GET http://example.com/ HTTP/1.1" 200 3421 "-" "Go-http-client/1.1"

My apache access logs registered this line on the server. It looks like some kind of proxy pen-test or attack.

I am trying to understand what were the intentions of the attacker and how to reproduce this to make sure the server was not compromised as it did respond with 200.

已采纳解答

原帖链接 · Michael Hampton · CC BY-SA 4.0

Someone wrote a program in Go to connect to servers (such as yours) and check whether they are misconfigured as open proxies. Many web servers out there are so misconfigured, and they are therefore useful to malicious actors as platforms to launch attacks without those attacks being immediately traceable back to them.

If you have enabled ProxyRequests anywhere in your Apache configuration, you are most likely vulnerable. Unfortunately there are a few bad tutorials out on the Internet that advise enabling this when it is not required.

Assuming you haven't enabled this directive, your server would instead serve the top level index document for the default virtual host, as you would not have a virtual host matching the hostname they requested. If you didn't alter this configuration, it would be the "It works" page shipped by your distribution. If you did alter the default virtual host, then it would be whatever index document you specified in that configuration. In neither case would you be vulnerable to being exploited as an open proxy.

Finally, if your server was misconfigured as an open proxy, its IP address would have been shared widely and you would see a very large amount of traffic passing through in this manner, and probably some abuse complaints from your hosting provider.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-09-14)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。