-
Notifications
You must be signed in to change notification settings - Fork 40.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider not exposing exception
error attribute by default
#7872
Labels
status: superseded
An issue that has been superseded by another
Comments
It would nice to provide an easy way to do this, but it should be possible already by using your own |
Closing in favour of PR #8971 |
snicoll
added a commit
that referenced
this issue
Apr 27, 2017
* pr/8971: Polish "Do not expose `exception` error attribute by default" Do not expose `exception` error attribute by default
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
By default,
ErrorAttributes
will exposeexception
attribute which can be considered information leakage similarly to #4730. IMO theexception
attribute shouldn't be included by default but rather only using a mechanism similar to one used to includetrace
attribute.To clarify using a sample:
Running this with Spring Boot CLI and hitting the
home
handler will yield:The text was updated successfully, but these errors were encountered: