From the course: Windsurf for Privacy-Conscious Development
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Vulnerable code - Windsurf Tutorial
From the course: Windsurf for Privacy-Conscious Development
Vulnerable code
- [Speaker] Analyzing vulnerable code systematically helps you develop better security intuition and understand how different vulnerability types interconnect. We're going to examine intentionally vulnerable examples and help use AI to guide us through a structured security review process. This will help us identify both vulnerabilities and secure prompting techniques that we've previously discussed. Here I have three purposely, vulnerable, simple, isolated code snippets. One about a user search, one about user searching, one about displaying comments, and one about file uploads. All of these have different security vulnerabilities with SQL injection XSS and file upload vulnerabilities. And these examples are purposely simplified using placeholders to make them safe to analyze with AI tools while still being able to understand the real concepts. So our first vulnerable example is just a user search function. So here…