Skip to main content
Tag

aspnet core

All blogs tagged with aspnet core

58
Articles
334,820
Total Views

Showing 58 of 58 articles

09
Jun
2026
CWE-276: Fixing Insecure Default Configurations in ASP.NET Core Middleware Pipeline
41 views

This article provides a comprehensive guide on addressing CWE-276 vulnerabilities related to insecure default configurations in the ASP.NET Core middleware pipeline. Understanding these vulnerabilities is crucial for building secure web applications, as default settings often expose applications to various attacks. Prior knowledge of ASP.NET Core middleware and basic security principles will enhance your understanding of the concepts discussed.

07
Jun
2026
CWE-532: Secure Logging in ASP.NET Core - Avoiding Sensitive Data in Logs with Serilog
49 views

In this comprehensive guide, you will learn how to implement secure logging practices in ASP.NET Core applications using Serilog, specifically focusing on avoiding sensitive data in logs. Understanding and mitigating the risks associated with logging sensitive information is crucial for maintaining application security and compliance with data protection regulations. Before diving in, it's essential to have a basic understanding of ASP.NET Core, logging mechanisms, and the Serilog library.

06
Jun
2026
CWE-829: Securing Third-Party Scripts and CDN Resources in ASP.NET Core with SRI
46 views

In this post, you will learn how to secure third-party scripts and resources loaded from CDNs in ASP.NET Core applications using Subresource Integrity (SRI). Understanding SRI is crucial for safeguarding your application against malicious modifications to external scripts, which can lead to security vulnerabilities. Before diving in, familiarity with ASP.NET Core, CDN usage, and basic security principles is beneficial.

05
Jun
2026
CWE-1236: Preventing CSV Injection in ASP.NET Core Excel and CSV Exports
59 views

This article explores the critical issue of CSV injection within ASP.NET Core applications, detailing effective strategies to prevent such vulnerabilities. Understanding and mitigating CSV injection is essential for maintaining application security, especially in scenarios involving data export to CSV. Familiarity with ASP.NET Core and basic security concepts will enhance the reader's grasp of the material presented.

02
Jun
2026
CWE-347: Secure JWT Token Validation in ASP.NET Core Web API
71 views

In this blog post, readers will learn how to securely validate JSON Web Tokens (JWTs) in ASP.NET Core Web APIs while adhering to best practices and avoiding common pitfalls. This topic is crucial for developers looking to implement secure authentication and authorization mechanisms in their applications. A solid understanding of JWT structure, security implications, and the ASP.NET Core authentication framework is recommended before diving in.

02
Jun
2026
CWE-522: Implementing Secure Password Hashing in ASP.NET Core Identity with PBKDF2 and BCrypt
97 views

This article provides an exhaustive guide on implementing secure password hashing in ASP.NET Core Identity using PBKDF2 and BCrypt. Understanding these hashing algorithms is crucial for protecting user credentials and ensuring application security. Readers should have a basic knowledge of ASP.NET Core and identity management concepts.

01
Jun
2026
CWE-94: Preventing Code Injection in ASP.NET Core Dynamic Expression Evaluation
79 views

In this blog post, you will learn how to prevent code injection vulnerabilities in dynamic expression evaluation using ASP.NET Core. Understanding and mitigating these vulnerabilities is crucial for building secure applications that handle user input. A solid grasp of expression trees, dynamic LINQ, and validation techniques will be beneficial before diving in.

01
Jun
2026
CWE-306: Securing Sensitive ASP.NET Core Endpoints with Authentication Middleware
67 views

This article explores the concept of CWE-306, focusing on securing sensitive ASP.NET Core endpoints using authentication middleware. Understanding and implementing proper authentication are crucial for protecting sensitive data and ensuring that only authorized users have access to certain functionalities. Readers should have a basic understanding of ASP.NET Core and middleware concepts to fully grasp the implementation details.

31
May
2026
CWE-798: Managing Secrets in ASP.NET Core with User Secrets and Azure Key Vault
72 views

This blog post provides an in-depth exploration of managing sensitive information in ASP.NET Core applications using User Secrets and Azure Key Vault. Understanding these tools is crucial for maintaining application security and compliance with industry standards. Readers should have a basic understanding of ASP.NET Core and its configuration system before diving into the details.

30
May
2026
CWE-502: Preventing Insecure Deserialization in ASP.NET Core Web API
76 views

In this article, you will learn about the vulnerabilities associated with insecure deserialization in ASP.NET Core Web APIs and how to mitigate them. Understanding these vulnerabilities is crucial as they can lead to severe security breaches, including remote code execution. Before diving in, you should be familiar with basic ASP.NET Core concepts and the principles of serialization and deserialization.

29
May
2026
CWE-862: Implementing Authorization in ASP.NET Core with Policies and Role-Based Access
62 views

This article explores the implementation of authorization in ASP.NET Core through policies and role-based access controls. Understanding these concepts is crucial for securing applications against unauthorized access. Readers should be familiar with ASP.NET Core fundamentals and basic authentication mechanisms.

