Skip to content

Commit 0130e4b

Browse files
committed
Re-add path methods that are user-controlled
1 parent a3c14f7 commit 0130e4b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ruby/ql/lib/codeql/ruby/frameworks/ActionController.qll

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,10 @@ private module Request {
211211

212212
/** A method call on `request` which returns part or all of the request path. */
213213
private class PathCall extends RequestInputAccess {
214-
PathCall() { this.getMethodName() = ["path", "filtered_path"] }
214+
PathCall() {
215+
this.getMethodName() =
216+
["path", "filtered_path", "fullpath", "original_fullpath", "original_url", "url"]
217+
}
215218

216219
override Http::Server::RequestInputKind getKind() { result = Http::Server::urlInputKind() }
217220
}

0 commit comments

Comments
 (0)