Skip to content

Conversation

@pixeebot
Copy link
Contributor

@pixeebot pixeebot bot commented Mar 3, 2025

Remediation

This change fixes "Information exposure through an error message" (id = error-message-exposure) identified by CodeQL.

Details

This change removes exposure through sending/printing of error and exception data.

Our changes look like this:

 void function(HttpServletResponse response) {
    PrintWriter pw = reponse.getWriter();
    try{
        ...
    } catch (Exception e) {
-        pw.println(e.getMessage());
    }
 }
More reading

🧚🤖 Powered by Pixeebot

Feedback | Community | Docs | Codemod ID: codeql:java/error-message-exposure

@pixeebot
Copy link
Contributor Author

pixeebot bot commented Mar 11, 2025

I'm confident in this change, but I'm not a maintainer of this project. Do you see any reason not to merge it?

If this change was not helpful, or you have suggestions for improvements, please let me know!

@pixeebot
Copy link
Contributor Author

pixeebot bot commented Mar 12, 2025

Just a friendly ping to remind you about this change. If there are concerns about it, we'd love to hear about them!

@pixeebot
Copy link
Contributor Author

pixeebot bot commented Mar 18, 2025

This change may not be a priority right now, so I'll close it. If there was something I could have done better, please let me know!

You can also customize me to make sure I'm working with you in the way you want.

@pixeebot pixeebot bot closed this Mar 18, 2025
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.

1 participant