28
May
2026
CWE-89: Preventing SQL Injection in ASP.NET Core with Dapper and Entity Framework
65 views

This post delves into the critical issue of SQL Injection, specifically CWE-89, and how to effectively prevent it using Dapper and Entity Framework in ASP.NET Core applications. Understanding these concepts not only enhances application security but also protects sensitive data from malicious attacks. Before diving into the solutions, a solid understanding of SQL, ASP.NET Core, and ORM tools is recommended.

23
May
2026
Integrating YouTube Data API v3 in ASP.NET Core: A Deep Dive into Videos, Channels, and Analytics
81 views

This blog post will explore how to integrate the YouTube Data API v3 into an ASP.NET Core application, covering videos, channels, and analytics features. Understanding this integration is crucial for developers looking to leverage YouTube's extensive data for their applications. Readers should be familiar with ASP.NET Core basics and have a Google Cloud account to access the YouTube Data API.

10
May
2026
Integrating Azure Service Bus with ASP.NET Core: Deep Dive into Queues, Topics, and Subscriptions
72 views

In this comprehensive guide, you will learn how to effectively integrate Azure Service Bus into your ASP.NET Core applications, focusing on queues, topics, and subscriptions. Understanding these components is crucial for building scalable and decoupled systems that can handle asynchronous communication efficiently. Prior knowledge of ASP.NET Core and Azure basics will be beneficial as we delve into detailed implementations and best practices.

30
Apr
2026
Understanding EF Core Model Mismatch with Actual Database Schema in ASP.NET Core
171 views

This article dives into the intricacies of Entity Framework Core (EF Core) model mismatches with the actual database schema, a common issue faced by developers. We will explore the causes of these mismatches, their implications, and how to resolve them effectively. To get the most out of this article, a basic understanding of EF Core and ASP.NET Core is essential.

30
Apr
2026
Implementing Microsoft Azure AD Authentication for Enterprise SSO in ASP.NET Core Applications
90 views

This article provides a comprehensive guide to implementing Microsoft Azure Active Directory (AD) Authentication in ASP.NET Core applications, focusing on enterprise Single Sign-On (SSO) solutions. Understanding Azure AD is crucial for developers looking to secure their applications and streamline user authentication in enterprise environments. Readers should have a basic understanding of ASP.NET Core and cloud concepts to fully grasp the implementation details.

28
Apr
2026
CWE-330: Generating Cryptographically Secure Random Values in ASP.NET Core
121 views

This blog post delves into the critical topic of generating cryptographically secure random values in ASP.NET Core, addressing the vulnerabilities and risks associated with inadequate randomness. Understanding this concept is essential for developers working with security-sensitive applications, as it impacts secure token creation, password generation, and more. Familiarity with the basics of cryptography and ASP.NET Core is beneficial but not strictly required.

28
Apr
2026
CWE-614: Configuring Secure Cookie Attributes in ASP.NET Core for Enhanced Security
118 views

In this comprehensive guide, you will learn how to configure secure cookie attributes in ASP.NET Core, focusing on HttpOnly, Secure, and SameSite attributes. Understanding these attributes is crucial for protecting web applications from common vulnerabilities such as cross-site scripting (XSS) and cross-site request forgery (CSRF). A foundational knowledge of ASP.NET Core and web security principles will be beneficial as we explore these concepts in depth.

28
Apr
2026
CWE-384: Preventing Session Fixation in ASP.NET Core with Secure Session Configuration
114 views

Readers will learn how to effectively prevent session fixation attacks in ASP.NET Core applications by configuring secure sessions. Understanding session fixation is crucial for maintaining user security and trust, particularly in applications handling sensitive data. A solid grasp of ASP.NET Core's session management features is recommended before diving into this topic.

08
Apr
2026
Integrating Entity Framework Core with DB2 in ASP.NET Core Applications
118 views

This guide provides a comprehensive exploration of using Entity Framework Core with IBM DB2 in ASP.NET Core applications, detailing the setup, configuration, and best practices. Understanding this integration is crucial for developers looking to leverage the powerful ORM capabilities of EF Core while working with DB2 databases. Familiarity with ASP.NET Core and basic concepts of Entity Framework will be beneficial for readers.

06
Apr
2026
Mapping Strategies for NHibernate in ASP.NET Core: A Comprehensive Guide
111 views

This guide covers the various mapping strategies available in NHibernate for ASP.NET Core applications, offering insights into their practical applications and implications. Understanding these mapping techniques is crucial for efficient database interaction and object-relational mapping in .NET. Familiarity with C# and basic NHibernate concepts will be beneficial for maximizing the value of this content.

05
Apr
2026
Performance Tuning NHibernate for ASP.NET Core Applications
109 views

Readers will learn advanced techniques for optimizing NHibernate in ASP.NET Core applications, focusing on performance improvements. Understanding these concepts is crucial for building scalable and efficient applications that handle large datasets without compromising speed. Prior knowledge of ASP.NET Core and basic NHibernate configurations is recommended.

