Skip to content

fix: parameterize blind SQL injection level 1 - #215

Open
tobymoreno wants to merge 1 commit into
OWASP-CTF:dc34-ctffrom
tobymoreno:fix/vulnerableapp-blind-sqli-level1
Open

tobymoreno wants to merge 1 commit into
OWASP-CTF:dc34-ctffrom
tobymoreno:fix/vulnerableapp-blind-sqli-level1

Conversation

@tobymoreno

Copy link
Copy Markdown

Summary

  • replace BlindSQLInjectionVulnerability Level 1 SQL concatenation with a prepared statement
  • bind the supplied car id as a single query parameter
  • preserve present and absent car response behavior
  • add a regression proving 1 OR 1=1 never enters the SQL text

Validation

  • ./gradlew test --tests org.sasanlabs.service.vulnerability.sqlInjection.BlindSQLInjectionVulnerabilityTest
  • ./gradlew spotlessCheck test
  • git diff --check

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown

🏆 VulnerableApp — CTF Patch Score

░░░░░░░░░░░░░░░░░░░░  1 / 187 pts  (1%)

1 / 110 challenges patched

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

Commit: c99b8f9 · 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