Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 81eaa6e

Browse files
committed
Rename UntrustedFlowSource to RemoteFlowSource
Relaxed whole word requirement. Again skipped one instance in an old change note.
1 parent 5fba989 commit 81eaa6e

9 files changed

Lines changed: 15 additions & 15 deletions

File tree

go/ql/src/Security/CWE-640/EmailInjectionCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module EmailInjection {
1717
abstract class Sink extends DataFlow::Node { }
1818

1919
/** A source of untrusted data, considered as a taint source for email injection. */
20-
class UntrustedFlowSourceAsSource extends Source instanceof RemoteFlowSource { }
20+
class RemoteFlowSourceAsSource extends Source instanceof RemoteFlowSource { }
2121

2222
/**
2323
* A data-flow node that becomes part of an email considered as a taint sink for email injection.

go/ql/src/experimental/frameworks/Fiber.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -728,7 +728,7 @@
728728
]
729729
},
730730
{
731-
"Name": "UntrustedFlowSources",
731+
"Name": "RemoteFlowSources",
732732
"Kind": "RemoteFlowSource",
733733
"Methods": [
734734
{

go/ql/src/experimental/frameworks/Fiber.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,8 +295,8 @@ private module Fiber {
295295
/**
296296
* Provides models of untrusted flow sources.
297297
*/
298-
private class UntrustedFlowSources extends RemoteFlowSource::Range {
299-
UntrustedFlowSources() {
298+
private class RemoteFlowSources extends RemoteFlowSource::Range {
299+
RemoteFlowSources() {
300300
// Methods on types of package: github.com/gofiber/[email protected]
301301
exists(string receiverName, string methodName, Method mtd, FunctionOutput out |
302302
this = out.getExitNode(mtd.getACall()) and

go/ql/test/experimental/frameworks/CleverGo/UntrustedSources.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import go
22
import TestUtilities.InlineExpectationsTest
33
import experimental.frameworks.CleverGo
44

5-
module UntrustedFlowSourceTest implements TestSig {
5+
module RemoteFlowSourceTest implements TestSig {
66
string getARelevantTag() { result = "untrustedFlowSource" }
77

88
predicate hasActualResult(Location location, string element, string tag, string value) {
@@ -20,4 +20,4 @@ module UntrustedFlowSourceTest implements TestSig {
2020
}
2121
}
2222

23-
import MakeTest<UntrustedFlowSourceTest>
23+
import MakeTest<RemoteFlowSourceTest>

go/ql/test/experimental/frameworks/Fiber/UntrustedFlowSources.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

go/ql/test/experimental/frameworks/Fiber/UntrustedFlowSources.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import go
22
import TestUtilities.InlineExpectationsTest
33
import experimental.frameworks.Fiber
44

5-
module UntrustedFlowSourceTest implements TestSig {
5+
module RemoteFlowSourceTest implements TestSig {
66
string getARelevantTag() { result = "untrustedFlowSource" }
77

88
predicate hasActualResult(Location location, string element, string tag, string value) {
@@ -20,4 +20,4 @@ module UntrustedFlowSourceTest implements TestSig {
2020
}
2121
}
2222

23-
import MakeTest<UntrustedFlowSourceTest>
23+
import MakeTest<RemoteFlowSourceTest>

go/ql/test/library-tests/semmle/go/frameworks/ElazarlGoproxy/test.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import go
22
import TestUtilities.InlineExpectationsTest
33

4-
module UntrustedFlowSourceTest implements TestSig {
4+
module RemoteFlowSourceTest implements TestSig {
55
string getARelevantTag() { result = "untrustedflowsource" }
66

77
predicate hasActualResult(Location location, string element, string tag, string value) {
@@ -70,4 +70,4 @@ module TaintFlow implements TestSig {
7070
}
7171
}
7272

73-
import MakeTest<MergeTests4<UntrustedFlowSourceTest, HeaderWriteTest, LoggerTest, TaintFlow>>
73+
import MakeTest<MergeTests4<RemoteFlowSourceTest, HeaderWriteTest, LoggerTest, TaintFlow>>

go/ql/test/library-tests/semmle/go/frameworks/GoKit/untrustedflowsource.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import go
22
import TestUtilities.InlineExpectationsTest
33

4-
module UntrustedFlowSourceTest implements TestSig {
4+
module RemoteFlowSourceTest implements TestSig {
55
string getARelevantTag() { result = "source" }
66

77
predicate hasActualResult(Location location, string element, string tag, string value) {
@@ -16,4 +16,4 @@ module UntrustedFlowSourceTest implements TestSig {
1616
}
1717
}
1818

19-
import MakeTest<UntrustedFlowSourceTest>
19+
import MakeTest<RemoteFlowSourceTest>

go/ql/test/library-tests/semmle/go/frameworks/Macaron/Sources.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import go
22
import TestUtilities.InlineExpectationsTest
33

4-
module UntrustedFlowSourceTest implements TestSig {
4+
module RemoteFlowSourceTest implements TestSig {
55
string getARelevantTag() { result = "RemoteFlowSource" }
66

77
predicate hasActualResult(Location location, string element, string tag, string value) {
@@ -15,4 +15,4 @@ module UntrustedFlowSourceTest implements TestSig {
1515
}
1616
}
1717

18-
import MakeTest<UntrustedFlowSourceTest>
18+
import MakeTest<RemoteFlowSourceTest>

0 commit comments

Comments
 (0)