5 Commits
Author SHA1 Message Date
Cosmin Cojocar 74dc9893d6 Add HTTP file-serving function to the skins of pathtraversal analyzer (#1647)
Signed-off-by: Cosmin Cojocar <cosmin@cojocar.ch>
2026-04-25 10:37:00 +02:00
Cosmin Cojocar 24ee992e95 Added filepath.Abs as a sanitizer (#1643)
it calls Clean internally per Go docs.

Signed-off-by: Cosmin Cojocar <cosmin@cojocar.ch>
2026-04-23 15:25:57 +02:00
Ravi Sastry Kadali bd11fbe2ba fix: taint analysis false positives with G703,G705 (#1522)
* fix: taint analysis false positives with G703,G705

* additional tests

* cross package coverage increase

* Add additonal G118 tests for codecov

* improve code coverage

* field-level taint tracking and test coverage

* add more tests

* improve test coverage

* fix unnecessary nosec comments for tool

* improve code coverage

* address codecov issues

* improve code coverage
2026-02-19 15:43:03 +01:00
Ravi Sastry Kadali 000384e510 fix: broken taint analysis causing false positives (#1506)
* fix: broken taint analysis causing false positives

* add tests and improve code coverage
2026-02-14 12:24:33 +01:00
Ravi Sastry Kadali 398ad549bb feat: Support for adding taint analysis engine (#1486)
* feat: add taint analysis engine for data flow security

Implements SSA-based taint analysis to detect security vulnerabilities:
- G701: SQL injection via string concatenation
- G702: Command injection via user input
- G703: Path traversal via user input
- G704: SSRF via user-controlled URLs
- G705: XSS via unescaped user input
- G706: Log injection via user input

Uses golang.org/x/tools for SSA/call graph analysis with CHA.
Zero external dependencies beyond existing gosec imports.
2026-02-10 15:47:11 +01:00