问题原文
原帖链接 · Sam · CC BY-SA 4.0
I was told that phpinfo contains sensitive data so you should delete it in production environment. But this afternoon I took a good look at it and found nothing interesting. So here's my question. What on earth is sensitive? How's an attacker gonna use such information? Or what will s/he know from the config page?
已采纳解答
原帖链接 · Lex Li · CC BY-SA 4.0
An example.
If your phpinfo page reveals that you are using Windows Server 2008 and PHP 5.6, with certain PHP modules, then the attackers can easily take control of your server because,
- Windows server 2008 is end of life, and security issues won't be fixed by Microsoft any more.
- PHP 5.6 is end of life, and security issues are no longer fixed.
- Certain modules have their own vulnerabilities which open the door to the attackers.
Even if you use latest Windows and PHP releases, zero day vulnerabilities are out there.
The lesser information you reveal to the outside world, the more difficult for the attackers to exploit.
You'd better hire a security consultant and learn more.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
