Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

security

Lock Down ASP.NET MVC App Administration Site to LocalHost only

August 24, 2022 by Magenaut

I have an ASP.NET MVC website that I would like to add a small administration page to. The issue I have is that I will be deploying this all over and I will not have SSL available. I am OK with requiring the administrator to remote desktop and use the local browser to perform the administration.

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, authentication, c#, security Leave a comment

How we can add write access to a directory programmatically in C#?

August 24, 2022 by Magenaut

I have an ASP.NET page that creates directories, and in another page I upload some files in these folders, but when I upload a file in a directory, the below error appears:

Categories ASP.NET, Q&A Tags asp.net, c#, directory-security, security Leave a comment

asp.net keystore for password storage?

August 24, 2022 by Magenaut

I know that encrypted passwords can be stored in the web.config or hashed and salted passwords can be stored in a database, but is it possible to store passwords in something like a keystore?

Categories ASP.NET, Q&A Tags asp.net, keystore, security Leave a comment

MVC Web Api won’t allow Windows Authentication

August 24, 2022 by Magenaut

I have a simple MVC web api 2 IIS hosted application which I want to enable windows authentication (initially not using Owin). I am running this on my development machine and running as local IIS.

Categories ASP.NET, Q&A Tags asp.net, asp.net-web-api2, authentication, security Leave a comment

Is making an asp:Button control invisible enough to be sure users won’t be able to click it?

August 24, 2022 by Magenaut

I’m making a simple website that lists files from a certain folder. If the user has admin rights, the user can delete files by clicking the “Delete” button.

Categories ASP.NET, Q&A Tags asp.net, authorization, c#, security, webforms Leave a comment

User.IsInRole returning false

August 24, 2022 by Magenaut

My ASP.NET app is using windows authentication. If I run the following code:

Categories ASP.NET, Q&A Tags .net, asp.net, security Leave a comment

Why am I getting this error: System.Security.SecurityException: Request for the permission of type ‘System.Web.AspNetHostingPermission, …’ failed

August 24, 2022 by Magenaut

Whe I try to run my site locally I get this error:

Categories ASP.NET, Q&A Tags asp.net, security Leave a comment

What is wrong with using DateTime.Now. as main part of Unique ID?

August 24, 2022 by Magenaut

I used to use RNGCryptoServiceProvider to generate string-based Order ID’s, but, there were 4 instances where [email protected]$%^*()_- would generate an already-existing Order ID.

Categories ASP.NET, Q&A Tags asp.net, c#, html, language-agnostic, security Leave a comment

ASP.NET Website Administration Tool: Unable to connect to SQL Server database

August 23, 2022 by Magenaut

I am trying to get authentication and authorization working with my ASP MVC project. I’ve run the aspnet_regsql.exe tool without any problem and see the aspnetdb database on my server (using the Management Studio tool).

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, security, sql-server Leave a comment

Building an input text area to allow HTML but prevent security / script attacks

August 23, 2022 by Magenaut

Platform: ASP.NET 4.0 MVC 4 C# jQuery

Categories ASP.NET, Q&A Tags asp.net, asp.net-mvc, security Leave a comment
Older posts
Newer posts
← Previous Page1 … Page10 Page11 Page12 … Page25 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress