This project demonstrates a basic secure coding review by analyzing a simple login system.
The objective is to identify security vulnerabilities in the original code and improve it using secure coding practices.
secure_code.py→ Vulnerable version of login system (unsafe code)secure_version.py→ Improved secure version of login systemscreenshot1.png→ Output of vulnerable codescreenshot2.png→ Output of secure code
The original code had the following security issues:
- Hardcoded credentials (username & password)
- Plain text password handling
- No encryption or hashing
- No protection against brute force attacks
- Insecure authentication logic
The improved version includes:
- Better input handling using secure methods
- Separation of stored credentials
- Improved authentication structure
- Reduced risk of credential exposure
- More secure coding approach
- Python 🐍
- Manual Code Review Techniques
- Basic Cyber Security Principles
Screenshots are included to demonstrate:
- Execution of vulnerable code
- Execution of secure code
To understand common security flaws in code and apply basic secure coding practices to improve application security.
Cyber Security Intern
CodeAlpha Internship Program
- Identified real-world coding vulnerabilities
- Learned importance of secure coding practices
- Understood how small changes improve application security