A security review of a small web app
The problem
Review a small, deliberately weak web app that runs only in your browser: list its assets and attack surface, rank its risks, find its OWASP Top 10 weaknesses and fix them.
Requirements
- List the app's assets, entry points and open services
- Score every risk with likelihood × impact and give each an owner and a response
- Find and fix at least four weaknesses from the OWASP Top 10
- Show each fix with a test that failed before and passes after
Technologies
- JavaScript
- A fake in-memory database
- The browser's developer tools
Step by step
- Read the app and draw its data flow
- List assets and the attack surface
- Build and rank the risk register
- Fix the weaknesses one at a time, each with a test
- Write a one-page summary for a manager
Expected result
A written risk register and a fixed version of the app whose own tests show each weakness closed.
How it is evaluated
- Every risk has a score, an owner and a response
- Each fix closes the weakness without breaking a feature
- The summary is short and clear enough for a non-specialist
Ways to improve it
- Add logging so attacks would be detected
- Add a second layer behind each fix
- Write an incident response plan for the most serious risk