By Relwick · Published
A search form can appear to work while building its query by mixing input directly into SQL text.
A useful resume entry explains the code-and-data boundary you corrected and how you preserved normal results.
Quick answer & key takeaways
Name the query path you corrected, explain how user values were passed through parameter binding instead of being concatenated into SQL, and describe the legitimate and malformed inputs tested. Treat dynamic table names, columns, and sort options separately from bound values. Keep injection prevention distinct from authorization, and avoid claiming that one query fix secured the entire database.
- Identify the affected query and input path.
- Distinguish bound values from dynamic query structure.
- Test correctness and authorization separately.
State the query boundary
OWASP recommends prepared statements with parameterised queries as a primary SQL-injection defence. The important distinction is that SQL structure is defined separately from the values supplied to it. Merely escaping a few characters is not the same claim.
Describe the feature without revealing private schema details: a customer search, report filter, or record lookup. State whether you replaced raw string construction, corrected an unsafe ORM escape hatch, or reviewed the query-building path.
Explain what was and was not bound
| Input category | Review concern |
|---|---|
| Search or filter value | Passed through the intended binding interface. |
| Optional filter | Keeps query structure and value handling consistent. |
| Sort field or direction | Mapped to permitted query choices where necessary. |
| Account or tenant scope | Checked through the separate authorization design. |
Be precise about dynamic identifiers. A placeholder intended for a value is not a universal way to substitute arbitrary query syntax. Explain the actual allowed mapping or fixed structure when that was part of the work.
Describe the regression evidence
A fictional example is: “Replaced concatenated report filters with bound query parameters and added regression cases for apostrophes, empty filters, and permitted sort options.” It identifies a specific correction rather than an unsupported claim of eliminating all database attacks.
Include ordinary values that the previous approach mishandled. Names containing punctuation should not need to be rejected simply because the query was built unsafely. Use synthetic test data and verify the intended result set as well as the absence of an error.
Do not confuse safe query construction with permission to read the resulting rows. A correctly parameterised query can still return another account’s records if authorization is wrong. Claim tenant or permission checks only when you reviewed those separately.
Keep the example focused
Retain a small authorised code excerpt and a test matrix showing expected results. There is no need to publish a live endpoint, private database structure, or operational attack payload to demonstrate the correction.
Use Resume Studio to place the bullet under the relevant application project. Prioritise the input boundary and regression evidence. Include the database or framework as supporting context, not as a substitute for explaining what changed.
Frequently asked questions
Does using an ORM automatically prove every query is safe?
No. Review raw expressions and other paths that may still build query text unsafely.
Should I block all apostrophes in names?
That is not a substitute for correct query construction and can reject legitimate input.
Can I claim authorization was fixed too?
Only if that separate behaviour was part of your work and verification.
Sources and further reading
- OWASP: SQL injection prevention — Explains parameter binding, safe query structure, and allowlisted handling for dynamic identifiers.
Summary
Explain how input remained data and how normal query behaviour was preserved. Precise scope makes the security fix understandable and defensible.