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 8146625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T14:04:02+00:00 2026-06-06T14:04:02+00:00

In asp.net, I am able to login using forms authentication as usual, copy our

  • 0

In asp.net, I am able to login using forms authentication as usual, copy our auth cookie value, log out, add the cookie artificially to the client using the ‘Edit This Cookie’ addon for Chrome, refresh the (anonymous) landing page and hey presto i’m logged in again. This seems to be a vulnerability – is there any way of fixing it using the the standard forms auth or will I have to do something like use a custom Authorize attribute which overrides the existing one in asp.net mvc?

  • 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-06T14:04:03+00:00Added an answer on June 6, 2026 at 2:04 pm

    Cookies are always vulerable and we can’t do much about that. What we can do is prevent someone from stealing the cookies.

    Regarding ASP.NET MVC it does a good job to avoid stealing cookies. Some of the main things it does by default as part of security are:

    1. Encode the strings that are rendered to the view (if you are using Razor don’t know about others) to prevent from XSS attacks.

    2. Request validation (stop potentially dangerous data ever reaching the
      application).

    3. Preventing GET access for JSON data.

    4. Preventing CSRF Using the Antiforgery Helpers

    Regarding cookies Microsoft provides HttpOnly feature and this helps to hide the cookies from javascript. The Forms authentication that you are talking about is a HttpOnly cookie means someone can’t steal that through JavaScript and it’s more safe.

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

Sidebar

Related Questions

i developed an asp.net site using forms based authentication, that site is working when
Here's the issue. I'm using ASP.NET Forms Authentication for an account balance type website.
I am using the ASP.NET login control. I want to be able to set
I'm writing an app using asp.net-mvc deploying to iis6. I'm using forms authentication. Usually
In our asp.net intranet application we are using windows authentication to authenticate the users.
I have a 3.5 ASP.Net WebForm parent application. The parent uses forms authentication. I
I am using the asp.net login control with sql server integration. I don't see
I am using RequiredFieldValidator in my asp.net program. I have a sign out button
I have an ASP.NET site on a public web server, where users login using
I followed this tutorial to create a sample Login application using ASP.NET MVC I

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.