mirror of
https://github.com/github/codeql.git
synced 2026-04-25 00:35:20 +02:00
Merge pull request #10026 from pwntester/patch-2
Go: Partial URLs should not sanitize against SSRF
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
---
|
||||
category: minorAnalysis
|
||||
---
|
||||
* Taking a slice is now considered a sanitizer for `SafeUrlFlow`.
|
||||
@@ -35,4 +35,9 @@ module SafeUrlFlow {
|
||||
private class UnsafeUrlMethodEdge extends SanitizerEdge {
|
||||
UnsafeUrlMethodEdge() { this = any(UnsafeUrlMethod um).getACall().getReceiver() }
|
||||
}
|
||||
|
||||
/** Any slicing of the URL, considered as a sanitizer for safe URL flow. */
|
||||
private class StringSlicingEdge extends SanitizerEdge {
|
||||
StringSlicingEdge() { this = any(DataFlow::SliceNode sn) }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user