Steps to re-create the issue:

  • Login with Admin Credentials and copy the session cookie.
  • Open another browser, Login as another user, paste the session cookie of the admin. Refresh the page. Now, you'll be logged in as Admin.

How to solve this issue? Any suggestions would be of great help.
Is there a way to check the authenticity of the user, after changing the Session Cookie?

Tried using the event subscriber to get the previous session before drupal loads the cookie session, but no luck with it

Comments

mathewjosephh created an issue. See original summary.

mathewjosephh’s picture

Issue summary: View changes
cilefen’s picture

Priority: Critical » Normal
Status: Active » Closed (won't fix)

Manually stealing a cookie from a web browser you control always works. That isn’t session hijacking. I’m not sure what the security vulnerability is that you are reporting. In any case, you haven’t reported it properly, which is https://www.drupal.org/project/drupal/report-security-issue