NET Centric Computing · Unit 7
Security, Authentication and Authorization
Exam-focused notes for Security, Authentication and Authorization (NET Centric Computing, BIT351): what the TU syllabus asks and how it has actually been tested, with 5 solved past questions from this unit.
Security, Authentication and Authorization in short
A web application holds private data, so it must know who a user is and what that user may do. It must also resist common attacks. This chapter covers login, access control, and the main web attacks.
What this unit covers
- Authentication purposes
- Authorization roles and policies
- Claims-based authorization
- Securing controller and action methods
- SQL injection attacks and prevention
- Cross-site request forgery protection
- Vulnerability detection and prevention
- Form validation on client side
Vulnerability detection and prevention
2081 · 5 marks
How do you detect and prevent vulnerabilities in ASP.NET core application. [5]
Authentication purposes
2081 · 5 marks
What are the purposes of adding authentications to apps? Explain. [5]
Show solved answerHide answer
Purposes of Adding Authentication to Apps
Definition
Authentication is the process of verifying the identity of a user, device, or system before granting access to an application or its resources. It answers the fundamental question: "Who are you?"
Purposes of Adding Authentication to Apps
1. Identity Verification
Authentication ensures that only legitimate and verified users can access the application. It confirms that the person attempting to log in is who they claim to be, preventing unauthorized individuals from gaining access.
2. Security and Protection of Data
Authentication protects sensitive user data and application resources from unauthorized access. Without authentication, any person could access private information such as personal details, financial records, or confidential business data.
3. Access Control and Authorization
Authentication works as a gateway for authorization. Once a user is authenticated, the system can determine what resources or features that user is permitted to access (e.g., admin vs. regular user). This enforces role-based access control.
4. Accountability and Audit Trails
When users are authenticated, all their actions can be tracked and logged. This creates an audit trail that helps in monitoring suspicious activities, debugging issues, and ensuring accountability for any changes made within the system.
5. Prevention of Unauthorized Modifications
Authentication prevents malicious users or attackers from modifying, deleting, or corrupting application data. Only authenticated users with proper permissions can perform critical operations.
6. Building User Trust
When an application implements proper authentication (e.g., login, OTP, two-factor authentication), it builds user confidence and trust that their data is safe and the platform is secure.
7. Compliance with Security Standards
Many industries require authentication as part of legal and regulatory compliance (e.g., GDPR, HIPAA). Adding authentication helps applications meet these standards and avoid legal penalties.
Summary Table
| Purpose | Benefit |
|---|---|
| Identity Verification | Confirms who the user is |
| Data Security | Protects sensitive information |
| Access Control | Limits what users can do |
| Accountability | Tracks user actions |
| Trust Building | Increases user confidence |
| Compliance | Meets legal requirements |
In short, authentication is a fundamental security mechanism that protects both the application and its users from unauthorized access, data breaches, and misuse.
Authorization roles and policies
2080 · 5 marks
Why do we need to define roles, policies and claims? Explain. [5]
SQL injection attacks and prevention
2081.1 · 5 marks
Illustrate the concept of SQL injection with an example. [5]
Claims-based authorization
0 · 5 marks
Define authorities, role, claims and policies. Discuss about cross-site request forgery with a case.[5]
Make Unit 7 stick
Practice BIT351 with flashcards & quizzes