Secure Task Management Platform is a secure ASP.NET Core MVC web application developed to demonstrate authentication, authorization, session management, and secure coding practices.
The application implements forms-based authentication, role-based authorization, claims-based access control, CSRF protection, XSS prevention, secure cookie handling, HTTPS enforcement, and secure logout functionality.
- User Registration
- Secure Login
- Secure Logout
- Cookie-Based Authentication
- Role-Based Authorization
- Claims-Based Authorization
- Admin Access Control
- Authorization Policies
- CSRF Protection using Anti-Forgery Tokens
- XSS Prevention using Output Encoding
- Secure Session Management
- Secure Cookie Configuration
- HTTPS Enforcement
- BCrypt Password Hashing
- Input Validation using Data Annotations
- ASP.NET Core MVC
- C#
- Entity Framework Core
- In-Memory Database
- Razor Views
- Cookie Authentication
- BCrypt.Net
SecureTaskManagementPlatform
│
├── Controllers
├── Models
├── Views
├── Data
├── Program.cs
└── SecureTaskManagementPlatform.csprojCan access:
/Admin/ManageTasks
Can access:
/User/TaskList/User/CreateTask
Users are assigned:
CanEditTask = true
This enables task creation/edit permissions using authorization policies.
Enter:
<script>alert('hack')</script>Expected:
- Script should NOT execute
- Content displayed as encoded text
Enter:
' OR 1=1 --Expected:
- Application behaves normally
- No SQL query manipulation occurs
- HttpOnly Cookies Enabled
- Secure Cookies Enabled
- HTTPS Enforced
- Session Timeout: 15 Minutes
- Secure Logout Implemented
Email:
admin@gmail.com
Password:
Admin@123
Email:
user@gmail.com
Password:
User@123
| Feature | Route |
|---|---|
| Home | /Home/Index |
| Register | /Account/Register |
| Login | /Account/Login |
| Task List | /User/TaskList |
| Create Task | /User/CreateTask |
| Admin Panel | /Admin/ManageTasks |
| Logout | /Account/Logout |
- Open
SecureTaskManagementPlatform.csproj - Build Solution
- Press
Ctrl + F5
- ASP.NET Core MVC Architecture
- Secure Authentication
- Role-Based Authorization
- Claims-Based Authorization
- CSRF Protection
- XSS Prevention
- Secure Session Management
- Secure Logout
- HTTPS Security
- Secure Cookie Handling
- Entity Framework Core
Giridhar Gopal