04
Apr
2026
Best Practices for Securing Grok API Integrations in ASP.NET
181 views

This guide will delve into best practices for securing Grok API integrations in ASP.NET, emphasizing the importance of robust security measures. Understanding these practices is crucial for protecting sensitive data and ensuring reliable application performance. Familiarity with ASP.NET core concepts and API development is recommended to maximize the learning experience.

05
May
2024
How to Integrate Google Sign in Asp.net Core 8.0
8,036 views

Hello everyone, in today's digital landscape, integrating Google authentication login using Google API has become increasingly essential. In this article, we will delve into the process of seamlessly integrating Google SignIn into Asp.Net Core 8.0, the latest framework in the .NET Core ecosystem. Let's explore how to streamline user authentication and elevate the security standards of your web applications by Integrating Google SignIn in Asp.Net Core 8.0.

24
Feb
2024
How to Create Subscriptions in Paypal in Asp.Net Core
8,785 views

In this article, we'll dive into integrating PayPal subscriptions into an ASP.NET Core application. PayPal offers a robust API that allows developers to create and manage subscription plans seamlessly. We'll walk through a sample code snippet that demonstrates how to create a subscription plan, add a product, and initiate a subscription for a user.

29
Nov
2023
Error-An error occurred while processing your request in .Net core IIS
11,479 views

Hello guys we will see how to fix Error An error occurred while processing your request.Swapping to Development environment will display more detailed information about the error that occurred.The Development environment shouldn't be enabled for deployed applications. It can result in displaying sensitive information from exceptions to end users. For local debugging, enable the Development environment by setting the ASPNETCORE_ENVIRONMENT environment variable to Development. In asp.net core IIS

23
Nov
2023
Integrate Stripe Payment Gateway In ASP.NET Core 8.0
12,337 views

This tutorial demonstrates how to accept payments with Stripe Checkout in an ASP.NET Core 8.0 application built with C# . The application uses Checkout to accept credit cards from the end user and send tokens to a back-end API. The back-end controller uses the Stripe .NET library to create a charge. We are using latest version on Stripe.Net api in this. Check out complete steps to Integrate Stripe Payment Gateway In ASP.NET Core 8.0

22
Jul
2023
Integrate Stripe Payment Gateway In ASP.NET Core 7.0
10,468 views

This tutorial demonstrates how to accept payments with Stripe Checkout in an ASP.NET Core 7.0 application built with C# . The application uses Checkout to accept credit cards from the end user and send tokens to a back-end API. The back-end controller uses the Stripe .NET library to create a charge. We are using latest version on Stripe.Net api in this. Check out complete steps to Integrate Stripe Payment Gateway In ASP.NET Core 7.0

01
Jul
2023
Implement Stripe Payment Gateway In ASP.NET Core
16,994 views

This tutorial demonstrates how to accept payments with Stripe Checkout in an ASP.NET Core application built with C# and Web Forms. The application uses Checkout to accept credit cards from the end user and send tokens to a back-end API. The back-end controller uses the Stripe .NET library to create a charge. We are using latest version on Stripe.Net api in this. Check out complete steps to Implement Stripe Payment Gateway In ASP.NET Core

20
Nov
2022
Hangfire in ASP.NET Core 3.1 – Background Jobs
8,888 views

Hangfire is an open-source library to schedule and execute background jobs in .NET applications. You'll be able to create a simple background process inside the same application pool or thread without creating separate applications. Hangfire creates background jobs in persistence storage, like MS SQL Server, Redis, MongoDB, and others, that may prevent you from losing the job on recycling IIS pools or exception prevalence.

13
Aug
2022
Asp.Net Core MVC Publish using FTP
9,238 views

Publish Website using FTP in Visual Studio If we use FTP (File Transfer Protocol) to publish web applications, we need to enter all credentials provided by the FTP hosting company, and application files will upload directly to our FTP hosting space.

26
Jun
2022
Implement Stripe Payment Gateway In ASP.NET MVC
20,693 views

This tutorial demonstrates how to accept payments with Stripe Checkout in an ASP.NET Core application built with C# and Web Forms. The application uses Checkout to accept credit cards from the end user and send tokens to a back-end API. The back-end controller uses the Stripe .NET library to create a charge. We are using latest version on Stripe.Net api in this. Check out complete steps to Implement Stripe Payment Gateway In ASP.NET Core

04
Mar
2021
Globalization and localization in ASP.NET Core With Resource Files
11,067 views

In this article we will focus on implementing Globalization and localization in ASP.NET Core With Resource Files . We will be trying to implement culture in Asp.Net core 3.1.So if your are struggling in using you Asp.Net Resource Files in .net core have a look at the article in detail.

05
Aug
2020
Exception Handling Asp.Net Core
21,057 views

Error Handling in Asp.Net Core has changed a bit from what we used to use in Asp.Net Mvc. Before .Net Core We used to use OnException Methods to handle Exceptions while executing actions But it doesn't' see working in .Net Core as many features are changed.So In this Article we will see how to make exception handling work in Asp.Net Core.

Translate Page