Skip to content

Conversation

@MirkoZETA
Copy link
Owner

Potential fix for https://github.com/MirkoZETA/FlexNetSim-API/security/code-scanning/3

To fix the problem, we need to modify the code to return a generic error message to the user instead of the detailed exception message. The detailed error message should still be logged on the server for debugging purposes. This can be achieved by removing the error field from the JSON response and replacing it with a generic error message.

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

…ough an exception

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
@MirkoZETA MirkoZETA marked this pull request as ready for review March 8, 2025 23:09
@MirkoZETA MirkoZETA merged commit 653ff9f into master Mar 8, 2025
7 checks passed
@MirkoZETA MirkoZETA deleted the alert-autofix-3 branch March 11, 2025 22:12
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.

2 participants