Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8032817
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:30:30+00:00 2026-06-05T01:30:30+00:00

I am using Form Authentication is ASP.NET. I am running penetrating testing for a

  • 0

I am using Form Authentication is ASP.NET. I am running penetrating testing for a school project. I am using LENS -ASP.NET PENETRATING TESTING TOOL. In the results it told me that my application could be vulnerable to session fixation. Does anyone know how this can be mitigated against?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:30:32+00:00Added an answer on June 5, 2026 at 1:30 am

    A session fixation is an attack in which one person fixates another person’s session identifier (SID).

    The attack starts with the attacker visiting the website and establishing a valid session, when the application delivers a cookie containing the Session ID, the attacker has fixed, or locked in, a known good session. The attacker will then trick the victim into using this Session ID. At this point the attacker and victim share the same Session ID. Now anytime the information stored in this fixated session is used to either make decisions for the victim or display information only the victim should see, can be potentially used and viewed by the attacker! You can read more here.

    The only workaround on this would be for ASP.NET to issue a NEW session ID after any successful authentication, That way once the victim logs in, the attacker will have no access to the session. Another point to remember: NEVER deliver session until the user logs in.

    Remember, in ASP.net Session.Abandon() is not sufficient for this task, it does not remove the session ID cookie from the user’s browser, so any new request to the same application, after the session is abandoned, will use the same session ID and a new Session State instance! As Microsoft states here. You need to abandon the session and clear session ID cookie:

    Session.Abandon();
    Response.Cookies.Add(new HttpCookie("ASP.NET_SessionId", ""));
    

    It’s also a good practice to change the Form Authentication cookie name, in your web.config file:

    <authentication mode="Forms">
      <forms name=".CookieName" loginUrl="LoginPage.aspx" />
    </authentication>
    

    Here’s a good article on Session Attacks and ASP.NET and how to resolve it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using form authentication inmy ASP.NET 2.0 website. Today during testing i was
I'm using Form Authentication in ASP.NET 3.5. I noticed that when my app pool
i am using form authentication for my website which is written in ASP.Net, but
I am trying to create a custom authentication scheme in ASP.NET MVC using form
I have a question about using form authentication in ASP.net MVC. I ran aspnet_regsql
I am creating a web application using Form Authentication of Asp.Net with C# and
I have a lot of ASP.NET 2.0 applications using the form authentication. It works
I am using ASP.net form authentication for my web application. I have folder admin
In my asp.net website i am using asp.net form authentication with following configuration <authentication
I use ASP .Net 4 and I have a project using the form web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.