mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-09 20:31:38 +01:00
Fixed XSS in Internal Error page
Adding a </pre><xss> to an URL that triggered an internal error could be used to facilitate an XSS attack
This commit is contained in:
parent
d8626f37a7
commit
5c49e95c7d
@ -137,8 +137,8 @@ public class ResponseFactory {
|
||||
.build();
|
||||
}
|
||||
|
||||
public Response internalErrorResponse(Throwable e, String s) {
|
||||
return forInternalError(e, s);
|
||||
public Response internalErrorResponse(Throwable e, String cause) {
|
||||
return forInternalError(e, cause);
|
||||
}
|
||||
|
||||
public Response networkPageResponse() {
|
||||
|
@ -146,7 +146,7 @@ public class ResponseResolver {
|
||||
throw e; // Pass along
|
||||
} catch (Exception e) {
|
||||
errorLogger.log(L.ERROR, e, ErrorContext.builder().related(request).build());
|
||||
return responseFactory.internalErrorResponse(e, request.getPath().asString());
|
||||
return responseFactory.internalErrorResponse(e, "Failed to get a response");
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user