How an analyzer follows input without running the app
How a static analyzer traces untrusted input through code without running the application, and how to use the reported path to assess a finding and verify a suggested fix.
Static application security testing (SAST) inspects code without running the application. A data-flow analyzer tracks how values move through assignments, function calls, and returns. It can also use control flow to reason about which statements can run after a branch or an early return.
A taint analysis marks a value from an untrusted source, such as an HTTP request parameter, and follows values derived from it. For example, a request value may pass through a helper and become part of a SQL string. If the string reaches a sink where the database executes it, and the analyzer sees no effective defense, it reports a potential SQL injection finding. It does not send a request or execute the query.
Next up: Sort the statements on what you just read.