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

What information in phpinfo is sensitive?

· 52CE 我爱测

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'…

问题原文

原帖链接 · 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.

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

资料来源与适用范围

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

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

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