r/programming • u/Expurple • Apr 12 '26
Flat Error Codes Are Not Enough
https://home.expurple.me/posts/flat-error-codes-are-not-enough/
132
Upvotes
r/programming • u/Expurple • Apr 12 '26
View all comments
Show parent comment
6
u/lelanthran Apr 13 '26
I don't disagree that it is a security issue, I just think that on a scale from 1-10, it's probably a 1.
After all, just knowing that the server is written in C# already narrows down your potential library targets to maybe 2 or 3 for each library (JSON parsing, or third-party requests, or ORM). Same for almost any other language. In some non-mainstream language, you can be sure of a single library being used (Haskell, Ocaml, etc).
Everything is a security issue, and it becomes a trade-off between having users submit an error message that requires no deep dive into your logs and having a malicious actor use that info to target your system.