Merge pull request #10026 from pwntester/patch-2

Go: Partial URLs should not sanitize against SSRF
This commit is contained in:
Owen Mansel-Chan
2023-04-14 13:52:11 +01:00
committed by GitHub
2 changed files with 9 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
---
category: minorAnalysis
---
* Taking a slice is now considered a sanitizer for `SafeUrlFlow`.

View File

@@ -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) }
}
}