Skip to content

Fix VAmPI username SQL injection - #57

Open
tobymoreno wants to merge 1 commit into
OWASP-CTF:dc34-ctffrom
tobymoreno:fix/vampi-username-sqli
Open

tobymoreno wants to merge 1 commit into
OWASP-CTF:dc34-ctffrom
tobymoreno:fix/vampi-username-sqli

Conversation

@tobymoreno

Copy link
Copy Markdown

Summary

  • replace the vulnerable username f-string query with SQLAlchemy ORM filtering
  • remove the unused raw SQL helper import

Verification

  • pytest tests/test_username_sqli.py (1 passed)
  • git diff --check
  • signed DCO commit

This PR targets SQL Injection in Username Lookup and is isolated for scoring.

Replace the vulnerable username f-string query with SQLAlchemy ORM filtering and remove the unused raw SQL helper import. Add focused regression coverage.

Signed-off-by: Toby Moreno <chris.moreno.ctr@km.spaceforce.mil>
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

🏆 VAmPI — CTF Patch Score

███░░░░░░░░░░░░░░░░░  2 / 16 pts  (13%)

1 / 9 challenges patched

Per-challenge detail is withheld — it would reveal the rubric.

Commit: 9bfa14b · scoring run

🎉 Your result is on the leaderboard — see where you rank! 🏆

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