110001β€”Application Error Disclosure via WebSockets

PUBLISHEDsecurity alertMedium
WebSocket Passive

Metadata

Alert ID:
110001
Risk:
Medium
Type:
WebSocket Passive

Summary

This payload contains an error/warning message that may disclose sensitive information like the location of the file that produced the unhandled exception. This information can be used to launch further attacks against the web application.

Solution

Review the error payloads which are piped directly to WebSockets. Handle the related exceptions. Consider implementing a mechanism to provide a unique error reference/identifier to the client (browser) while logging the details on the server side and not exposing them to the user.