Skip to content

test: add vulnerable code for final demo#7

Merged
Codewithaiyan merged 1 commit into
masterfrom
test/final-demo
May 31, 2026
Merged

test: add vulnerable code for final demo#7
Codewithaiyan merged 1 commit into
masterfrom
test/final-demo

Conversation

@Codewithaiyan
Copy link
Copy Markdown
Owner

No description provided.

@vercel
Copy link
Copy Markdown

vercel Bot commented May 31, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
vibe-guard Ready Ready Preview, Comment May 31, 2026 4:55pm

@github-actions
Copy link
Copy Markdown

VibeGuard Security Scan Results

Scan Type File Score Risk Level
Code demo/test_vulnerable.py 20/100 CRITICAL

Code Vulnerabilities

demo/test_vulnerable.py

  • HIGH Hardcoded Secrets (Line 5)
    Description: The database password and API key are hardcoded in the source code, which can lead to unauthorized access if the code is exposed.
    Fix suggestion: Store sensitive information in environment variables or a secure vault instead of hardcoding them.
  • HIGH SQL Injection (Line 10)
    Description: The SQL query is constructed using string concatenation, making it vulnerable to SQL injection attacks.
    Fix suggestion: Use parameterized queries or prepared statements to safely handle user input.
  • HIGH Command Injection (Line 14)
    Description: The user input is directly passed to the os.system command, which can lead to command injection vulnerabilities.
    Fix suggestion: Use safer alternatives like subprocess.run with proper input validation and sanitization.

Dependency Vulnerabilities

No supported dependency files changed in this PR.

Dependency Scan Notes

No dependency scan notes because no supported dependency files changed.


Powered by VibeGuard

@Codewithaiyan Codewithaiyan merged commit 1a8e960 into master May 31, 2026
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant