Skip to content

Patched results for branch: master#6

Open
patched-codes[bot] wants to merge 2 commits intomasterfrom
patched-master
Open

Patched results for branch: master#6
patched-codes[bot] wants to merge 2 commits intomasterfrom
patched-master

Conversation

@patched-codes
Copy link
Copy Markdown

@patched-codes patched-codes Bot commented May 4, 2024

This pull request from patched fixes 4 issues.


  • File changed: src/main/java/io/shiftleft/controller/AdminController.java
    Security enhancements for object deserialization and cookie handling The diff introduces a new class, LookAheadObjectInputStream, which extends ObjectInputStream. This class overrides the resolveClass method to only allow deserialization of AuthToken objects, preventing potential deserialization attacks. The diff also modifies the way cookies are handled. Instead of directly adding a new cookie to the response, it now creates a Cookie object, sets it to HttpOnly and Secure, and then adds it to the response. This prevents potential cross-site scripting (XSS) and man-in-the-middle (MITM) attacks.

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.

0 participants