Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patched results for branch: master #6

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

patched-codes[bot]
Copy link

@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