Inspect external input and SQL construction
SEC-010 / v1.1.1 / 2026-10-12
Editorial inspection guidance. Start with read-only permissions; fixes, credential revocation, and production changes follow the owner’s authorization.
Read-only review example
For this kind of environment
Application-owned code builds SQL from search values and sort choices.
- First read
- Read the path from input handling to the actual database call.
- Where to look
- Code determining SQL structure.
- Value bindings supplied to the database API.
- Fixed mappings for column names and sort choices.
- Evidence to retain
- Record where values are bound separately and structural choices are constrained.
- What this does not establish
- Authorization remains a separate check. Do not infer closed-product internals; review affected versions instead.
Applicability
Owned code executing SQL. For closed-source products, use SEC-001 instead of guessing internal implementation.
Read the incidents behind this rule (5)
Where to look first
- API inputs, query parameters, data access layer
- Raw SQL, string concatenation, dynamic identifiers
Inspection steps
- Trace whether input is bound as data rather than concatenated into SQL syntax.
- Allow-list dynamic identifiers and sort options; test representative, boundary, and malformed inputs using synthetic data.
Remediation direction
- Parameterize values, allow-list identifiers, and add regression tests preserving required queries.
Evidence required for completion
- Record tests showing hostile input cannot alter query structure and only allowed operations succeed.
Limits and unverified scope
- MOVEit is a vendor-defect example. This editorial rule does not claim the same implementation flaw exists in your code.
Read this in context
Trace input into queries and file processing
Follow inputs from entry points to SQL construction and file storage or processing.