Skip to content

Commit

Permalink
Merge pull request #1 from bdoyal/pixeebot/drip-2024-03-25-codeql-jav…
Browse files Browse the repository at this point in the history
…a/stack-trace-exposure

Prevent information leak of stack trace details to HTTP responses (CodeQL)
  • Loading branch information
bdoyal authored Mar 25, 2024
2 parents 817afc7 + fcc0f5f commit 25c2e15
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public AjaxAuthenticationEntryPoint(String loginFormUrl) {
@Override
public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException authException) throws IOException, ServletException {
if (request.getHeader("x-requested-with") != null) {
response.sendError(401, authException.getMessage());
response.sendError(401);
} else {
super.commence(request, response, authException);
}
Expand Down

0 comments on commit 25c2e15

Please sign in to comment.