Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stacktraces dangerous on a live website?

We are running multiple Sitecore websites and just got feedback that it might be dangerous to have stacktraces available to users of the website when getting errors. Will the website be alot more vulnarable to hackers now that people get stacktraces?

like image 229
Younes Avatar asked May 17 '26 23:05

Younes


2 Answers

It absolutely does more harm than good. Depending on what the exception in case is, you are exposing information about your system that a visitor with ill intentions could use to look for vulnerabilities.

For example, your stack trace could be showing errors coming from the System.Data.Sql namespace, telling the person that SQL Server is to be found as part of this setup (as opposed to System.Data.MySql or Oracle, for example).

It also tells the person, which .NET calls are being made, when causing the error. Now for the sake of argument, assume that one of these had a vulnerability known only to this person - this could then be exploited to gain access.

All thought up scenarios obviously, or are they?.... ;-)

Second opinion that more or less agrees, here.

like image 70
Mark Cassidy Avatar answered May 20 '26 12:05

Mark Cassidy


Potentially. But it should never be an issue.

like image 21
Ignacio Vazquez-Abrams Avatar answered May 20 '26 12:05

Ignacio Vazquez-Abrams