We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15d5ad7 commit 8bf4b55Copy full SHA for 8bf4b55
go/ql/lib/semmle/go/security/SafeUrlFlowCustomizations.qll
@@ -35,4 +35,10 @@ module SafeUrlFlow {
35
private class UnsafeUrlMethodEdge extends SanitizerEdge {
36
UnsafeUrlMethodEdge() { this = any(UnsafeUrlMethod um).getACall().getReceiver() }
37
}
38
+
39
+ /** Any slicing of the URL, considered as a sanitizer for safe URL flow. */
40
+ private class StringSlicingEdge extends SanitizerEdge {
41
+ StringSlicingEdge() { this = any(DataFlow::SliceNode sn) }
42
+ }
43
44
0 commit comments