Skip to content

Commit d967b2b

Browse files
committed
Rename UntrustedFlowAsSource to RemoteFlowAsSource
1 parent a4df20d commit d967b2b

11 files changed

+12
-12
lines changed

go/ql/lib/semmle/go/security/CommandInjectionCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ module CommandInjection {
3030
abstract class Sanitizer extends DataFlow::Node { }
3131

3232
/** A source of untrusted data, considered as a taint source for command injection. */
33-
class UntrustedFlowAsSource extends Source instanceof RemoteFlowSource { }
33+
class RemoteFlowAsSource extends Source instanceof RemoteFlowSource { }
3434

3535
/** A command name, considered as a taint sink for command injection. */
3636
class CommandNameAsSink extends Sink {

go/ql/lib/semmle/go/security/LogInjectionCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module LogInjection {
2626
abstract class Sanitizer extends DataFlow::Node { }
2727

2828
/** A source of untrusted data, considered as a taint source for log injection. */
29-
class UntrustedFlowAsSource extends Source instanceof RemoteFlowSource { }
29+
class RemoteFlowAsSource extends Source instanceof RemoteFlowSource { }
3030

3131
/** An argument to a logging mechanism. */
3232
class LoggerSink extends Sink {

go/ql/lib/semmle/go/security/OpenUrlRedirectCustomizations.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ module OpenUrlRedirect {
4545
/**
4646
* A source of third-party user input, considered as a flow source for URL redirects.
4747
*/
48-
class UntrustedFlowAsSource extends Source, RemoteFlowSource {
49-
UntrustedFlowAsSource() {
48+
class RemoteFlowAsSource extends Source, RemoteFlowSource {
49+
RemoteFlowAsSource() {
5050
// exclude some fields and methods of URLs that are generally not attacker-controllable for
5151
// open redirect exploits
5252
not this instanceof Http::Redirect::UnexploitableSource

go/ql/lib/semmle/go/security/ReflectedXssCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ module ReflectedXss {
3737
/**
3838
* A third-party controllable input, considered as a flow source for reflected XSS.
3939
*/
40-
class UntrustedFlowAsSource extends Source, RemoteFlowSource { }
40+
class RemoteFlowAsSource extends Source, RemoteFlowSource { }
4141

4242
/** An arbitrary XSS sink, considered as a flow sink for stored XSS. */
4343
private class AnySink extends Sink instanceof SharedXss::Sink { }

go/ql/lib/semmle/go/security/RequestForgeryCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ module RequestForgery {
3535
/**
3636
* A third-party controllable input, considered as a flow source for request forgery.
3737
*/
38-
class UntrustedFlowAsSource extends Source, RemoteFlowSource { }
38+
class RemoteFlowAsSource extends Source, RemoteFlowSource { }
3939

4040
/**
4141
* The URL of an HTTP request, viewed as a sink for request forgery.

go/ql/lib/semmle/go/security/SqlInjectionCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ module SqlInjection {
2626
abstract class Sanitizer extends DataFlow::Node { }
2727

2828
/** A source of untrusted data, considered as a taint source for SQL injection. */
29-
class UntrustedFlowAsSource extends Source instanceof RemoteFlowSource { }
29+
class RemoteFlowAsSource extends Source instanceof RemoteFlowSource { }
3030

3131
/** An SQL string, considered as a taint sink for SQL injection. */
3232
class SqlQueryAsSink extends Sink instanceof SQL::QueryString { }

go/ql/lib/semmle/go/security/TaintedPathCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module TaintedPath {
4545
}
4646

4747
/** A source of untrusted data, considered as a taint source for path traversal. */
48-
class UntrustedFlowAsSource extends Source instanceof RemoteFlowSource { }
48+
class RemoteFlowAsSource extends Source instanceof RemoteFlowSource { }
4949

5050
/** A path expression, considered as a taint sink for path traversal. */
5151
class PathAsSink extends Sink {

go/ql/lib/semmle/go/security/UncontrolledAllocationSizeCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module UncontrolledAllocationSize {
2121
abstract class Sanitizer extends DataFlow::Node { }
2222

2323
/** A source of untrusted data, considered as a taint source for uncontrolled size allocation vulnerabilities. */
24-
private class UntrustedFlowAsSource extends Source instanceof RemoteFlowSource { }
24+
private class RemoteFlowAsSource extends Source instanceof RemoteFlowSource { }
2525

2626
/** The size argument of a memory allocation function. */
2727
private class AllocationSizeAsSink extends Sink instanceof AllocationSizeOverflow::AllocationSize {

go/ql/lib/semmle/go/security/XPathInjectionCustomizations.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ module XPathInjection {
2525
abstract class Sanitizer extends DataFlow::ExprNode { }
2626

2727
/** A source of untrusted data, used in an XPath expression. */
28-
class UntrustedFlowAsSource extends Source instanceof RemoteFlowSource { }
28+
class RemoteFlowAsSource extends Source instanceof RemoteFlowSource { }
2929

3030
/** An XPath expression string, considered as a taint sink for XPath injection. */
3131
class XPathExpressionStringAsSink extends Sink instanceof XPath::XPathExpressionString { }

go/ql/src/experimental/CWE-74/DsnInjection.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import DsnInjectionCustomizations
1414
import DsnInjectionFlow::PathGraph
1515

1616
/** An untrusted flow source taken as a source for the `DsnInjection` taint-flow configuration. */
17-
private class UntrustedFlowAsSource extends Source instanceof RemoteFlowSource { }
17+
private class RemoteFlowAsSource extends Source instanceof RemoteFlowSource { }
1818

1919
from DsnInjectionFlow::PathNode source, DsnInjectionFlow::PathNode sink
2020
where DsnInjectionFlow::flowPath(source, sink)

0 commit comments

Comments
 (0)