Skip to content

Commit

Permalink
Rename UntrustedSource to RemoteSource
Browse files Browse the repository at this point in the history
Including renaming some files (in the experimental folder).
  • Loading branch information
owen-mc committed Apr 18, 2024
1 parent 0360bae commit 57be161
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion go/ql/src/experimental/frameworks/CleverGo.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Name": "CleverGo",
"Models": [
{
"Name": "UntrustedSources",
"Name": "RemoteSources",
"Kind": "RemoteFlowSource",
"Methods": [
{
Expand Down
4 changes: 2 additions & 2 deletions go/ql/src/experimental/frameworks/CleverGo.qll
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ private module CleverGo {
/**
* Provides models of remote flow sources.
*/
private class UntrustedSources extends RemoteFlowSource::Range {
UntrustedSources() {
private class RemoteSources extends RemoteFlowSource::Range {
RemoteSources() {
// Methods on types of package: clevergo.tech/[email protected]
exists(string receiverName, string methodName, Method mtd, FunctionOutput out |
this = out.getExitNode(mtd.getACall()) and
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ class UntrustedFunction extends Function {
UntrustedFunction() { this.getName() = ["getUntrustedString", "getUntrustedBytes"] }
}

class UntrustedSource extends DataFlow::Node, RemoteFlowSource::Range {
UntrustedSource() { this = any(UntrustedFunction f).getACall() }
class RemoteSource extends DataFlow::Node, RemoteFlowSource::Range {
RemoteSource() { this = any(UntrustedFunction f).getACall() }
}

from CommandInjection::Flow::PathNode source, CommandInjection::Flow::PathNode sink
Expand Down

0 comments on commit 57be161

Please sign in to comment.