Skip to content

Conversation

@marc-barry
Copy link
Contributor

Fixes https://github.com/qpoint-io/demos/security/code-scanning/4

To fix the problem, we need to ensure that detailed error messages are not exposed to the end user. Instead, we should log the detailed error messages on the server and return a generic error message to the user. This can be achieved by modifying the return statements in the exception handling blocks to return a generic error message while keeping the logging statements intact.

Suggested fixes powered by Copilot Autofix. Review carefully before merging.

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants