← Documentation

Injection risk in code (SQL, command, template, path)

Dangerous code patterns are reported with the code as evidence; never exploited on the target.

Check method

Dangerous code patterns are reported with the code as evidence; never exploited on the target.

Possible evidence type

Code or configuration review, without exploiting the risk.

Access and limitations

Connected repository. Actual results and checks not run appear in your report. A check with no finding does not guarantee the absence of risk.

Concrete scenario

Untrusted input is concatenated into SQL, shell execution or evaluated code.

What to inspect

Find the execution sink and inspect parameterization and context-specific escaping. A string match in source is only a starting point.

Remediation approach

Use parameterized queries and non-shell APIs; remove dynamic evaluation of untrusted input.

Follow the request across the trust boundary

A browser can send values that the server did not intend: an object identifier, a destination URL, a header or a modified payload. The important question is where the application stops trusting that value and checks permissions, format and context. A visible route alone does not establish a vulnerability; the response and the relevant protection must be examined together.

  1. Identify the affected endpoint and the data or action it exposes.
  2. Determine whether the observation was made as an anonymous visitor or under a specific authorized identity.
  3. Compare the observed behavior with the expected server-side restriction; do not treat a status code alone as proof of access.

Plan and validate remediation

Keep the protection on the server, as close to the protected resource as possible. Browser-only checks, hidden buttons and client-side role flags do not prevent direct requests. Configuration controls such as CORS or security headers solve different problems from authentication and authorization.

  1. Reproduce with the report’s exact path and context in an authorized environment.
  2. Apply the narrowest server-side change that closes the demonstrated gap.
  3. Check the blocked scenario and an allowed scenario, then review caches, alternate routes and related endpoints.

References

OWASP A03

Sources and further reading

These publications describe related practices and standards. They do not certify your platform or imply that Hackaiz executes every documented method.