I have read that displaying the the error messages in php on production servers is a security risk. Could you show an example of such an error message and how it can be vulnerable?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s because the error_message can contain potentially sensible information like
(to be extended)
In short, it is possible that a remote user will gain information he has not to. This information may potentially being interesting for an attack. But its more about the potentially.
Or say it in other words, when you disable the displaying of error messages you fix a potential security risk