douzhou7037 2010-07-07 15:01
浏览 168
已采纳

将phpinfo()暴露给最终用户会带来哪些安全问题?

If a phpinfo() dump is shown to an end user, what is the worst that a malicious user could do with that information? What fields are most unsecure? That is, if your phpinfo() was publicly displayed, after taking it down, where should you watch/focus for malicious exploits?

  • 写回答

6条回答 默认 最新

  • doushi9474 2010-07-07 15:16
    关注

    Knowing the structure of your filesystem might allow hackers to execute directory traversal attacks if your site is vulnerable to them.

    I think exposing phpinfo() on its own isn't necessarily a risk, but in combination with another vulnerability could lead to your site becoming compromised.

    Obviously, the less specific info hackers have about your system, the better. Disabling phpinfo() won't make your site secure, but will make it slightly more difficult for them.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(5条)

报告相同问题?