se2024-jpg / WolfTrack6.0

A personal job-tracker application
MIT License
0 stars 1 forks source link

Fix code scanning alert no. 8: Information exposure through an exception #30

Closed prav29 closed 3 weeks ago

prav29 commented 3 weeks ago

Fixes https://github.com/se2024-jpg/WolfTrack6.0/security/code-scanning/8

To fix the problem, we need to ensure that the exception message is not exposed to the user. Instead, we should log the detailed error message on the server and return a generic error message to the user. This can be achieved by using the logging module to log the exception and returning a user-friendly message.

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

codecov[bot] commented 3 weeks ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

joeljogy commented 3 weeks ago

Looks good to merge with Feature branch. No conflicts.